FILE: tests/fixtures/drupal7-no-default.php ------------------------------------------------------------------------------------------------------------------------------ FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES ------------------------------------------------------------------------------------------------------------------------------ 1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line | | (Drupal.WhiteSpace.OpenTagNewline.BlankLine) 73 | WARNING | [x] A comma should follow the last multiline array item. Found: ] (Drupal.Arrays.Array.CommaLastItem) 207 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 218 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 229 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) ------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------ FILE: tests/fixtures/drupal7.php ------------------------------------------------------------------------------------------------------------------------------ FOUND 7 ERRORS AND 1 WARNING AFFECTING 8 LINES ------------------------------------------------------------------------------------------------------------------------------ 1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line | | (Drupal.WhiteSpace.OpenTagNewline.BlankLine) 73 | WARNING | [x] A comma should follow the last multiline array item. Found: ] (Drupal.Arrays.Array.CommaLastItem) 145 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 149 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 153 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 218 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 229 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 240 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) ------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------ FILE: tests/fixtures/drupal6.php -------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------- 1 | ERROR | [x] The PHP open tag must be followed by exactly one blank line | | (Drupal.WhiteSpace.OpenTagNewline.BlankLine) -------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Functional/GlobalRedirectTest.php -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 8 ERRORS AND 4 WARNINGS AFFECTING 9 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 37 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 42 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 47 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 52 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 57 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 62 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 195 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses (Drupal.Commenting.InlineComment.InvalidEndChar) 211 | WARNING | [x] '@todo - here it seems that the access check runs prior to our redirecting' should match the format '@todo Fix problem X here.' (Drupal.Commenting.TodoComment.TodoFormat) 213 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters (Drupal.Files.LineLength.TooLong) 213 | WARNING | [x] There must be no blank line following an inline comment (Drupal.Commenting.InlineComment.SpacingAfter) 213 | WARNING | [ ] There must be no blank line following an inline comment (DrupalPractice.Commenting.CommentEmptyLine.SpacingAfter) 213 | ERROR | [x] No space found before comment text; expected "// $this->assertRedirect('admin/config/system/site-information', 'site-info');" but found "//$this->assertRedirect('admin/config/system/site-information', | | 'site-info');" (Drupal.Commenting.InlineComment.NoSpaceBefore) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Functional/RedirectUILanguageTest.php --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 20 | ERROR | The array declaration extends to column 123 (the limit is 120). The array content should be split up over multiple lines | | (Drupal.Arrays.Array.LongLineDeclaration) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Functional/RedirectUITest.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 210 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option. | | (DrupalPractice.FunctionCalls.InsecureUnserialize.InsecureUnserialize) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Functional/AssertRedirectTrait.php ----------------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ----------------------------------------------------------------------------------------------------------------------------------- 18 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 34 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE" but found "false" | | (Generic.PHP.UpperCaseConstant.Found) 35 | ERROR | [x] Expected newline after closing brace (Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace) ----------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Kernel/RedirectAPITest.php -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 7 ERRORS AND 3 WARNINGS AFFECTING 9 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Language\Language. (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 194 | WARNING | [ ] Unused variable $index. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable) 272 | ERROR | [ ] Public method name "RedirectAPITest::testParseURL" is not in lowerCamel format (Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps) 273 | ERROR | [x] No space found before comment text; expected "// $test_cases = array(" but found "//$test_cases = array(" (Drupal.Commenting.InlineComment.NoSpaceBefore) 275 | WARNING | [ ] Line exceeds 80 characters; contains 95 characters (Drupal.Files.LineLength.TooLong) 275 | ERROR | [ ] Comment indentation error, expected only 2 spaces (Drupal.Commenting.InlineComment.SpacingBefore) 276 | WARNING | [ ] Line exceeds 80 characters; contains 98 characters (Drupal.Files.LineLength.TooLong) 278 | ERROR | [x] No space found before comment text; expected "// );" but found "//);" (Drupal.Commenting.InlineComment.NoSpaceBefore) 279 | ERROR | [x] No space found before comment text; expected "// foreach ($test_cases as $index => $test_case) {" but found "//foreach ($test_cases as $index => $test_case) {" | | (Drupal.Commenting.InlineComment.NoSpaceBefore) 282 | ERROR | [x] No space found before comment text; expected "// }" but found "//}" (Drupal.Commenting.InlineComment.NoSpaceBefore) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Kernel/Migrate/d7/PathRedirectSourceTest.php ---------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------- 29 | WARNING | [x] A comma should follow the last multiline array item. Found: ] | | (Drupal.Arrays.Array.CommaLastItem) ---------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Kernel/Migrate/d7/PathRedirectTestBase.php -------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------- 3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment | | (Drupal.Commenting.FileComment.NamespaceNoFileDoc) 38 | ERROR | [x] Data types in @var tags need to be fully namespaced (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace) -------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Kernel/Migrate/d7/PathRedirectWithoutDefaultTest.php --------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES --------------------------------------------------------------------------------------------------------------------------------------------------------- 3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment | | (Drupal.Commenting.FileComment.NamespaceNoFileDoc) 5 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters (Drupal.Files.LineLength.TooLong) --------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Kernel/Migrate/d7/PathRedirectTest.php ------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------- 3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment | | (Drupal.Commenting.FileComment.NamespaceNoFileDoc) ------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Kernel/Migrate/d6/PathRedirectTest.php ------------------------------------------------------------------------------------------------------------------------------------------ FOUND 5 ERRORS AFFECTING 5 LINES ------------------------------------------------------------------------------------------------------------------------------------------ 6 | ERROR | [x] There must be one blank line after the last USE statement; 2 found; | | (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) 27 | ERROR | [x] There should be no white space after an opening "(" (Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace) 37 | ERROR | [x] Data types in @var tags need to be fully namespaced (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace) 48 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 49 | ERROR | [x] The closing brace for the class must have an empty line before it | | (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) ------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------ FILE: tests/src/Unit/RedirectRequestSubscriberTest.php ---------------------------------------------------------------------------------------------------------------------------------- FOUND 13 ERRORS AFFECTING 9 LINES ---------------------------------------------------------------------------------------------------------------------------------- 114 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 116 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 178 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 180 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 210 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 257 | ERROR | [ ] Missing parameter comment (Drupal.Commenting.FunctionComment.MissingParamComment) 257 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 258 | ERROR | [ ] Missing parameter comment (Drupal.Commenting.FunctionComment.MissingParamComment) 258 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 260 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) 260 | ERROR | [x] Data types in @return tags need to be fully namespaced | | (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace) 260 | ERROR | [x] Data types in @return tags need to be fully namespaced | | (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace) 272 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) ---------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Unit/RedirectCheckerTest.php -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 27 ERRORS AND 5 WARNINGS AFFECTING 23 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 58 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines (Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines) 84 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters (Drupal.Files.LineLength.TooLong) 103 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters (Drupal.Files.LineLength.TooLong) 103 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 103 | ERROR | [x] 4 spaces found before inline comment; expected "// $checker = new RedirectChecker($this->getConfigFactoryStub($config), $state);" but found "// $checker = new | | RedirectChecker($this->getConfigFactoryStub($config), $state);" (Drupal.Commenting.InlineComment.SpacingBefore) 104 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 105 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 106 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 106 | ERROR | [ ] Comment indentation error, expected only 4 spaces (Drupal.Commenting.InlineComment.SpacingBefore) 107 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 108 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 109 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 109 | ERROR | [ ] Comment indentation error, expected only 4 spaces (Drupal.Commenting.InlineComment.SpacingBefore) 110 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 111 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 112 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 113 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 114 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 114 | ERROR | [ ] Comment indentation error, expected only 4 spaces (Drupal.Commenting.InlineComment.SpacingBefore) 115 | WARNING | [ ] Line exceeds 80 characters; contains 111 characters (Drupal.Files.LineLength.TooLong) 115 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 116 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 117 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 118 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 119 | WARNING | [ ] Line exceeds 80 characters; contains 83 characters (Drupal.Files.LineLength.TooLong) 119 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 120 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 121 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 122 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 122 | ERROR | [ ] Comment indentation error, expected only 4 spaces (Drupal.Commenting.InlineComment.SpacingBefore) 123 | WARNING | [ ] Line exceeds 80 characters; contains 116 characters (Drupal.Files.LineLength.TooLong) 123 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 23 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/Unit/RouteNormalizerRequestSubscriberTest.php -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 9 ERRORS AND 6 WARNINGS AFFECTING 15 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\redirect\EventSubscriber\RouteNormalizerRequestSubscriber. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 45 | WARNING | [ ] Line exceeds 80 characters; contains 118 characters (Drupal.Files.LineLength.TooLong) 46 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters (Drupal.Files.LineLength.TooLong) 59 | WARNING | [ ] Line exceeds 80 characters; contains 113 characters (Drupal.Files.LineLength.TooLong) 60 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters (Drupal.Files.LineLength.TooLong) 73 | WARNING | [ ] Line exceeds 80 characters; contains 126 characters (Drupal.Files.LineLength.TooLong) 74 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters (Drupal.Files.LineLength.TooLong) 100 | ERROR | [ ] The array declaration extends to column 127 (the limit is 120). The array content should be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration) 102 | ERROR | [ ] The array declaration extends to column 122 (the limit is 120). The array content should be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration) 116 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) 140 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) 162 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) 182 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) 208 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) 211 | ERROR | [ ] The array declaration extends to column 148 (the limit is 120). The array content should be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: tests/src/FunctionalJavascript/RedirectJavascriptTest.php --------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------------------------------------- 73 | ERROR | Public method name "RedirectJavascriptTest::testRedirectUI" is not in lowerCamel format | | (Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps) --------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: redirect.generate.inc -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 17 ERRORS AND 4 WARNINGS AFFECTING 18 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Database\Database. (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 18 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) 38 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) 44 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) 58 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) 84 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) 108 | WARNING | [ ] Unused variable $source_options. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable) 143 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 144 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 145 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 149 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 150 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 6 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 158 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters (Drupal.Files.LineLength.TooLong) 158 | WARNING | [x] There must be no blank line following an inline comment (Drupal.Commenting.InlineComment.SpacingAfter) 158 | WARNING | [ ] There must be no blank line following an inline comment (DrupalPractice.Commenting.CommentEmptyLine.SpacingAfter) 158 | ERROR | [x] No space found before comment text; expected "// $context['message'] = t('Deleted URL redirect @rid.', array('@rid' => end($rids)));" but found "//$context['message'] = t('Deleted URL redirect @rid.', | | array('@rid' => end($rids)));" (Drupal.Commenting.InlineComment.NoSpaceBefore) 167 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) 175 | ERROR | [ ] The array declaration extends to column 195 (the limit is 120). The array content should be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration) 179 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) 183 | ERROR | [x] Concat operator must be surrounded by a single space (Squiz.Strings.ConcatenationSpacing.PaddingFound) 192 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 17 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: redirect.api.php ------------------------------------------------------------------------------------------------------ FOUND 6 ERRORS AND 2 WARNINGS AFFECTING 8 LINES ------------------------------------------------------------------------------------------------------ 28 | WARNING | Line exceeds 80 characters; contains 85 characters | | (Drupal.Files.LineLength.TooLong) 38 | WARNING | Line exceeds 80 characters; contains 83 characters | | (Drupal.Files.LineLength.TooLong) 101 | ERROR | Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 103 | ERROR | Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 115 | ERROR | Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 117 | ERROR | Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 119 | ERROR | Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 142 | ERROR | Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) ------------------------------------------------------------------------------------------------------ FILE: modules/redirect_404/tests/src/Functional/Redirect404LogSuppressorTest.php ------------------------------------------------------------------------------------------------------------------------------------------ FOUND 2 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------------ 82 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 83 | ERROR | [x] The closing brace for the class must have an empty line before it | | (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) ------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------ FILE: modules/redirect_404/tests/src/Functional/Fix404RedirectUITest.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 178 | WARNING | [ ] Unused variable $xpath. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable) 180 | ERROR | [x] Concat operator must be surrounded by a single space (Squiz.Strings.ConcatenationSpacing.PaddingFound) 230 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph | | (Drupal.Commenting.DocComment.ShortSingleLine) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: modules/redirect_404/tests/src/Kernel/Fix404RedirectCronJobTest.php --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Database\Database. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 41 | ERROR | [x] Visibility must be declared on method "testRedirect404CronJob" (Drupal.Scope.MethodScope.Missing) 81 | ERROR | [x] Visibility must be declared on method "testRedirect404CronJobKeepAllButOne" (Drupal.Scope.MethodScope.Missing) 121 | ERROR | [x] Visibility must be declared on method "testRedirect404CronJobDailyCountReset" (Drupal.Scope.MethodScope.Missing) 186 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters (Drupal.Files.LineLength.TooLong) 223 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 224 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: modules/redirect_404/redirect_404.module ---------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------- 44 | WARNING | [x] A comma should follow the last multiline array item. Found: ) | | (Drupal.Arrays.Array.CommaLastItem) ---------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------- FILE: modules/redirect_404/src/SqlRedirectNotFoundStorage.php ------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------ 72 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead | | (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) ------------------------------------------------------------------------------------------------------------------------------------------------ FILE: modules/redirect_404/src/Controller/Fix404IgnoreController.php ---------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ---------------------------------------------------------------------------------------------------------------------- 60 | ERROR | Description for the @return value is missing | | (Drupal.Commenting.FunctionComment.MissingReturnComment) 66 | WARNING | Unused variable $langcode. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable) ---------------------------------------------------------------------------------------------------------------------- FILE: modules/redirect_404/src/Form/RedirectFix404Form.php -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 157 | ERROR | [ ] The array declaration extends to column 134 (the limit is 120). The array content should be split up over multiple lines | | (Drupal.Arrays.Array.LongLineDeclaration) 170 | ERROR | [x] Equals sign not aligned with surrounding assignments; expected 1 space but found 2 spaces (Drupal.Formatting.MultipleStatementAlignment.NotSame) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Path\CurrentPathStack. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 99 | ERROR | [x] Data types in @param tags need to be fully namespaced (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: modules/redirect_domain/tests/src/Unit/DomainRedirectRequestSubscriberTest.php ------------------------------------------------------------------------------------------------------------------------------------------- FOUND 6 ERRORS AFFECTING 5 LINES ------------------------------------------------------------------------------------------------------------------------------------------- 124 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 126 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 129 | ERROR | [x] Data types in @return tags need to be fully namespaced (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace) 129 | ERROR | [x] Data types in @return tags need to be fully namespaced (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace) 157 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 158 | ERROR | [x] The closing brace for the class must have an empty line before it | | (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) ------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------- FILE: modules/redirect_domain/tests/src/FunctionalJavascript/RedirectDomainUITest.php -------------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES -------------------------------------------------------------------------------------------------------------------------------------------- 35 | WARNING | [x] A comma should follow the last multiline array item. Found: 'administer redirects' | | (Drupal.Arrays.Array.CommaLastItem) 68 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 69 | ERROR | [x] The closing brace for the class must have an empty line before it | | (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) -------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------- FILE: modules/redirect_domain/redirect_domain.module ------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES ------------------------------------------------------------------------------------------------------------------------------------------------- 1 | ERROR | [x] Missing file doc comment (Drupal.Commenting.FileComment.Missing) 7 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found (Drupal.Commenting.DocCommentAlignment.SpaceBeforeStar) 8 | ERROR | [x] Expected 1 space(s) before asterisk; 0 found (Drupal.Commenting.DocCommentAlignment.SpaceBeforeStar) 18 | ERROR | [x] Case breaking statements must be followed by a single blank line | | (Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak) ------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------- FILE: modules/redirect_domain/src/Form/RedirectDomainForm.php --------------------------------------------------------------------------------------------------------------------------------------------- FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 8 LINES --------------------------------------------------------------------------------------------------------------------------------------------- 21 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found (Drupal.Commenting.DocCommentAlignment.SpaceBeforeStar) 22 | ERROR | [x] Expected 3 space(s) before asterisk; 2 found (Drupal.Commenting.DocCommentAlignment.SpaceBeforeStar) 43 | WARNING | [x] A comma should follow the last multiline array item. Found: ) (Drupal.Arrays.Array.CommaLastItem) 49 | WARNING | [ ] Unused variable $rows. (DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable) 57 | ERROR | [x] Expected one space after the comma, 0 found (Drupal.WhiteSpace.Comma.NoSpace) 57 | ERROR | [x] Expected one space after the comma, 0 found (Drupal.WhiteSpace.Comma.NoSpace) 157 | WARNING | [x] A comma should follow the last multiline array item. Found: ] (Drupal.Arrays.Array.CommaLastItem) 165 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 166 | ERROR | [x] The closing brace for the class must have an empty line before it | | (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) --------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------- FILE: modules/redirect_domain/src/EventSubscriber/DomainRedirectRequestSubscriber.php -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 12 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Symfony\Component\EventDispatcher\EventSubscriberInterface. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 19 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 43 | ERROR | [x] Scope keyword "protected" must be followed by a single space; found 2 (Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect) 46 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters (Drupal.Files.LineLength.TooLong) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: redirect.drush.inc ----------------------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ----------------------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] There must be exactly one blank line after the file comment (Drupal.Commenting.FileComment.SpacingAfterComment) 7 | ERROR | [x] There must be one blank line after the last USE statement; 0 found; | | (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) 11 | ERROR | [x] Expected 1 blank line before function; 0 found (Squiz.WhiteSpace.FunctionSpacing.Before) ----------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------- FILE: redirect.module -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 11 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 51 | ERROR | [ ] The array declaration extends to column 487 (the limit is 120). The array content should be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration) 63 | ERROR | [x] Case breaking statements must be followed by a single blank line (Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak) 64 | WARNING | [ ] Code after the RETURN statement on line 63 cannot be executed (Squiz.PHP.NonExecutableCode.Unreachable) 64 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 6 (Drupal.WhiteSpace.ScopeIndent.IncorrectExact) 209 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 211 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 214 | ERROR | [ ] Return type missing for @return tag in function comment (Drupal.Commenting.FunctionComment.MissingReturnType) 227 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) 237 | ERROR | [x] Use null coalesce operator instead of ternary operator. (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed) 245 | ERROR | [ ] Return type missing for @return tag in function comment (Drupal.Commenting.FunctionComment.MissingReturnType) 253 | WARNING | [ ] Format should be "* Implements hook_foo().", "* Implements hook_foo_BAR_ID_bar() for xyz_bar().",, "* Implements hook_foo_BAR_ID_bar() for xyz-bar.html.twig.", "* Implements hook_foo_BAR_ID_bar() for | | xyz-bar.tpl.php.", or "* Implements hook_foo_BAR_ID_bar() for block templates." (Drupal.Commenting.HookComment.HookCommentFormat) 255 | ERROR | [ ] All functions defined in a module file must be prefixed with the module's name, found "locale_form_redirect_edit_form_alter" but expected "redirect_locale_form_redirect_edit_form_alter" | | (Drupal.NamingConventions.ValidFunctionName.InvalidPrefix) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: redirect.install ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 3 ERRORS AND 1 WARNING AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 25 | WARNING | [ ] Line exceeds 80 characters; contains 85 characters (Drupal.Files.LineLength.TooLong) 37 | ERROR | [ ] unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option. | | (DrupalPractice.FunctionCalls.InsecureUnserialize.InsecureUnserialize) 37 | ERROR | [x] Expected 1 space before ":"; 0 found (Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore) 52 | ERROR | [x] Expected 1 blank line after function; 2 found (Squiz.WhiteSpace.FunctionSpacing.After) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: src/RedirectRepository.php ----------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 11 ERRORS AND 2 WARNINGS AFFECTING 13 LINES ----------------------------------------------------------------------------------------------------------------------------------------------------- 12 | ERROR | [x] Missing class doc comment (Drupal.Commenting.ClassComment.Missing) 14 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 19 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 24 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 36 | ERROR | [ ] Parameter $config_factory is not described in comment (Drupal.Commenting.FunctionComment.ParamMissingDefinition) 37 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters (Drupal.Files.LineLength.TooLong) 57 | ERROR | [ ] Missing parameter type (Drupal.Commenting.FunctionComment.MissingParamType) 107 | ERROR | [ ] Parameter $redirect is not described in comment (Drupal.Commenting.FunctionComment.ParamMissingDefinition) 110 | ERROR | [ ] Missing parameter name (Drupal.Commenting.FunctionComment.MissingParamName) 117 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead | | (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) 166 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) 183 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 184 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) ----------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Entity/Redirect.php ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 163 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) 172 | ERROR | [ ] Description for the @return value is missing (Drupal.Commenting.FunctionComment.MissingReturnComment) 252 | ERROR | [x] Use null coalesce operator instead of ternary operator. (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed) 298 | ERROR | [ ] The array declaration extends to column 268 (the limit is 120). The array content should be split up over multiple lines | | (Drupal.Arrays.Array.LongLineDeclaration) 313 | WARNING | [x] A comma should follow the last multiline array item. Found: DRUPAL_DISABLED (Drupal.Arrays.Array.CommaLastItem) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Form/RedirectDeleteMultipleForm.php --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\TempStore\PrivateTempStoreFactory. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Form/RedirectDeleteForm.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 3 ERRORS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 9 | ERROR | [x] Missing class doc comment (Drupal.Commenting.ClassComment.Missing) 15 | ERROR | [ ] The array declaration extends to column 203 (the limit is 120). The array content should be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: src/Form/RedirectSettingsForm.php --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 8 | ERROR | [x] Missing class doc comment (Drupal.Commenting.ClassComment.Missing) 15 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.After) 32 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) 38 | ERROR | [ ] The array declaration extends to column 426 (the limit is 120). The array content should be split up over multiple lines | | (Drupal.Arrays.Array.LongLineDeclaration) 72 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead (Drupal.Semantics.FunctionT.BackslashSingleQuote) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Form/RedirectForm.php --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 9 ERRORS AND 3 WARNINGS AFFECTING 12 LINES --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 12 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 14 | ERROR | [x] Missing class doc comment (Drupal.Commenting.ClassComment.Missing) 26 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses (Drupal.Commenting.InlineComment.InvalidEndChar) 70 | ERROR | [x] Expected 1 space after closing parenthesis; found 2 (Drupal.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 71 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) 77 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) 128 | ERROR | [x] Use null coalesce operator instead of ternary operator. (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed) 129 | ERROR | [x] Use null coalesce operator instead of ternary operator. (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed) 133 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) 143 | ERROR | [x] Closing parenthesis of array declaration must be on a new line (Squiz.Arrays.ArrayDeclaration.CloseBraceNewLine) 155 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 156 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Plugin/migrate/process/PathRedirect.php -------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------- 9 | ERROR | Missing short description in doc comment | | (Drupal.Commenting.DocComment.MissingShort) -------------------------------------------------------------------------------------------------- FILE: src/Plugin/migrate/process/d7/PathRedirect.php ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment (Drupal.Commenting.FileComment.NamespaceNoFileDoc) 14 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 41 | ERROR | [ ] unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option. | | (DrupalPractice.FunctionCalls.InsecureUnserialize.InsecureUnserialize) 54 | ERROR | [x] Expected 1 newline at end of file; 0 found (Drupal.Files.EndFileNewline.NoneFound) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Plugin/migrate/process/d7/RedirectSourceQuery.php ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment (Drupal.Commenting.FileComment.NamespaceNoFileDoc) 14 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 31 | ERROR | [ ] unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option. | | (DrupalPractice.FunctionCalls.InsecureUnserialize.InsecureUnserialize) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Plugin/migrate/source/d7/PathRedirect.php ------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------- 3 | ERROR | [x] Namespaced classes, interfaces and traits should not begin with a file doc comment | | (Drupal.Commenting.FileComment.NamespaceNoFileDoc) ------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Plugin/Field/FieldWidget/RedirectSourceWidget.php --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 5 ERRORS AND 4 WARNINGS AFFECTING 9 LINES --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 50 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) 66 | WARNING | [x] '@todo - Hmm... exception driven logic. Find a better way how to' should match the format '@todo Fix problem X here.' (Drupal.Commenting.TodoComment.TodoFormat) 69 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) 82 | ERROR | [x] Use null coalesce operator instead of ternary operator. (SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed) 85 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) 89 | ERROR | [ ] The array declaration extends to column 319 (the limit is 120). The array content should be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration) 122 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 123 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Plugin/Field/FieldType/RedirectSourceItem.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 100 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option. | | (DrupalPractice.FunctionCalls.InsecureUnserialize.InsecureUnserialize) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Plugin/Field/FieldFormatter/RedirectSourceFormatter.php ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Field\FieldItemListInterface. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/Plugin/Validation/Constraint/SourceLinkTypeConstraint.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 6 ERRORS AND 1 WARNING AFFECTING 6 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Url. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 25 | ERROR | [ ] Missing member variable doc comment (Drupal.Commenting.VariableComment.Missing) 27 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 52 | WARNING | [x] The variable name should be defined after the type (Drupal.Commenting.InlineVariableComment.VarInlineOrder) 90 | ERROR | [x] Expected 1 blank line after function; 0 found (Squiz.WhiteSpace.FunctionSpacing.AfterLast) 91 | ERROR | [x] Expected 1 newline at end of file; 2 found (Drupal.Files.EndFileNewline.TooMany) 91 | ERROR | [x] The closing brace for the class must have an empty line before it (Drupal.Classes.ClassDeclaration.CloseBraceAfterBody) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: src/Plugin/Action/DeleteRedirect.php -------------------------------------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------------------------------- 48 | ERROR | [x] Data types in @param tags need to be fully namespaced | | (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace) -------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------- FILE: src/EventSubscriber/RouteNormalizerRequestSubscriber.php -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 13 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Symfony\Component\EventDispatcher\EventSubscriberInterface. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 109 | ERROR | [x] Equals sign not aligned correctly; expected 1 space but found 2 spaces (Drupal.Formatting.MultipleStatementAlignment.Incorrect) 137 | ERROR | [x] Visibility must be declared on method "getSubscribedEvents" (Drupal.Scope.MethodScope.Missing) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/EventSubscriber/RedirectRequestSubscriber.php -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 14 ERRORS AND 2 WARNINGS AFFECTING 13 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 20 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Symfony\Component\EventDispatcher\EventSubscriberInterface. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 28 | ERROR | [x] The open comment tag must be the only content on the line (Drupal.Commenting.DocComment.ContentAfterOpen) 28 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 31 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 36 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 41 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 46 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 51 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 56 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 61 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 73 | ERROR | [ ] Parameter $context is not described in comment (Drupal.Commenting.FunctionComment.ParamMissingDefinition) 73 | ERROR | [ ] Parameter $path_processor is not described in comment (Drupal.Commenting.FunctionComment.ParamMissingDefinition) 74 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters (Drupal.Files.LineLength.TooLong) 90 | ERROR | [ ] Missing parameter name (Drupal.Commenting.FunctionComment.MissingParamName) 148 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead (DrupalPractice.Objects.GlobalDrupal.GlobalDrupal) 148 | ERROR | [ ] The array declaration extends to column 155 (the limit is 120). The array content should be split up over multiple lines (Drupal.Arrays.Array.LongLineDeclaration) -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/EventSubscriber/RedirectSettingsCacheTag.php ----------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------- 11 | WARNING | Line exceeds 80 characters; contains 84 characters | | (Drupal.Files.LineLength.TooLong) ----------------------------------------------------------------------------------------------------- FILE: src/Exception/RedirectLoopException.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 35 | ERROR | [ ] The array declaration extends to column 126 (the limit is 120). The array content should be split up over multiple lines | | (Drupal.Arrays.Array.LongLineDeclaration) 57 | ERROR | [x] Additional blank lines found at end of doc comment (Drupal.Commenting.DocComment.SpacingAfter) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: src/RedirectChecker.php ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 8 ERRORS AFFECTING 8 LINES ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Routing\RouteObjectInterface. | | (SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses) 18 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 23 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 28 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 33 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 38 | ERROR | [ ] Missing short description in doc comment (Drupal.Commenting.DocComment.MissingShort) 43 | ERROR | [x] Missing function doc comment (Drupal.Commenting.FunctionComment.Missing) 54 | ERROR | [x] Data types in @param tags need to be fully namespaced (Drupal.Commenting.DataTypeNamespace.DataTypeNamespace) ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Time: 4.22 secs; Memory: 8MB PHP CODE SNIFFER REPORT SUMMARY ------------------------------------------------------------------------------------------------------------------------------------------ FILE ERRORS WARNINGS ------------------------------------------------------------------------------------------------------------------------------------------ redirect.api.php 6 2 redirect.drush.inc 3 0 redirect.generate.inc 17 4 redirect.install 3 1 redirect.module 10 2 modules/redirect_404/redirect_404.module 0 1 modules/redirect_404/src/SqlRedirectNotFoundStorage.php 0 1 modules/redirect_404/src/Controller/Fix404IgnoreController.php 1 1 modules/redirect_404/src/EventSubscriber/Redirect404Subscriber.php 2 0 modules/redirect_404/src/Form/RedirectFix404Form.php 2 0 modules/redirect_404/tests/src/Functional/Fix404RedirectUITest.php 2 1 modules/redirect_404/tests/src/Functional/Redirect404LogSuppressorTest.php 2 0 modules/redirect_404/tests/src/Kernel/Fix404RedirectCronJobTest.php 6 1 modules/redirect_domain/redirect_domain.module 4 0 modules/redirect_domain/src/EventSubscriber/DomainRedirectRequestSubscriber.php 3 1 modules/redirect_domain/src/Form/RedirectDomainForm.php 6 3 modules/redirect_domain/tests/src/FunctionalJavascript/RedirectDomainUITest.php 2 1 modules/redirect_domain/tests/src/Unit/DomainRedirectRequestSubscriberTest.php 6 0 src/RedirectChecker.php 8 0 src/RedirectRepository.php 11 2 src/Entity/Redirect.php 4 1 src/EventSubscriber/RedirectRequestSubscriber.php 14 2 src/EventSubscriber/RedirectSettingsCacheTag.php 0 1 src/EventSubscriber/RouteNormalizerRequestSubscriber.php 3 0 src/Exception/RedirectLoopException.php 2 0 src/Form/RedirectDeleteForm.php 3 0 src/Form/RedirectDeleteMultipleForm.php 1 0 src/Form/RedirectForm.php 9 3 src/Form/RedirectSettingsForm.php 3 2 src/Plugin/Action/DeleteRedirect.php 1 0 src/Plugin/Field/FieldFormatter/RedirectSourceFormatter.php 1 0 src/Plugin/Field/FieldType/RedirectSourceItem.php 1 0 src/Plugin/Field/FieldWidget/RedirectSourceWidget.php 5 4 src/Plugin/migrate/process/PathRedirect.php 1 0 src/Plugin/migrate/process/d7/PathRedirect.php 4 0 src/Plugin/migrate/process/d7/RedirectSourceQuery.php 3 0 src/Plugin/migrate/source/d7/PathRedirect.php 1 0 src/Plugin/Validation/Constraint/SourceLinkTypeConstraint.php 6 1 tests/fixtures/drupal6.php 1 0 tests/fixtures/drupal7-no-default.php 4 1 tests/fixtures/drupal7.php 7 1 tests/src/Functional/AssertRedirectTrait.php 3 0 tests/src/Functional/GlobalRedirectTest.php 8 4 tests/src/Functional/RedirectUILanguageTest.php 1 0 tests/src/Functional/RedirectUITest.php 1 0 tests/src/FunctionalJavascript/RedirectJavascriptTest.php 1 0 tests/src/Kernel/RedirectAPITest.php 7 3 tests/src/Kernel/Migrate/d6/PathRedirectTest.php 5 0 tests/src/Kernel/Migrate/d7/PathRedirectSourceTest.php 0 1 tests/src/Kernel/Migrate/d7/PathRedirectTest.php 1 0 tests/src/Kernel/Migrate/d7/PathRedirectTestBase.php 2 0 tests/src/Kernel/Migrate/d7/PathRedirectWithoutDefaultTest.php 1 1 tests/src/Unit/RedirectCheckerTest.php 27 5 tests/src/Unit/RedirectRequestSubscriberTest.php 13 0 tests/src/Unit/RouteNormalizerRequestSubscriberTest.php 9 6 ------------------------------------------------------------------------------------------------------------------------------------------ A TOTAL OF 247 ERRORS AND 57 WARNINGS WERE FOUND IN 55 FILES ------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX 165 OF THESE SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------ PHP CODE SNIFFER VIOLATION SOURCE SUMMARY ----------------------------------------------------------------------------------------------------------- SOURCE COUNT ----------------------------------------------------------------------------------------------------------- [x] Drupal.WhiteSpace.ScopeIndent.IncorrectExact 36 [ ] Drupal.Commenting.DocComment.MissingShort 27 [ ] Drupal.Files.LineLength.TooLong 24 [ ] Drupal.Commenting.FunctionComment.MissingParamType 19 [x] SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses.IncorrectlyOrderedUses 15 [ ] Drupal.Arrays.Array.LongLineDeclaration 13 [ ] Drupal.Commenting.FunctionComment.MissingReturnComment 11 [x] Drupal.Classes.ClassDeclaration.CloseBraceAfterBody 10 [x] Drupal.Commenting.FunctionComment.Missing 10 [ ] DrupalPractice.Objects.GlobalDrupal.GlobalDrupal 10 [x] Squiz.WhiteSpace.FunctionSpacing.AfterLast 10 [x] Drupal.Commenting.DataTypeNamespace.DataTypeNamespace 9 [x] Drupal.Arrays.Array.CommaLastItem 8 [x] Drupal.Commenting.FileComment.NamespaceNoFileDoc 6 [x] Drupal.Commenting.InlineComment.NoSpaceBefore 6 [ ] Drupal.Commenting.InlineComment.SpacingBefore 6 [ ] DrupalPractice.CodeAnalysis.VariableAnalysis.UnusedVariable 5 [ ] DrupalPractice.FunctionCalls.InsecureUnserialize.InsecureUnserialize 5 [x] SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator.NullCoalesceOperatorNotUsed 5 [x] Drupal.Commenting.ClassComment.Missing 4 [x] Drupal.Commenting.DocCommentAlignment.SpaceBeforeStar 4 [ ] Drupal.Commenting.FunctionComment.ParamMissingDefinition 4 [x] Drupal.Scope.MethodScope.Missing 4 [x] Drupal.WhiteSpace.OpenTagNewline.BlankLine 3 [ ] Drupal.Commenting.FunctionComment.MissingParamComment 2 [ ] Drupal.Commenting.FunctionComment.MissingParamName 2 [ ] Drupal.Commenting.FunctionComment.MissingReturnType 2 [x] Drupal.Commenting.InlineComment.InvalidEndChar 2 [x] Drupal.Commenting.InlineComment.SpacingAfter 2 [x] Drupal.Commenting.TodoComment.TodoFormat 2 [ ] Drupal.NamingConventions.ValidFunctionName.ScopeNotCamelCaps 2 [x] Drupal.WhiteSpace.Comma.NoSpace 2 [ ] DrupalPractice.Commenting.CommentEmptyLine.SpacingAfter 2 [x] PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse 2 [x] Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak 2 [x] Squiz.Strings.ConcatenationSpacing.PaddingFound 2 [x] Squiz.WhiteSpace.FunctionSpacing.After 2 [x] Drupal.Commenting.DocComment.ContentAfterOpen 1 [ ] Drupal.Commenting.DocComment.ShortSingleLine 1 [x] Drupal.Commenting.DocComment.SpacingAfter 1 [x] Drupal.Commenting.FileComment.Missing 1 [x] Drupal.Commenting.FileComment.SpacingAfterComment 1 [ ] Drupal.Commenting.HookComment.HookCommentFormat 1 [x] Drupal.Commenting.InlineVariableComment.VarInlineOrder 1 [ ] Drupal.Commenting.VariableComment.Missing 1 [x] Drupal.ControlStructures.ControlSignature.NewlineAfterCloseBrace 1 [x] Drupal.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis 1 [x] Drupal.Files.EndFileNewline.NoneFound 1 [x] Drupal.Files.EndFileNewline.TooMany 1 [x] Drupal.Formatting.MultipleStatementAlignment.Incorrect 1 [x] Drupal.Formatting.MultipleStatementAlignment.NotSame 1 [ ] Drupal.NamingConventions.ValidFunctionName.InvalidPrefix 1 [ ] Drupal.Semantics.FunctionT.BackslashSingleQuote 1 [x] Drupal.WhiteSpace.OpenBracketSpacing.OpeningWhitespace 1 [x] Generic.PHP.UpperCaseConstant.Found 1 [x] Squiz.Arrays.ArrayDeclaration.CloseBraceNewLine 1 [ ] Squiz.PHP.NonExecutableCode.Unreachable 1 [x] Squiz.WhiteSpace.FunctionSpacing.Before 1 [x] Squiz.WhiteSpace.OperatorSpacing.NoSpaceBefore 1 [x] Squiz.WhiteSpace.ScopeKeywordSpacing.Incorrect 1 [x] Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines 1 ----------------------------------------------------------------------------------------------------------- A TOTAL OF 304 SNIFF VIOLATIONS WERE FOUND IN 61 SOURCES ----------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 40 MARKED SOURCES AUTOMATICALLY (165 VIOLATIONS IN TOTAL) -----------------------------------------------------------------------------------------------------------