Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coding Standards #214

Closed
GaryJones opened this issue Feb 20, 2019 · 1 comment

Comments

@GaryJones
Copy link
Contributor

commented Feb 20, 2019

The following is from a custom report related to the WordPress.com VIP Coding Standards, though all the violations that were triggered come from the WordPress Coding Standards:

VIP Coding Standards Violations
Line Severity Type Message Source
74 5 WARNING Detected usage of meta_value, possible slow query. WordPress.DB.SlowDBQuery.slow_db_query_meta_value
280 5 WARNING Detected usage of meta_value, possible slow query. WordPress.DB.SlowDBQuery.slow_db_query_meta_value
347 5 WARNING Detected usage of tax_query, possible slow query. WordPress.DB.SlowDBQuery.slow_db_query_tax_query
105 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
234 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
239 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
248 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
253 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
302 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
304 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
321 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
330 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
343 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
371 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
388 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
398 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
412 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
414 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
462 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
464 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
632 3 WARNING Not using strict comparison for in_array; supply true for third argument. WordPress.PHP.StrictInArray.MissingTrueStrict
652 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
655 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
674 3 WARNING Found: ==. Use strict comparisons (=== or !==). WordPress.PHP.StrictComparisons.LooseComparison
647 1 WARNING Unused variable $timestamp. WordPressVIPMinimum.Variables.VariableAnalysis.UnusedVariable
647 1 WARNING Variable assignment found within a condition. Did you mean to do a comparison? WordPress.CodeAnalysis.AssignmentInCondition.Found

If you run WordPress-Extra and WordPress-Docs, a lot more violations will be reported.

`WordPress-Docs` violations

FILE: /Users/gary/code/display-posts-shortcode/display-posts-shortcode.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 49 ERRORS AFFECTING 44 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------
  23 | ERROR | [ ] There must be exactly one blank line after the file comment (Squiz.Commenting.FileComment.SpacingAfterComment)
  28 | ERROR | [x] There must be exactly one blank line before the tags in a doc comment (Generic.Commenting.DocComment.SpacingBeforeTags)
  31 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
  33 | ERROR | [ ] Missing doc comment for function be_display_posts_shortcode() (Squiz.Commenting.FunctionComment.Missing)
  39 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
  42 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 102 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 124 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 127 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 144 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 147 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 152 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 167 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 172 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 249 | ERROR | [x] There must be no blank line following an inline comment (Squiz.Commenting.InlineComment.SpacingAfter)
 270 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 274 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 278 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 282 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 286 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 292 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 304 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 316 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 320 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 331 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 342 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 346 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 362 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 370 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 400 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 415 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 487 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 503 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 522 | ERROR | [ ] Inline comments must end in full-stops, exclamation marks, or question marks (Squiz.Commenting.InlineComment.InvalidEndChar)
 721 | ERROR | [ ] Doc comment for parameter "$out" missing (Squiz.Commenting.FunctionComment.MissingParamTag)
 721 | ERROR | [ ] Doc comment for parameter "$pairs" missing (Squiz.Commenting.FunctionComment.MissingParamTag)
 721 | ERROR | [ ] Doc comment for parameter "$atts" missing (Squiz.Commenting.FunctionComment.MissingParamTag)
 725 | ERROR | [ ] Doc comment for parameter $out, does not match actual variable name $out (Squiz.Commenting.FunctionComment.ParamNameNoMatch)
 725 | ERROR | [ ] Parameter comment must end with a full stop (Squiz.Commenting.FunctionComment.ParamCommentFullStop)
 726 | ERROR | [ ] Doc comment for parameter $pairs, does not match actual variable name $pairs
     |       |     (Squiz.Commenting.FunctionComment.ParamNameNoMatch)
 726 | ERROR | [ ] Parameter comment must end with a full stop (Squiz.Commenting.FunctionComment.ParamCommentFullStop)
 727 | ERROR | [ ] Doc comment for parameter $atts, does not match actual variable name $atts
     |       |     (Squiz.Commenting.FunctionComment.ParamNameNoMatch)
 727 | ERROR | [ ] Parameter comment must end with a full stop (Squiz.Commenting.FunctionComment.ParamCommentFullStop)
 745 | ERROR | [ ] Doc comment for parameter "$string" missing (Squiz.Commenting.FunctionComment.MissingParamTag)
 748 | ERROR | [x] Additional blank lines found at end of doc comment (Generic.Commenting.DocComment.SpacingAfter)
 755 | ERROR | [ ] Doc comment for parameter "$date" missing (Squiz.Commenting.FunctionComment.MissingParamTag)
 758 | ERROR | [x] Additional blank lines found at end of doc comment (Generic.Commenting.DocComment.SpacingAfter)
 766 | ERROR | [x] Additional blank lines found at end of doc comment (Generic.Commenting.DocComment.SpacingAfter)
 825 | ERROR | [x] Additional blank lines found at end of doc comment (Generic.Commenting.DocComment.SpacingAfter)
