Skip to content

Update schema using Schema API

Codacy Production / Codacy Static Code Analysis succeeded Nov 4, 2024 in 0s

Your pull request is up to standards!

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 29
           

Complexity increasing per file
==============================
- Classes/Updates/UpdateSolrSchema.php  7
         

See the complete overview on Codacy

Annotations

Check notice on line 24 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L24

Whitespace found at end of line

Check notice on line 83 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L83

Expected "foreach (...) {\n"; found "foreach(...) {\n"

Check notice on line 83 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L83

Expected 1 space after FOREACH keyword; 0 found

Check notice on line 90 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L90

Opening parenthesis of a multi-line function call must be the last content on the line

Check notice on line 92 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L92

Expected at least 1 space before "."; 0 found

Check notice on line 94 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L94

Opening parenthesis of a multi-line function call must be the last content on the line

Check notice on line 102 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L102

Closing parenthesis of a multi-line function call must be on a line by itself

Check notice on line 103 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L103

Closing parenthesis of a multi-line function call must be on a line by itself

Check notice on line 124 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L124

Expected "if (...) {\n"; found "if(...) {\n"

Check notice on line 124 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L124

Expected 1 space after IF keyword; 0 found

Check notice on line 165 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L165

Expected "foreach (...) {\n"; found "foreach(...) {\n"

Check notice on line 165 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L165

Expected 1 space after FOREACH keyword; 0 found

Check notice on line 175 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L175

Whitespace found at end of line

Check notice on line 179 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L179

Expected "if (...) {\n"; found "if(...) {\n"

Check notice on line 179 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L179

Expected 1 space after IF keyword; 0 found

Check notice on line 181 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L181

Expected 1 space after closing brace; newline found

Check notice on line 182 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L182

Expected 1 space after IF keyword; 0 found

Check notice on line 182 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L182

Usage of ELSE IF is discouraged; use ELSEIF instead

Check notice on line 188 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L188

Expected at least 1 space before "."; 0 found

Check notice on line 194 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L194

Expected "if (...) {\n"; found "if(...) {\n"

Check notice on line 194 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L194

Expected 1 space after IF keyword; 0 found

Check notice on line 197 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L197

Expected "} else if (...) {\n"; found "}\n            else if(...) {\n"

Check notice on line 197 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L197

Expected 1 space after IF keyword; 0 found

Check notice on line 205 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L205

Expected 1 newline at end of file; 0 found

Check notice on line 205 in Classes/Updates/UpdateSolrSchema.php

See this annotation in the file changed.

@codacy-production codacy-production / Codacy Static Code Analysis

Classes/Updates/UpdateSolrSchema.php#L205

Expected 1 newline at end of file; 0 found