$ phpcs --standard=Drupal AutoslaveController.php FILE: C:\xampp\htdocs\epsilon\boehringer-ingelheim\web\modules\contrib\autoslave\src\Controller\AutoslaveController.php -------------------------------------------------------------------------------------------------------------------------------------------- FOUND 29 ERRORS AND 2 WARNINGS AFFECTING 26 LINES -------------------------------------------------------------------------------------------------------------------------------------------- 1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n" 7 | ERROR | [x] There must be one blank line after the last USE statement; 0 found; 7 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements 10 | ERROR | [ ] Wrong function doc comment end; expected "*/", found "**/" 12 | ERROR | [x] Opening brace should be on the same line as the declaration 15 | ERROR | [x] Doc comment short description must end with a full stop 16 | ERROR | [ ] Wrong function doc comment end; expected "*/", found "**/" 18 | ERROR | [x] Opening brace should be on the same line as the declaration 21 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 21 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3 27 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 46 | WARNING | [x] A comma should follow the last multiline array item. Found: ) 51 | ERROR | [x] Doc comment short description must end with a full stop 52 | ERROR | [ ] Wrong function doc comment end; expected "*/", found "**/" 53 | ERROR | [x] Visibility must be declared on method "affectedTables" 54 | ERROR | [x] Opening brace should be on the same line as the declaration 56 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 56 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 3 65 | ERROR | [x] Short array syntax must be used to define arrays 75 | ERROR | [x] Short array syntax must be used to define arrays 78 | ERROR | [x] Short array syntax must be used to define arrays 81 | ERROR | [x] Short array syntax must be used to define arrays 89 | ERROR | [x] Expected newline after closing brace 90 | ERROR | [x] Short array syntax must be used to define arrays 102 | ERROR | [x] Expected newline after closing brace 103 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed 103 | ERROR | [x] Line indented incorrectly; expected 12 spaces, found 6 103 | ERROR | [x] Short array syntax must be used to define arrays 105 | WARNING | [x] A comma should follow the last multiline array item. Found: ] 111 | ERROR | [ ] The array declaration extends to column 96 (the limit is 80). The array content should be split up over multiple lines 136 | ERROR | [x] Expected 1 newline at end of file; 0 found -------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 27 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------- Time: 502ms; Memory: 10MB $ phpcs --standard=DrupalPractice AutoslaveController.php FILE: C:\xampp\htdocs\epsilon\boehringer-ingelheim\web\modules\contrib\autoslave\src\Controller\AutoslaveController.php ------------------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 16 WARNINGS AFFECTING 9 LINES ------------------------------------------------------------------------------------------------------------------------------------------ 19 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 19 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 53 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 53 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 72 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 75 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 84 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 84 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 84 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 94 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 94 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 94 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 102 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead 102 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 123 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 132 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead ------------------------------------------------------------------------------------------------------------------------------------------ Time: 356ms; Memory: 6MB