`WordPress-Extra` violations (most of these are auto-fixable)

FILE: /Users/gary/code/display-posts-shortcode/display-posts-shortcode.php

FOUND 277 ERRORS AND 171 WARNINGS AFFECTING 259 LINES

1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar)
36 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
36 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
36 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
43 | ERROR | [x] Opening parenthesis of a multi-line function call must be the last content on the line
| | (PEAR.Functions.FunctionCallSignature.ContentAfterOpenBracket)
44 | WARNING | [x] Array double arrow not aligned correctly; expected 16 space(s) between "'author'" and double arrow, but found 15.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
45 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'author_id'" and double arrow, but found 12.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
46 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'category'" and double arrow, but found 13.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
47 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'category_display'" and double arrow, but found 5.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
48 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'category_id'" and double arrow, but found 10.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
49 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'category_label'" and double arrow, but found 7.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
50 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'content_class'" and double arrow, but found 8.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
51 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'date_format'" and double arrow, but found 10.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
52 | WARNING | [x] Array double arrow not aligned correctly; expected 18 space(s) between "'date'" and double arrow, but found 17.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
53 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'date_column'" and double arrow, but found 10.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
54 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'date_compare'" and double arrow, but found 9.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
55 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'date_query_before'" and double arrow, but found 4.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
56 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'date_query_after'" and double arrow, but found 5.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
57 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'date_query_column'" and double arrow, but found 4.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
58 | WARNING | [x] Array double arrow not aligned correctly; expected 4 space(s) between "'date_query_compare'" and double arrow, but found 3.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
59 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'display_posts_off'" and double arrow, but found 4.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
60 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'excerpt_length'" and double arrow, but found 7.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
61 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'excerpt_more'" and double arrow, but found 9.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
62 | WARNING | [x] Array double arrow not aligned correctly; expected 5 space(s) between "'excerpt_more_link'" and double arrow, but found 4.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
63 | WARNING | [x] Array double arrow not aligned correctly; expected 15 space(s) between "'exclude'" and double arrow, but found 14.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
64 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'exclude_current'" and double arrow, but found 6.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
65 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'has_password'" and double arrow, but found 9.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
66 | WARNING | [x] Array double arrow not aligned correctly; expected 20 space(s) between "'id'" and double arrow, but found 19.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
67 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'ignore_sticky_posts'" and double arrow, but found 2.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
68 | WARNING | [x] Array double arrow not aligned correctly; expected 12 space(s) between "'image_size'" and double arrow, but found 11.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
69 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'include_author'" and double arrow, but found 7.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
70 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'include_content'" and double arrow, but found 6.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
71 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'include_date'" and double arrow, but found 9.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
72 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'include_date_modified'" and double arrow, but found 0.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
72 | ERROR | [x] Expected 1 space before "=>"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore)
73 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'include_excerpt'" and double arrow, but found 6.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
74 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'include_excerpt_dash'" and double arrow, but found 1.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
75 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'include_link'" and double arrow, but found 9.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
76 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'include_title'" and double arrow, but found 8.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
77 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'meta_key'" and double arrow, but found 13.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
78 | WARNING | [x] Array double arrow not aligned correctly; expected 12 space(s) between "'meta_value'" and double arrow, but found 11.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
79 | WARNING | [x] Array double arrow not aligned correctly; expected 6 space(s) between "'no_posts_message'" and double arrow, but found 5.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
80 | WARNING | [x] Array double arrow not aligned correctly; expected 16 space(s) between "'offset'" and double arrow, but found 15.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
81 | WARNING | [x] Array double arrow not aligned correctly; expected 17 space(s) between "'order'" and double arrow, but found 16.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
82 | WARNING | [x] Array double arrow not aligned correctly; expected 15 space(s) between "'orderby'" and double arrow, but found 14.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
83 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'post_parent'" and double arrow, but found 10.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
84 | WARNING | [x] Array double arrow not aligned correctly; expected 7 space(s) between "'post_parent__in'" and double arrow, but found 6.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
85 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'post_parent__not_in'" and double arrow, but found 2.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
86 | WARNING | [x] Array double arrow not aligned correctly; expected 11 space(s) between "'post_status'" and double arrow, but found 10.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
87 | WARNING | [x] Array double arrow not aligned correctly; expected 13 space(s) between "'post_type'" and double arrow, but found 12.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
88 | WARNING | [x] Array double arrow not aligned correctly; expected 8 space(s) between "'posts_per_page'" and double arrow, but found 7.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
89 | WARNING | [x] Array double arrow not aligned correctly; expected 21 space(s) between "'s'" and double arrow, but found 20.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
90 | WARNING | [x] Array double arrow not aligned correctly; expected 19 space(s) between "'tag'" and double arrow, but found 18.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
91 | WARNING | [x] Array double arrow not aligned correctly; expected 10 space(s) between "'tax_operator'" and double arrow, but found 9.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
92 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'tax_include_children'" and double arrow, but found 1.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
93 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'tax_term'" and double arrow, but found 13.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
94 | WARNING | [x] Array double arrow not aligned correctly; expected 14 space(s) between "'taxonomy'" and double arrow, but found 13.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
95 | WARNING | [x] Array double arrow not aligned correctly; expected 18 space(s) between "'time'" and double arrow, but found 17.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
96 | WARNING | [x] Array double arrow not aligned correctly; expected 17 space(s) between "'title'" and double arrow, but found 16.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
97 | WARNING | [x] Array double arrow not aligned correctly; expected 15 space(s) between "'wrapper'" and double arrow, but found 14.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
98 | WARNING | [x] Array double arrow not aligned correctly; expected 9 space(s) between "'wrapper_class'" and double arrow, but found 8.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
99 | WARNING | [x] Array double arrow not aligned correctly; expected 12 space(s) between "'wrapper_id'" and double arrow, but found 11.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
100 | ERROR | [x] Only one argument is allowed per line in a multi-line function call (PEAR.Functions.FunctionCallSignature.MultipleArguments)
100 | ERROR | [x] Only one argument is allowed per line in a multi-line function call (PEAR.Functions.FunctionCallSignature.MultipleArguments)
100 | ERROR | [x] Closing parenthesis of a multi-line function call must be on a line by itself (PEAR.Functions.FunctionCallSignature.CloseBracketLine)
103 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
103 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
103 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
106 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 16 spaces but found 15 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
107 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 13 spaces but found 12 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
108 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 13 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
109 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 5 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
109 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
110 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 11 spaces but found 10 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
111 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 7 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
112 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 8 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
113 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 11 spaces but found 10 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
114 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 18 spaces but found 17 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
115 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 11 spaces but found 10 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
116 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 9 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
117 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 4 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
118 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 5 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
119 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 4 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
120 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 3 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
121 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 7 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
122 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 9 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
123 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 4 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
124 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 15 spaces but found 14 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
125 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 6 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
126 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 9 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
127 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 20 spaces but found 19 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
128 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 2 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
129 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 12 spaces but found 11 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
130 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 8 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
131 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 7 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
132 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 6 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
133 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 9 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
134 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 0 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
134 | ERROR | [x] Expected 1 space before "="; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceBefore)
135 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 6 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
136 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
137 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 9 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
138 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 13 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
139 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 12 spaces but found 11 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
140 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 5 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
141 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 16 spaces but found 15 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
142 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 17 spaces but found 16 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
143 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 15 spaces but found 14 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
144 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 11 spaces but found 10 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
145 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 6 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
146 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 2 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
147 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 11 spaces but found 10 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
148 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 13 spaces but found 12 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
149 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 7 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
150 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 21 spaces but found 20 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
151 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 19 spaces but found 18 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
152 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 9 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
153 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
154 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 13 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
155 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 13 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
156 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 18 spaces but found 17 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
157 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 6 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
158 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 15 spaces but found 14 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
159 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 8 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
161 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
161 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
161 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
161 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
163 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
164 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
164 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
164 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
164 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
165 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
169 | ERROR | [x] Each array item in a multi-line array declaration must end in a comma (WordPress.Arrays.CommaAfterArrayItem.NoComma)
173 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
173 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
173 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
173 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
174 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 12 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
175 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
175 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
175 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
175 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
176 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
177 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
177 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
177 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
177 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
178 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 10 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
179 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
179 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
179 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
179 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
180 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 8 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
181 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
181 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
181 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
181 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
182 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 6 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
183 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
183 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
183 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
183 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
185 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
185 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
185 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
185 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
186 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
187 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
187 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
187 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
187 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
188 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 12 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
192 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
195 | ERROR | [x] Each item in a multi-line array must be on a new line (WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine)
195 | ERROR | [x] Each item in a multi-line array must be on a new line (WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine)
195 | ERROR | [x] Each item in a multi-line array must be on a new line (WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine)
196 | ERROR | [x] Each item in a multi-line array must be on a new line (WordPress.Arrays.ArrayDeclarationSpacing.ArrayItemNoNewLine)
196 | ERROR | [x] Each array item in a multi-line array declaration must end in a comma (WordPress.Arrays.CommaAfterArrayItem.NoComma)
206 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
207 | WARNING | [x] Array double arrow not aligned correctly; expected 2 space(s) between "'year'" and double arrow, but found 3.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
208 | WARNING | [x] Array double arrow not aligned correctly; expected 1 space(s) between "'month'" and double arrow, but found 2.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
209 | WARNING | [x] Array double arrow not aligned correctly; expected 3 space(s) between "'day'" and double arrow, but found 4.
| | (WordPress.Arrays.MultipleStatementAlignment.DoubleArrowNotAligned)
238 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
243 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
252 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
257 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
271 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
271 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
271 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
275 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
275 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
275 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
279 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
279 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
279 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
279 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
283 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
283 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
283 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
283 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
287 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
287 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
287 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
288 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
294 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
294 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
294 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
294 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
297 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
297 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
297 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
300 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
300 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
300 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
300 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
305 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
305 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
305 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
305 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
306 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
306 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
306 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
306 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
308 | ERROR | [x] Expected 1 space(s) after ELSEIF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
308 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
308 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
308 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
309 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
310 | ERROR | [x] Expected 1 space(s) after ELSE keyword; newline found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
310 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
311 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
312 | ERROR | [x] Expected 1 space(s) after ELSEIF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
312 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
312 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
312 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
317 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
317 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
317 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
317 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
321 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 13 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
322 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
323 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 15 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
324 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
325 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
325 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
326 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
327 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
327 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
327 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
327 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
329 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
332 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
332 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
334 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
334 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
334 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
334 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
336 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 4 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
336 | ERROR | [x] Expected 1 spaces after opening bracket; 0 found (PEAR.Functions.FunctionCallSignature.SpaceAfterOpenBracket)
336 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found (PEAR.Functions.FunctionCallSignature.SpaceBeforeCloseBracket)
338 | ERROR | [x] No space after opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterOpenParenthesis)
338 | ERROR | [x] No space before closing parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeCloseParenthesis)
341 | ERROR | [x] Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace)
341 | ERROR | [x] Expected 1 space(s) after ELSE keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
341 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
341 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
347 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
347 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
347 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
347 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
347 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
358 | ERROR | [x] Each array item in a multi-line array declaration must end in a comma (WordPress.Arrays.CommaAfterArrayItem.NoComma)
359 | ERROR | [x] Each array item in a multi-line array declaration must end in a comma (WordPress.Arrays.CommaAfterArrayItem.NoComma)
363 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 12 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
365 | ERROR | [x] Expected 1 space(s) after WHILE keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
365 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
365 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
366 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
366 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
366 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
367 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
367 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
367 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
368 | ERROR | [x] Expected 1 space(s) after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
368 | ERROR | [x] Space between opening control structure and T_COLON is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBetweenStructureColon)
371 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
372 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 13 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
372 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
373 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
373 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 16 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
373 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
374 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
374 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
374 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
374 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
375 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
375 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 9 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
375 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
376 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
376 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
376 | ERROR | [x] Array keys must be surrounded by spaces unless they contain a string or an integer.
| | (WordPress.Arrays.ArrayKeySpacingRestrictions.NoSpacesAroundArrayKeys)
378 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
379 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
380 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
381 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
382 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
383 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
384 | ERROR | [x] Tabs must be used to indent lines; spaces are not allowed (Generic.WhiteSpace.DisallowSpaceIndent.SpacesUsed)
390 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
390 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
390 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
390 | ERROR | [x] Expected 1 space(s) after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
390 | ERROR | [x] Space between opening control structure and T_COLON is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBetweenStructureColon)
391 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 18 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
392 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
392 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
392 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
392 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
393 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
401 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
401 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
401 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
401 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
402 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
402 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
402 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
402 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
409 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
409 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
409 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
409 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
410 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
411 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
411 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
411 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
411 | ERROR | [ ] Use Yoda Condition checks, you must. (WordPress.PHP.YodaConditions.NotYoda)
417 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
417 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
417 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
417 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
418 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
419 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
419 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
443 | ERROR | [x] Expected 1 space(s) after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
443 | ERROR | [x] Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace)
443 | ERROR | [x] Space between opening control structure and T_COLON is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBetweenStructureColon)
443 | ERROR | [x] Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine)
445 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
445 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
445 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
445 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
451 | ERROR | [x] Expected 1 space(s) after ELSEIF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
451 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
451 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
461 | ERROR | [x] Expected 1 space(s) after ELSEIF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
461 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
461 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
467 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
469 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
471 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
471 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
471 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
471 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
475 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
475 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
475 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
488 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
488 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
488 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
494 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
494 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
494 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
496 | ERROR | [x] Expected 1 space(s) after ELSEIF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
496 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
496 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
501 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
503 | ERROR | [x] Line indented incorrectly; expected at least 4 tabs, found 3 (Generic.WhiteSpace.ScopeIndent.Incorrect)
509 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
509 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
509 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
511 | ERROR | [x] Blank line found after control structure (WordPress.WhiteSpace.ControlStructureSpacing.BlankLineAfterEnd)
515 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
515 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
515 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
524 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
524 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
524 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
525 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 7 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
527 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
527 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
527 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
527 | ERROR | [x] Expected 1 space after "!"; 0 found (WordPress.WhiteSpace.OperatorSpacing.NoSpaceAfter)
528 | ERROR | [x] Expected 1 space(s) after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
528 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
528 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
529 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 5 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
556 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
573 | ERROR | [x] Spaces must be used for mid-line alignment; tabs are not allowed (WordPress.WhiteSpace.DisallowInlineTabs.NonIndentTabsUsed)
578 | ERROR | [x] Each PHP statement must be on a line by itself (Generic.Formatting.DisallowMultipleStatements.SameLine)
604 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
604 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
604 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
639 | WARNING | [ ] Not using strict comparison for in_array; supply true for third argument. (WordPress.PHP.StrictInArray.MissingTrueStrict)
654 | WARNING | [ ] Variable assignment found within a condition. Did you mean to do a comparison? (WordPress.CodeAnalysis.AssignmentInCondition.Found)
654 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
659 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
662 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
664 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
664 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
669 | ERROR | [x] Expected 1 space before ">="; 2 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
669 | ERROR | [x] Expected 1 space before "<="; 2 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
669 | ERROR | [x] Expected 1 space before ":"; 2 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
670 | ERROR | [x] Expected 1 space before close parenthesis; 3 found (WordPress.WhiteSpace.ArbitraryParenthesesSpacing.SpaceBeforeClose)
671 | ERROR | [x] Expected 1 space before ">="; 3 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
671 | ERROR | [x] Expected 1 space before "<="; 3 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
671 | ERROR | [x] Expected 1 space before close parenthesis; 3 found (WordPress.WhiteSpace.ArbitraryParenthesesSpacing.SpaceBeforeClose)
671 | ERROR | [x] Expected 1 space before ":"; 3 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
677 | ERROR | [x] Each array item in a multi-line array declaration must end in a comma (WordPress.Arrays.CommaAfterArrayItem.NoComma)
680 | ERROR | [x] Line indented incorrectly; expected at least 2 tabs, found 1 (Generic.WhiteSpace.ScopeIndent.Incorrect)
681 | WARNING | [ ] Found: ==. Use strict comparisons (=== or !==). (WordPress.PHP.StrictComparisons.LooseComparison)
683 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
683 | ERROR | [ ] Assignments must be the first block of code on a line (Squiz.PHP.DisallowMultipleAssignments.Found)
685 | ERROR | [x] Expected 1 space(s) after SWITCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
685 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
685 | ERROR | [x] No space before opening parenthesis is prohibited (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceBeforeOpenParenthesis)
686 | ERROR | [x] There must be no space before the colon in a CASE statement (PSR2.ControlStructures.SwitchDeclaration.SpaceBeforeColonCASE)
688 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 27 spaces but found 3 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
688 | ERROR | [x] Expected 1 space before ">="; 3 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
688 | ERROR | [x] Expected 1 space before "<="; 3 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
688 | ERROR | [x] Expected 1 space before ":"; 3 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
689 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 25 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
690 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 25 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
692 | ERROR | [x] There must be no space before the colon in a CASE statement (PSR2.ControlStructures.SwitchDeclaration.SpaceBeforeColonCASE)
694 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 18 spaces but found 3 spaces
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
694 | ERROR | [x] Expected 1 space before ">="; 3 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
694 | ERROR | [x] Expected 1 space before "<="; 3 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
694 | ERROR | [x] Expected 1 space before ":"; 3 found (WordPress.WhiteSpace.OperatorSpacing.SpacingBefore)
695 | WARNING | [x] Equals sign not aligned with surrounding assignments; expected 16 spaces but found 1 space
| | (Generic.Formatting.MultipleStatementAlignment.NotSameWarning)
697 | ERROR | [x] There must be no space before the colon in a DEFAULT statement (PSR2.ControlStructures.SwitchDeclaration.SpaceBeforeColonDEFAULT)
697 | ERROR | [x] The DEFAULT body must start on the line following the statement (PSR2.ControlStructures.SwitchDeclaration.BodyOnNextLineDEFAULT)
703 | ERROR | [x] Each array item in a multi-line array declaration must end in a comma (WordPress.Arrays.CommaAfterArrayItem.NoComma)
769 | ERROR | [x] Expected 1 space(s) after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword)
769 | ERROR | [x] Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed)
769 | ERROR | [x] Space after opening control structure is required (WordPress.WhiteSpace.ControlStructureSpacing.NoSpaceAfterStructureOpen)
771 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
792 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)

PHPCBF CAN FIX THE 412 MARKED SNIFF VIOLATIONS AUTOMATICALLY

Could these please be fixed at source?

@billerickson

This comment has been minimized.

Copy link
Owner

commented Feb 20, 2019

I'm happy to test and merge a pull request.

GaryJones added a commit to GaryJones/display-posts-shortcode that referenced this issue Feb 21, 2019
Fix coding standards
With these changes, this plugin now passes the following coding standards:

 - `WordPress-Extra`
 - `WordPress-Docs`
 - `WordPress-VIP-Go`
 - `WordPressVIPMinimum`
 - `PHPCompatibilityWP`

To test, navigate in the command line to the root of this directory, then run:

```
composer require --dev automattic/vipwpcs phpcompatibility/phpcompatibility-wp wp-coding-standards/wpcs:1.2.1 dealerdirect/phpcodesniffer-composer-installer
```

After installation, run PHPCS with:

```
vendor/bin/phpcs --standard=WordPress-Extra,WordPress-Docs,WordPress-VIP-Go,WordPressVIPMinimum,PHPCompatibility --severity=1 -sp . --ignore=vendor --runtime-set testVersion 5.2-
```

Fixes billerickson#214.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.