Fix the issues reported by phpcs

Created on 21 June 2022, over 2 years ago
Updated 20 May 2024, 8 months ago

GitLab CI reports the following PHP_CodeSniffer warnings/errors, which should be fixed.

FILE: /builds/issue/ajans-3291612/web/modules/custom/ajans-3291612/ajans.theme
--------------------------------------------------------------------------------
FOUND 91 ERRORS AND 14 WARNINGS AFFECTING 79 LINES
--------------------------------------------------------------------------------
   5 | ERROR   | [x] Doc comment short description must end with a full stop
     |         |     (Drupal.Commenting.DocComment.ShortFullStop)
   8 | WARNING | [x] Unused use statement
     |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
   9 | WARNING | [x] Unused use statement
     |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
   9 | ERROR   | [x] Use statements should be sorted alphabetically. The first
     |         |     wrong one is Drupal\Core\Template\Attribute.
     |         |     (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses)
  10 | WARNING | [x] Unused use statement
     |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
  11 | WARNING | [x] Unused use statement
     |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
  12 | WARNING | [x] Unused use statement
     |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
  13 | WARNING | [x] Unused use statement
     |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
  15 | WARNING | [x] Unused use statement
     |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
  16 | WARNING | [x] Unused use statement
     |         |     (Drupal.Classes.UnusedUseStatement.UnusedUse)
  17 | ERROR   | [x] There must be one blank line after the last USE statement;
     |         |     2 found;
     |         |     (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse)
  22 | ERROR   | [x] There must be no blank lines after the function comment
     |         |     (Drupal.Commenting.FunctionComment.SpacingAfter)
  41 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
     |         |     (Drupal.Commenting.InlineComment.InvalidEndChar)
  42 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  42 | ERROR   | [x] Equals sign not aligned with surrounding assignments;
     |         |     expected 1 space but found 2 spaces
     |         |     (Drupal.Formatting.MultipleStatementAlignment.NotSame)
  43 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  44 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  47 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
     |         |     (Drupal.Commenting.InlineComment.InvalidEndChar)
  48 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  49 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  49 | ERROR   | [x] Expected one space after the comma, 0 found
     |         |     (Drupal.WhiteSpace.Comma.NoSpace)
  50 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  51 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  52 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  53 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  54 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  55 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  56 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  57 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  64 | ERROR   | [x] There should be no white space after an opening "{"
     |         |     (Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace)
  64 | ERROR   | [x] Comments may not appear after statements
     |         |     (Drupal.Commenting.PostStatementComment.Found)
  66 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  67 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  68 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  70 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  71 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 6
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  72 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 6
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  73 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  74 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  75 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  75 | ERROR   | [x] Closing brace indented incorrectly; expected 2 spaces,
     |         |     found 0 (Drupal.WhiteSpace.ScopeClosingBrace.Indent)
  80 | ERROR   | [ ] Doc comment short description must be on a single line,
     |         |     further text should be a separate paragraph
     |         |     (Drupal.Commenting.DocComment.ShortSingleLine)
  83 | ERROR   | [x] Short array syntax must be used to define arrays
     |         |     (Drupal.Arrays.DisallowLongArraySyntax.Found)
  87 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
  88 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
  95 | ERROR   | [x] Missing function doc comment
     |         |     (Drupal.Commenting.FunctionComment.Missing)
  96 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  97 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  98 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  99 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
  99 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
  99 | ERROR   | [x] Expected one space after the comma, 0 found
     |         |     (Drupal.WhiteSpace.Comma.NoSpace)
 100 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
 101 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
 102 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
 103 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
 104 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
 105 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
 106 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
 107 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
 110 | ERROR   | [x] Expected 1 blank line after function; 2 found
     |         |     (Squiz.WhiteSpace.FunctionSpacing.After)
 116 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced
     |         |     with use statements
     |         |     (Drupal.Classes.FullyQualifiedNamespace.UseStatementMissing)
 134 | WARNING | [x] A comma should follow the last multiline array item.
     |         |     Found: 'Max 100 characters'
     |         |     (Drupal.Arrays.Array.CommaLastItem)
 191 | ERROR   | [x] Functions must not contain multiple empty lines in a row;
     |         |     found 2 empty lines
     |         |     (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines)
 193 | ERROR   | [x] No space found before comment text; expected "// Slide
     |         |     show configure" but found "//Slide show configure"
     |         |     (Drupal.Commenting.InlineComment.NoSpaceBefore)
 193 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks,
     |         |     question marks, colons, or closing parentheses
     |         |     (Drupal.Commenting.InlineComment.InvalidEndChar)
 193 | ERROR   | [x] Whitespace found at end of line
     |         |     (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
 231 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     |         |     (Drupal.WhiteSpace.ScopeIndent.IncorrectExact)
 232 | ERROR   | [x] Array indentation error, expected 6 spaces but found 4
     |         |     (Drupal.Arrays.Array.ArrayIndentation)
 233 | ERROR   | [x] Array indentation error, expected 6 spaces but found 4
     |         |     (Drupal.Arrays.Array.ArrayIndentation)
 234 | ERROR   | [x] Array indentation error, expected 6 spaces but found 4
     |         |     (Drupal.Arrays.Array.ArrayIndentation)
 235 | ERROR   | [x] Array indentation error, expected 6 spaces but found 4
     |         |     (Drupal.Arrays.Array.ArrayIndentation)
 237 | ERROR   | [x] Array closing indentation error, expected 4 spaces but
     |         |     found 2 (Drupal.Arrays.Array.ArrayClosingIndentation)
 242 | ERROR   | [x] Whitespace found at end of line
     |         |     (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
 246 | WARNING | [ ] Translatable strings must not begin or end with white
     |         |     spaces, use placeholders with t() for variables
     |         |     (Drupal.Semantics.FunctionT.WhiteSpace)
 246 | ERROR   | [ ] Concatenating translatable strings is not allowed, use
     |         |     placeholders instead and only one string literal
     |         |     (Drupal.Semantics.FunctionT.Concat)
 246 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 252 | WARNING | [ ] Translatable strings must not begin or end with white
     |         |     spaces, use placeholders with t() for variables
     |         |     (Drupal.Semantics.FunctionT.WhiteSpace)
 252 | ERROR   | [ ] Concatenating translatable strings is not allowed, use
     |         |     placeholders instead and only one string literal
     |         |     (Drupal.Semantics.FunctionT.Concat)
 252 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 252 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 253 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 253 | ERROR   | [x] Expected one space after the comma, 0 found
     |         |     (Drupal.WhiteSpace.Comma.NoSpace)
 258 | WARNING | [ ] Translatable strings must not begin or end with white
     |         |     spaces, use placeholders with t() for variables
     |         |     (Drupal.Semantics.FunctionT.WhiteSpace)
 258 | ERROR   | [ ] Concatenating translatable strings is not allowed, use
     |         |     placeholders instead and only one string literal
     |         |     (Drupal.Semantics.FunctionT.Concat)
 258 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 258 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 259 | ERROR   | [x] Expected one space after the comma, 0 found
     |         |     (Drupal.WhiteSpace.Comma.NoSpace)
 263 | WARNING | [ ] Translatable strings must not begin or end with white
     |         |     spaces, use placeholders with t() for variables
     |         |     (Drupal.Semantics.FunctionT.WhiteSpace)
 263 | ERROR   | [ ] Concatenating translatable strings is not allowed, use
     |         |     placeholders instead and only one string literal
     |         |     (Drupal.Semantics.FunctionT.Concat)
 263 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 263 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 264 | ERROR   | [x] Expected one space after the comma, 0 found
     |         |     (Drupal.WhiteSpace.Comma.NoSpace)
 265 | ERROR   | [x] Whitespace found at end of line
     |         |     (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine)
 268 | WARNING | [ ] Translatable strings must not begin or end with white
     |         |     spaces, use placeholders with t() for variables
     |         |     (Drupal.Semantics.FunctionT.WhiteSpace)
 268 | ERROR   | [ ] Concatenating translatable strings is not allowed, use
     |         |     placeholders instead and only one string literal
     |         |     (Drupal.Semantics.FunctionT.Concat)
 268 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 268 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 269 | ERROR   | [x] Expected one space after the comma, 0 found
     |         |     (Drupal.WhiteSpace.Comma.NoSpace)
 273 | ERROR   | [x] Concat operator must be surrounded by a single space
     |         |     (Squiz.Strings.ConcatenationSpacing.PaddingFound)
 273 | ERROR   | [x] Expected one space after the comma, 0 found
     |         |     (Drupal.WhiteSpace.Comma.NoSpace)
 274 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
     |         |     (Drupal.ControlStructures.ControlSignature.SpaceAfterKeyword)
 274 | ERROR   | [x] Expected 1 space after closing parenthesis; found 0
     |         |     (Drupal.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis)
 288 | ERROR   | [x] Missing function doc comment
     |         |     (Drupal.Commenting.FunctionComment.Missing)
 297 | ERROR   | [x] Expected 1 newline at end of file; 0 found
     |         |     (Drupal.Files.EndFileNewline.NoneFound)
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 94 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------
Time: 154ms; Memory: 6MB

 
 

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Harsh panchal

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India Akshay kashyap

    Thanks, Harsh Panchal
    Applied Patch cleanly 2
    Please fix this coding standard issue

    FILE: /home/gai/drupal-git/drupal/themes/contrib/ajans/assets/css/bootstrap.css
    -------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------
     3030 | ERROR | Style definitions must end with a semicolon
    -------------------------------------------------------------------------------
    
    
    FILE: /home/gai/drupal-git/drupal/themes/contrib/ajans/assets/js/jquery.min.js
    ------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------
     1 | WARNING | File appears to be minified and cannot be processed
    ------------------------------------------------------------------------------
    
    
    FILE: /home/gai/drupal-git/drupal/themes/contrib/ajans/assets/js/isotope.pkgd.js
    --------------------------------------------------------------------------------------------------
    FOUND 327 ERRORS AFFECTING 307 LINES
    --------------------------------------------------------------------------------------------------
       19 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
       24 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
       51 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
       52 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
       67 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
       72 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
       77 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
       94 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      119 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      163 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      177 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      178 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 3 empty lines
      180 | ERROR | [ ] More than 2 empty lines are not allowed
      185 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      201 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      213 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
      218 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      231 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      242 | ERROR | [x] Expected 1 space before "="; 0 found
      242 | ERROR | [x] Expected 1 space after "="; 0 found
      259 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      277 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      306 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      338 | ERROR | [x] Expected 1 space before "="; 0 found
      338 | ERROR | [x] Expected 1 space after "="; 0 found
      363 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
      377 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
      431 | ERROR | [x] Expected 1 space before "="; 0 found
      431 | ERROR | [x] Expected 1 space after "="; 0 found
      450 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
      457 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
      484 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      502 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      515 | ERROR | [x] Expected 1 space before "="; 0 found
      515 | ERROR | [x] Expected 1 space after "="; 0 found
      537 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      545 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      563 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 3 empty lines
      565 | ERROR | [ ] More than 2 empty lines are not allowed
      571 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      580 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      589 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      595 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
      611 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      620 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      632 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      642 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      651 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      656 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      674 | ERROR | [x] Expected 1 space before "="; 0 found
      674 | ERROR | [x] Expected 1 space after "="; 0 found
      684 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      690 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      696 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      705 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      718 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      719 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      730 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      731 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      741 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      776 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      809 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
      811 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
      812 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
      861 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      875 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      882 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      890 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      901 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      929 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      961 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      967 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
      973 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1000 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1004 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1014 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1021 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1034 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1052 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1066 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1069 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1079 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
     1086 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1093 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1100 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1126 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
     1131 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1135 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1144 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1176 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1178 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
     1179 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
     1186 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1201 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1208 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1216 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1223 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1231 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1237 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1251 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1256 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1269 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1281 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1283 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1297 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1302 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1311 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1333 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1345 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1376 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1384 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
     1433 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1434 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1435 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1436 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1437 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1458 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1465 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1482 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1499 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1503 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
     1510 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1517 | ERROR | [x] Expected 1 space before "="; 0 found
     1517 | ERROR | [x] Expected 1 space after "="; 0 found
     1531 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1539 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1540 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1550 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1561 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1570 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1573 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
     1575 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1589 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1611 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1625 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1626 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1636 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1646 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1663 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1676 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1678 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1684 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1686 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
     1701 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1715 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1719 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1726 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1727 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
     1743 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1766 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1769 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
     1787 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1798 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1826 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1829 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1837 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1848 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1863 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1869 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1881 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1893 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1904 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1926 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1948 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1950 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     1956 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1958 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
     1961 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1967 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1981 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1996 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2009 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2015 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     2023 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2035 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     2045 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2051 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2061 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2067 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2077 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2086 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2097 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2099 | ERROR | [x] Expected 1 space before "="; 0 found
     2099 | ERROR | [x] Expected 1 space after "="; 0 found
     2113 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2116 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2130 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2140 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2150 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2157 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2180 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2185 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
     2193 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2271 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2306 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2313 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2332 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2349 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2405 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2406 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2414 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2425 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2429 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2433 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2442 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2458 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2465 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2469 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2478 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2511 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2536 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 3 empty lines
     2538 | ERROR | [ ] More than 2 empty lines are not allowed
     2548 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2556 | ERROR | [x] Expected 1 space before "="; 0 found
     2556 | ERROR | [x] Expected 1 space after "="; 0 found
     2564 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2589 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2599 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2626 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2641 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2657 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2668 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2683 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2706 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2719 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2733 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2749 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2784 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     2785 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     2786 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     2798 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2806 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2822 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2850 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2857 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2879 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2891 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2921 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2925 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2934 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2952 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     2969 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3000 | ERROR | [x] Multi-line function declarations must define one parameter per line
     3000 | ERROR | [x] Multi-line function declarations must define one parameter per line
     3000 | ERROR | [x] Multi-line function declarations must define one parameter per line
     3000 | ERROR | [x] Multi-line function declarations must define one parameter per line
     3001 | ERROR | [x] Multi-line function declarations must define one parameter per line
     3002 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 3 empty lines
     3004 | ERROR | [ ] More than 2 empty lines are not allowed
     3012 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3015 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3024 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     3025 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     3033 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3053 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3060 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3063 | ERROR | [x] Expected 1 space before "="; 0 found
     3063 | ERROR | [x] Expected 1 space after "="; 0 found
     3070 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
     3074 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3084 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
     3086 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3096 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3105 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     3109 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3133 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3141 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3151 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3157 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "NULL" but found "null"
     3160 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3161 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     3164 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3165 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     3168 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3169 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     3176 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3186 | ERROR | [x] Expected 1 space before "="; 0 found
     3186 | ERROR | [x] Expected 1 space after "="; 0 found
     3215 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3218 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3224 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3229 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3240 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3255 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3267 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3271 | ERROR | [x] Expected 1 space before "="; 0 found
     3271 | ERROR | [x] Expected 1 space after "="; 0 found
     3281 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3302 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3306 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3334 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3337 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3345 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3361 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3362 | ERROR | [x] Expected 1 space before "="; 0 found
     3362 | ERROR | [x] Expected 1 space after "="; 0 found
     3364 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false"
     3367 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     3392 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3405 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3411 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3415 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3419 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3423 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3430 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3442 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3459 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3465 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     3473 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3481 | ERROR | [x] Expected 1 space before "="; 0 found
     3481 | ERROR | [x] Expected 1 space after "="; 0 found
     3488 | ERROR | [x] Expected 1 space before "="; 0 found
     3488 | ERROR | [x] Expected 1 space after "="; 0 found
     3489 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but found "true"
     3493 | ERROR | [x] Expected 1 space before "="; 0 found
     3493 | ERROR | [x] Expected 1 space after "="; 0 found
     3500 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3508 | ERROR | [x] Expected 1 space before "="; 0 found
     3508 | ERROR | [x] Expected 1 space after "="; 0 found
     3515 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3517 | ERROR | [x] Expected 1 space before "="; 0 found
     3517 | ERROR | [x] Expected 1 space after "="; 0 found
     3534 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3552 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3553 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3562 | ERROR | [x] Expected 1 newline at end of file; 2 found
     3563 | ERROR | [x] Additional whitespace found at end of file
    --------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 323 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------------------------
    
    
    FILE: /home/gai/drupal-git/drupal/themes/contrib/ajans/assets/js/fslightbox.js
    ------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------
     1 | WARNING | File appears to be minified and cannot be processed
    ------------------------------------------------------------------------------
    
    
    FILE: /home/gai/drupal-git/drupal/themes/contrib/ajans/assets/js/bootstrap.bundle.min.js
    ----------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------
     1 | WARNING | File appears to be minified and cannot be processed
    ----------------------------------------------------------------------------------------
    
    
    FILE: /home/gai/drupal-git/drupal/themes/contrib/ajans/assets/js/custom.js
    --------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------
     1 | ERROR | [x] Expected 1 newline at end of file; 0 found
    --------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------
    
    
    FILE: /home/gai/drupal-git/drupal/themes/contrib/ajans/assets/js/templatemo.min.js
    ----------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 1 LINE
    ----------------------------------------------------------------------------------
     1 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     1 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ----------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------
    
    
    FILE: /home/gai/drupal-git/drupal/themes/contrib/ajans/assets/js/templatemo.js
    -----------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 4 LINES
    -----------------------------------------------------------------------------------------------
     1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
     2 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
     3 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines
     5 | ERROR | [x] Expected 1 newline at end of file; 0 found
    -----------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------
    
  • Status changed to Needs work almost 2 years ago
  • @akshay-kashyap opened merge request.
  • 🇮🇳India Akshay kashyap

    I have created a patch to fixed the Drupal coding standard issue please review.

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Status changed to RTBC over 1 year ago
  • 🇮🇳India keshavv India

    Reviewed and tested the patch. Confirmed that it will resolve all mentioned issues.

  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The issue summary should always describe what the issue is trying to fix and, in the case, of coding standards issues, show which command and arguments have been used, and which report that command shown.

  • Status changed to Needs review over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇮🇳India Raveen Kumar

    Hi Guys,
    I have reviewed & tested patch #7. And it seems to be working fine for me.
    And Thank you.

  • Status changed to RTBC over 1 year ago
  • Status changed to Needs review over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The status needs to be changed by somebody else.

  • Status changed to RTBC over 1 year ago
  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
     /**
      * @file
    - * Contains theme override functions and preprocess functions
    + * Contains theme override functions and preprocess functions.
      */

    The usual description is Hook implementations for the [theme name] theme. where [theme name] is replaced by the theme name shown in the .info.yml file.

    +  // Assign Variable for slider.
    +  if ($variables['is_front']) {

    Since that comment is edited, it should also corrected to Assign the variable for the slider.

         '#title' => t('About Us'),
         '#attributes' => [
    -      'placeholder'  => 'Max 100 characters'
    +      'placeholder'  => 'Max 100 characters',
         ],

    Since that code is changed, 'Max 100 characters' must be passed to t().

    -  //Slide show configure 
    +  // Slide show configure.

    Since that comment is edited, it should also be corrected: Configure the slideshow.

  • Assigned to nitin_lama
  • Issue was unassigned.
  • Assigned to imustakim
  • 🇨🇦Canada imustakim Canada
  • Issue was unassigned.
  • 🇨🇦Canada imustakim Canada
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India sakthi_dev

    Please review.

  • Assigned to arti_parmar
  • Issue was unassigned.
  • Hi, patch #23 applied cleanly but it not fixes all the phpcs issues.

    $ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml ajans/
    
    FILE: C:\Users\Nisha\ajans\ajans.theme
    -----------------------------------------------------------------------------------------------------
    FOUND 78 ERRORS AND 13 WARNINGS AFFECTING 67 LINES
    -----------------------------------------------------------------------------------------------------
       1 | ERROR   | [x] End of line character is invalid; expected "\n" but found "\r\n"
       8 | WARNING | [x] Unused use statement
       9 | WARNING | [x] Unused use statement
       9 | ERROR   | [x] Use statements should be sorted alphabetically. The first wrong one is
         |         |     Drupal\Core\Template\Attribute.
      10 | WARNING | [x] Unused use statement
      11 | WARNING | [x] Unused use statement
      12 | WARNING | [x] Unused use statement
      13 | WARNING | [x] Unused use statement
      15 | WARNING | [x] Unused use statement
      16 | WARNING | [x] Unused use statement
      17 | ERROR   | [x] There must be one blank line after the last USE statement; 2 found;
      22 | ERROR   | [x] There must be no blank lines after the function comment
      41 | ERROR   | [x] Inline comments must end in full-stops, exclamation marks, question marks,
         |         |     colons, or closing parentheses
      42 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      42 | ERROR   | [x] Equals sign not aligned with surrounding assignments; expected 1 space but
         |         |     found 2 spaces
      43 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      44 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      48 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      49 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
      49 | ERROR   | [x] Expected one space after the comma, 0 found
      50 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
      51 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
      52 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
      53 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
      54 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
      55 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
      56 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
      57 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      64 | ERROR   | [x] There should be no white space after an opening "{"
      64 | ERROR   | [x] Comments may not appear after statements
      66 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
      67 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
      68 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
      70 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
      71 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 6
      72 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 6
      73 | ERROR   | [x] Line indented incorrectly; expected 6 spaces, found 4
      74 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 2
      75 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 0
      75 | ERROR   | [x] Closing brace indented incorrectly; expected 2 spaces, found 0
      80 | ERROR   | [ ] Doc comment short description must be on a single line, further text should be
         |         |     a separate paragraph
      83 | ERROR   | [x] Short array syntax must be used to define arrays
      87 | ERROR   | [x] Concat operator must be surrounded by a single space
      88 | ERROR   | [x] Concat operator must be surrounded by a single space
      95 | ERROR   | [x] Missing function doc comment
      96 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
      97 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
      98 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
      99 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
      99 | ERROR   | [x] Concat operator must be surrounded by a single space
      99 | ERROR   | [x] Expected one space after the comma, 0 found
     100 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     101 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
     102 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
     103 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
     104 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     105 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     106 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 6
     107 | ERROR   | [x] Line indented incorrectly; expected 2 spaces, found 4
     110 | ERROR   | [x] Expected 1 blank line after function; 2 found
     116 | ERROR   | [x] Namespaced classes/interfaces/traits should be referenced with use statements
     241 | ERROR   | [x] Whitespace found at end of line
     245 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders
         |         |     with t() for variables
     245 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and
         |         |     only one string literal
     245 | ERROR   | [x] Concat operator must be surrounded by a single space
     251 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders
         |         |     with t() for variables
     251 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and
         |         |     only one string literal
     251 | ERROR   | [x] Concat operator must be surrounded by a single space
     251 | ERROR   | [x] Concat operator must be surrounded by a single space
     252 | ERROR   | [x] Concat operator must be surrounded by a single space
     252 | ERROR   | [x] Expected one space after the comma, 0 found
     257 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders
         |         |     with t() for variables
     257 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and
         |         |     only one string literal
     257 | ERROR   | [x] Concat operator must be surrounded by a single space
     257 | ERROR   | [x] Concat operator must be surrounded by a single space
     258 | ERROR   | [x] Expected one space after the comma, 0 found
     262 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders
         |         |     with t() for variables
     262 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and
         |         |     only one string literal
     262 | ERROR   | [x] Concat operator must be surrounded by a single space
     262 | ERROR   | [x] Concat operator must be surrounded by a single space
     263 | ERROR   | [x] Expected one space after the comma, 0 found
     264 | ERROR   | [x] Whitespace found at end of line
     267 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders
         |         |     with t() for variables
     267 | ERROR   | [ ] Concatenating translatable strings is not allowed, use placeholders instead and
         |         |     only one string literal
     267 | ERROR   | [x] Concat operator must be surrounded by a single space
     267 | ERROR   | [x] Concat operator must be surrounded by a single space
     268 | ERROR   | [x] Expected one space after the comma, 0 found
     272 | ERROR   | [x] Concat operator must be surrounded by a single space
     272 | ERROR   | [x] Expected one space after the comma, 0 found
     273 | ERROR   | [x] Expected 1 space after IF keyword; 0 found
     273 | ERROR   | [x] Expected 1 space after closing parenthesis; found 0
    -----------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 80 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------
    
    
    FILE: C:\Users\Nisha\ajans\assets\css\bootstrap.css
    -------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    -------------------------------------------------------------------------------------
        1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
     3030 | ERROR | [ ] Style definitions must end with a semicolon
    -------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -------------------------------------------------------------------------------------
    
    
    FILE: C:\Users\Nisha\ajans\assets\css\custom.css
    ----------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------
     1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    ----------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------
    
    
    FILE: C:\Users\Nisha\ajans\assets\css\templatemo.css
    ------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    ------------------------------------------------------------------------------------
       1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
     163 | ERROR | [ ] Style definitions must end with a semicolon
     199 | ERROR | [ ] Style definitions must end with a semicolon
    ------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------
    
    
    FILE: C:\Users\Nisha\ajans\css\style.css
    ------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    ------------------------------------------------------------------------------------
       1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
      52 | ERROR | [ ] Style definitions must end with a semicolon
     137 | ERROR | [x] Expected 1 newline at end of file; 0 found
    ------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ------------------------------------------------------------------------------------
    
    
    FILE: C:\Users\Nisha\ajans\css\theme.css
    ----------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------
     1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
    ----------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    ----------------------------------------------------------------------------------
    
    Time: 10.43 secs; Memory: 124MB
    
    
  • 🇮🇳India dev16.addweb

    Hi, Reroll patch #23 and resolved phpcs issue from 1.0.x branch.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • Pipeline finished with Success
    8 months ago
    Total: 3691s
    #177316
Production build 0.71.5 2024