- 🇮🇳India riddhi.addweb
I tried to apply #48 and #49 Patch, but none of them worked for me. In #49 Patch does not work and in #48 below errors were displayed. Please review it from your end.
#48 Patch Error:-
FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/NodeTest.php ---------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------- 44 | ERROR | Doc comment is empty ---------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/TaxonomyTest.php -------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES -------------------------------------------------------------------------------------------- 17 | ERROR | Missing member variable doc comment 101 | ERROR | Doc comment is empty 113 | ERROR | Doc comment is empty -------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/BookTest.php ---------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------- 40 | ERROR | Doc comment is empty ---------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/UrlTest.php ------------------------------------------------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------------- 56 | ERROR | [x] list(...) is forbidden, use [...] instead. 81 | ERROR | [ ] The array declaration extends to column 147 (the limit is 120). The array content should be split up over multiple lines ------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/KernelTestBase.php ---------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ---------------------------------------------------------------------------------------------- 5 | ERROR | [x] All trigger_error calls used for deprecation must be prefixed by an "@" ---------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/UnitTest.php ---------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------------------------------------------------------------- 12 | ERROR | [ ] Missing short description in doc comment 58 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 88 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses ---------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/ArrayTest.php ---------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 2 LINES ---------------------------------------------------------------------------------------------------------------------------- 12 | ERROR | [x] Missing function doc comment 12 | ERROR | [x] Visibility must be declared on method "testArrayTokens" 34 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses ---------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/FileTest.php ---------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 2 LINES ---------------------------------------------------------------------------------------- 5 | ERROR | [x] There must be one blank line after the last USE statement; 0 found; 26 | ERROR | [x] Missing function doc comment 26 | ERROR | [x] Visibility must be declared on method "testFileTokens" ---------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/FieldTest.php ----------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------------------- 31 | ERROR | Missing short description in doc comment ----------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/CommentTest.php ------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------- 49 | ERROR | Doc comment is empty ------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/LanguageTest.php ------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------- 45 | ERROR | Class property $language_prefixes should use lowerCamel naming without underscores 52 | ERROR | Class property $language_domains should use lowerCamel naming without underscores ------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/DateTest.php ---------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 1 LINE ---------------------------------------------------------------------------------------- 25 | ERROR | [x] Missing function doc comment 25 | ERROR | [x] Visibility must be declared on method "testDateTokens" ---------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/EntityTest.php ------------------------------------------------------------------------------------------ FOUND 5 ERRORS AFFECTING 3 LINES ------------------------------------------------------------------------------------------ 47 | ERROR | [x] Missing function doc comment 47 | ERROR | [x] Visibility must be declared on method "testEntityMapping" 70 | ERROR | [x] Missing function doc comment 70 | ERROR | [x] Visibility must be declared on method "addTerm" 83 | ERROR | [x] Visibility must be declared on method "testEntityOriginal" ------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Kernel/RandomTest.php ------------------------------------------------------------------------------------------ FOUND 2 ERRORS AFFECTING 1 LINE ------------------------------------------------------------------------------------------ 12 | ERROR | [x] Missing function doc comment 12 | ERROR | [x] Visibility must be declared on method "testRandomTokens" ------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/TokenBlockTest.php -------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES -------------------------------------------------------------------------------------------------- 44 | WARNING | [x] A comma should follow the last multiline array item. Found: FALSE 80 | ERROR | [x] Expected 1 blank line after function; 0 found 81 | ERROR | [x] The closing brace for the class must have an empty line before it -------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/TokenUserTest.php ------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------- 129 | ERROR | [x] Expected 1 blank line after function; 0 found 130 | ERROR | [x] The closing brace for the class must have an empty line before it ------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/Tree/HelpPageTest.php ----------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------- 16 | ERROR | [ ] Missing short description in doc comment 26 | ERROR | [x] Missing function doc comment ----------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/Tree/TokenTreeTestTrait.php ----------------------------------------------------------------------------------------------------------------------- FOUND 6 ERRORS AFFECTING 6 LINES ----------------------------------------------------------------------------------------------------------------------- 45 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph 65 | ERROR | [ ] Missing parameter type 85 | ERROR | [ ] Missing parameter type 105 | ERROR | [ ] Missing parameter type 120 | ERROR | [x] Expected 1 blank line after function; 0 found 121 | ERROR | [x] The closing brace for the trait must have an empty line before it ----------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/Tree/TreeTest.php ------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES ------------------------------------------------------------------------------------------------- 17 | ERROR | [ ] Missing short description in doc comment 27 | ERROR | [x] Missing function doc comment 145 | ERROR | [x] Expected 1 blank line after function; 0 found 146 | ERROR | [x] The closing brace for the class must have an empty line before it ------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/TokenCurrentPageTest.php ---------------------------------------------------------------------------------------------------------------------------- FOUND 6 ERRORS AFFECTING 5 LINES ---------------------------------------------------------------------------------------------------------------------------- 19 | ERROR | [x] Missing function doc comment 19 | ERROR | [x] Visibility must be declared on method "testCurrentPageTokens" 36 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 60 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 66 | ERROR | [x] Expected 1 blank line after function; 0 found 67 | ERROR | [x] The closing brace for the class must have an empty line before it ---------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/UrlTest.php ------------------------------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ------------------------------------------------------------------------------------------------- 124 | ERROR | [x] Functions must not contain multiple empty lines in a row; found 2 empty lines ------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/TokenFieldUiTest.php -------------------------------------------------------------------------------------------------------------------------------------------- FOUND 6 ERRORS AFFECTING 6 LINES -------------------------------------------------------------------------------------------------------------------------------------------- 19 | ERROR | [ ] Missing short description in doc comment 34 | ERROR | [ ] The array declaration extends to column 123 (the limit is 120). The array content should be split up over multiple lines 101 | ERROR | [x] Missing function doc comment 113 | ERROR | [x] Missing function doc comment 203 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 225 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses -------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/TokenTestTrait.php -------------------------------------------------------------------------------------------------------------------------------------------- FOUND 17 ERRORS AFFECTING 11 LINES -------------------------------------------------------------------------------------------------------------------------------------------- 17 | ERROR | [x] Missing function doc comment 17 | ERROR | [x] Visibility must be declared on method "assertToken" 21 | ERROR | [x] Missing function doc comment 21 | ERROR | [x] Visibility must be declared on method "assertTokens" 34 | ERROR | [ ] The array declaration extends to column 283 (the limit is 120). The array content should be split up over multiple lines 37 | ERROR | [ ] The array declaration extends to column 233 (the limit is 120). The array content should be split up over multiple lines 44 | ERROR | [x] Missing function doc comment 44 | ERROR | [x] Visibility must be declared on method "mapTokenNames" 52 | ERROR | [x] Missing function doc comment 52 | ERROR | [x] Visibility must be declared on method "assertNoTokens" 58 | ERROR | [ ] The array declaration extends to column 140 (the limit is 120). The array content should be split up over multiple lines 62 | ERROR | [x] Missing function doc comment 62 | ERROR | [x] Visibility must be declared on method "saveAlias" 66 | ERROR | [x] Missing function doc comment 66 | ERROR | [x] Visibility must be declared on method "saveEntityAlias" 74 | ERROR | [x] Visibility must be declared on method "assertPageTokens" 103 | ERROR | [ ] The array declaration extends to column 230 (the limit is 120). The array content should be split up over multiple lines -------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/TokenURLTest.php ------------------------------------------------------------------------------------------------ FOUND 5 ERRORS AFFECTING 3 LINES ------------------------------------------------------------------------------------------------ 27 | ERROR | [x] Missing function doc comment 27 | ERROR | [ ] Method name "TokenURLTest::testURLTokens" is not in lowerCamel format 27 | ERROR | [x] Visibility must be declared on method "testURLTokens" 48 | ERROR | [x] Expected 1 blank line after function; 0 found 49 | ERROR | [x] The closing brace for the class must have an empty line before it ------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/src/Functional/TokenMenuTest.php ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 20 ERRORS AND 4 WARNINGS AFFECTING 19 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 32 | ERROR | [x] Missing function doc comment 32 | ERROR | [x] Visibility must be declared on method "testMenuTokens" 104 | WARNING | [ ] Line exceeds 80 characters; contains 107 characters 104 | WARNING | [x] There must be no blank line following an inline comment 104 | WARNING | [ ] There must be no blank line following an inline comment 104 | ERROR | [x] No space found before comment text; expected "// $this->config('menu.entity.node.' . $node->getType())->set('available_menus', ['main-menu'])->save();" but found | | "//$this->config('menu.entity.node.' . $node->getType())->set('available_menus', ['main-menu'])->save();" 151 | WARNING | [x] A comma should follow the last multiline array item. Found: 'administer site configuration' 299 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph 301 | ERROR | [x] Visibility must be declared on method "testMultilingualMenu" 393 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 394 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 395 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 396 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 397 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6 424 | ERROR | [x] Comment indentation error after - element, expected 5 spaces 424 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 434 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 435 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 440 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 441 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 442 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 447 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 448 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 449 | ERROR | [x] Array indentation error, expected 6 spaces but found 8 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 21 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/modules/token_module_test/token_module_test.module ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 24 | 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." ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/modules/token_module_test/token_module_test.tokens.inc ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1 | ERROR | [x] Missing file doc comment 4 | 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." ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/tests/modules/token_module_test/token_module_test.routing.yml ------------------------------------------------------------------------------------------------------------------------ FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ------------------------------------------------------------------------------------------------------------------------ 7 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction ------------------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/TokenFieldRender.php ----------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ----------------------------------------------------------------------------------- 8 | ERROR | [x] Missing class doc comment 31 | ERROR | [x] Use null coalesce operator instead of ternary operator. ----------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/Controller/TokenTreeController.php ------------------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES ------------------------------------------------------------------------------------------------- 16 | ERROR | [ ] Missing short description in doc comment 37 | ERROR | [x] Visibility must be declared on method "outputTree" ------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/Controller/TokenDevelController.php --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 16 ERRORS AND 3 WARNINGS AFFECTING 11 LINES --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 17 | ERROR | [ ] Missing short description in doc comment 22 | ERROR | [ ] Missing short description in doc comment 46 | ERROR | [x] Parameter comment indentation must be 3 spaces, found 4 spaces 49 | ERROR | [x] Return comment indentation must be 3 spaces, found 4 spaces 91 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 91 | ERROR | [x] 4 spaces found before inline comment; expected "// foreach ($tree as $token => $token_info) {" but found "// foreach ($tree as $token => $token_info) {" 91 | ERROR | [x] Inline comments must start with a capital letter 92 | WARNING | [ ] Line exceeds 80 characters; contains 125 characters 92 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 92 | ERROR | [ ] Comment indentation error, expected only 4 spaces 93 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 93 | ERROR | [ ] Comment indentation error, expected only 6 spaces 94 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 95 | WARNING | [x] There must be no blank line following an inline comment 95 | WARNING | [ ] There must be no blank line following an inline comment 95 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 0 95 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 108 | ERROR | [x] Expected 1 blank line after function; 0 found 109 | ERROR | [x] The closing brace for the class must have an empty line before it --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/Plugin/Derivative/DevelLocalTask.php --------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES --------------------------------------------------------------------------------------------------- 12 | ERROR | [x] Missing class doc comment 16 | ERROR | [ ] Missing member variable doc comment 55 | ERROR | [x] Expected 1 blank line after function; 0 found 56 | ERROR | [x] The closing brace for the class must have an empty line before it --------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/Token.php ------------------------------------------------------------------------------ FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES ------------------------------------------------------------------------------ 103 | ERROR | [x] Use null coalesce operator instead of ternary operator. 114 | ERROR | [x] Use null coalesce operator instead of ternary operator. 125 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters 138 | ERROR | [x] Visibility must be declared on method "getInvalidTokens" ------------------------------------------------------------------------------ PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/TokenServiceProvider.php --------------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES --------------------------------------------------------------------------------------- 19 | ERROR | [x] Expected 1 blank line after function; 0 found 20 | ERROR | [x] The closing brace for the class must have an empty line before it --------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/Routing/RouteSubscriber.php ------------------------------------------------------------------------------------------ FOUND 3 ERRORS AFFECTING 3 LINES ------------------------------------------------------------------------------------------ 17 | ERROR | [ ] Missing short description in doc comment 22 | ERROR | [ ] Missing short description in doc comment 71 | ERROR | [x] Short array syntax must be used to define arrays ------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/TreeBuilderInterface.php ---------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------------------------- 5 | ERROR | [x] Missing interface doc comment 78 | ERROR | [x] Expected 1 blank line after function; 0 found 79 | ERROR | [x] The closing brace for the interface must have an empty line before it ---------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/Element/TokenTreeTable.php ---------------------------------------------------------------------------------------------------------------------------------------------- FOUND 8 ERRORS AND 1 WARNING AFFECTING 8 LINES ---------------------------------------------------------------------------------------------------------------------------------------------- 15 | ERROR | [ ] Missing member variable doc comment 15 | ERROR | [ ] The array declaration extends to column 139 (the limit is 120). The array content should be split up over multiple lines 51 | ERROR | [ ] Missing parameter comment 100 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead 107 | ERROR | [x] Missing function doc comment 111 | ERROR | [x] Missing function doc comment 131 | ERROR | [x] Use null coalesce operator instead of ternary operator. 149 | ERROR | [x] Expected 1 blank line after function; 0 found 150 | ERROR | [x] The closing brace for the class must have an empty line before it ---------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/TokenInterface.php ---------------------------------------------------------------------------------------- FOUND 7 ERRORS AFFECTING 7 LINES ---------------------------------------------------------------------------------------- 5 | ERROR | [x] Missing interface doc comment 10 | ERROR | [ ] Missing parameter type 25 | ERROR | [ ] Missing parameter type 27 | ERROR | [ ] Missing parameter type 57 | ERROR | [x] Visibility must be declared on method "getInvalidTokens" 72 | ERROR | [x] Expected 1 blank line after function; 0 found 73 | ERROR | [x] The closing brace for the interface must have an empty line before it ---------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/TokenEntityMapperInterface.php --------------------------------------------------------------------------------------------- FOUND 5 ERRORS AFFECTING 5 LINES --------------------------------------------------------------------------------------------- 5 | ERROR | [x] Missing interface doc comment 30 | ERROR | [x] Visibility must be declared on method "getEntityTypeForTokenType" 47 | ERROR | [x] Visibility must be declared on method "getTokenTypeForEntityType" 52 | ERROR | [x] Expected 1 blank line after function; 0 found 53 | ERROR | [x] The closing brace for the interface must have an empty line before it --------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY --------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/TokenEntityMapper.php ------------------------------------------------------------------------------------ FOUND 6 ERRORS AFFECTING 6 LINES ------------------------------------------------------------------------------------ 17 | ERROR | [ ] Missing short description in doc comment 22 | ERROR | [ ] Missing short description in doc comment 27 | ERROR | [ ] Missing short description in doc comment 55 | ERROR | [x] Visibility must be declared on method "getEntityTypeForTokenType" 67 | ERROR | [x] Visibility must be declared on method "getTokenTypeForEntityType" 72 | ERROR | [x] Use null coalesce operator instead of ternary operator. ------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/src/TreeBuilder.php ------------------------------------------------------------------------------------------------------------------------------- FOUND 8 ERRORS AND 2 WARNINGS AFFECTING 10 LINES ------------------------------------------------------------------------------------------------------------------------------- 11 | ERROR | [x] Missing class doc comment 15 | ERROR | [ ] Missing short description in doc comment 20 | ERROR | [ ] Missing short description in doc comment 25 | ERROR | [ ] Missing short description in doc comment 30 | ERROR | [ ] Missing short description in doc comment 69 | WARNING | [ ] Line exceeds 80 characters; contains 132 characters 134 | WARNING | [ ] Line exceeds 80 characters; contains 81 characters 236 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 266 | ERROR | [x] Expected 1 blank line after function; 0 found 267 | ERROR | [x] The closing brace for the class must have an empty line before it ------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/token.install -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FOUND 10 ERRORS AND 2 WARNINGS AFFECTING 10 LINES -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 69 | ERROR | [x] No space found before comment text; expected "// $token_info = [];" but found "//$token_info = [];" 70 | ERROR | [x] No space found before comment text; expected "// foreach (module_implements('token_info') as $module) {" but found "//foreach (module_implements('token_info') as $module) {" 73 | ERROR | [ ] Comment indentation error, expected only 2 spaces 76 | ERROR | [ ] Comment indentation error, expected only 2 spaces 77 | ERROR | [ ] Comment indentation error, expected only 4 spaces 78 | ERROR | [ ] Comment indentation error, expected only 6 spaces 79 | ERROR | [ ] Comment indentation error, expected only 8 spaces 85 | ERROR | [ ] Comment indentation error, expected only 2 spaces 90 | ERROR | [ ] Comment indentation error, expected only 2 spaces 92 | WARNING | [x] There must be no blank line following an inline comment 92 | WARNING | [ ] There must be no blank line following an inline comment 92 | ERROR | [x] No space found before comment text; expected "// }" but found "//}" -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/css/token.treetable.theme.css ---------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------------------------- 1 | WARNING | File appears to be minified and cannot be processed ---------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/token.module ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FOUND 10 ERRORS AND 5 WARNINGS AFFECTING 13 LINES ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 33 | ERROR | [ ] The array declaration extends to column 597 (the limit is 120). The array content should be split up over multiple lines 180 | WARNING | [x] Inline @var declarations should use the /** */ delimiters 218 | WARNING | [ ] The deprecation-version 'token:8.x-1.x' does not match the lower-case machine-name standard: drupal:n.n.n or project:n.x-n.n or project:n.x-n.n-label[n] or project:n.n.n or | | project:n.n.n-label[n] 218 | ERROR | [ ] Each @deprecated tag must have a @see tag immediately following it 245 | ERROR | [x] Use null coalesce operator instead of ternary operator. 272 | ERROR | [ ] The array declaration extends to column 177 (the limit is 120). The array content should be split up over multiple lines 402 | ERROR | [ ] Missing parameter type 404 | ERROR | [x] Separate the @param and @return sections by a blank line. 404 | ERROR | [ ] Return type missing for @return tag in function comment 433 | ERROR | [x] Use null coalesce operator instead of ternary operator. 558 | ERROR | [x] Missing function doc comment 594 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters 706 | WARNING | [ ] Line exceeds 80 characters; contains 82 characters 724 | ERROR | [x] Use null coalesce operator instead of ternary operator. 736 | 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." ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FILE: /var/www/html/web/drupal10/web/modules/contrib/token/token.tokens.inc ----------------------------------------------------------------------------------------------------------------------------------------------- FOUND 11 ERRORS AND 8 WARNINGS AFFECTING 19 LINES ----------------------------------------------------------------------------------------------------------------------------------------------- 117 | WARNING | [x] Inline @var declarations should use the /** */ delimiters 121 | ERROR | [ ] The array declaration extends to column 203 (the limit is 120). The array content should be split up over multiple lines 537 | WARNING | [x] Inline @var declarations should use the /** */ delimiters 549 | WARNING | [x] Inline @var declarations should use the /** */ delimiters 579 | WARNING | [x] Inline @var declarations should use the /** */ delimiters 616 | WARNING | [x] Inline @var declarations should use the /** */ delimiters 715 | WARNING | [x] Inline @var declarations should use the /** */ delimiters 844 | ERROR | [x] Case breaking statements must be followed by a single blank line 847 | ERROR | [x] Case breaking statements must be followed by a single blank line 850 | ERROR | [x] Case breaking statements must be followed by a single blank line 858 | ERROR | [x] Case breaking statements must be followed by a single blank line 971 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses 1052 | WARNING | [x] Inline @var declarations should use the /** */ delimiters 1104 | ERROR | [x] Use null coalesce operator instead of ternary operator. 1198 | ERROR | [ ] The array declaration extends to column 122 (the limit is 120). The array content should be split up over multiple lines 1721 | ERROR | [x] Use null coalesce operator instead of ternary operator. 1724 | WARNING | [x] Inline @var declarations should use the /** */ delimiters 1885 | ERROR | [x] Use null coalesce operator instead of ternary operator. 1928 | ERROR | [ ] The array declaration extends to column 172 (the limit is 120). The array content should be split up over multiple lines ----------------------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/token.pages.inc ----------------------------------------------------------------------------- FOUND 1 ERROR AFFECTING 1 LINE ----------------------------------------------------------------------------- 6 | ERROR | [x] There must be exactly one blank line after the file comment ----------------------------------------------------------------------------- PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY ----------------------------------------------------------------------------- FILE: /var/www/html/web/drupal10/web/modules/contrib/token/README.md ---------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ---------------------------------------------------------------------- 31 | WARNING | Line exceeds 80 characters; contains 132 characters ----------------------------------------------------------------------
#49 Patch Error:-
Checking patch README.md... warning: README.md has type 100644, expected 100755 Checking patch css/jquery.treetable.css... Checking patch css/token.css... Checking patch js/jquery.treetable.js... error: while searching for: return this; }, unloadBranch: function(node) { this.data("treetable").unloadBranch(node); return this; } }; $.fn.treetable = function(method) { if (methods[method]) { return methods[method].apply(this, Array.prototype.slice.call(arguments, 1)); } else if (typeof method === 'object' || !method) { return methods.init.apply(this, arguments); } else { return $.error("Method " + method + " does not exist on jQuery.treetable"); } }; // Expose classes to world this.TreeTable || (this.TreeTable = {}); this.TreeTable.Node = Node; this.TreeTable.Tree = Tree; error: patch failed: js/jquery.treetable.js:606 error: js/jquery.treetable.js: patch does not apply Checking patch js/token.js... Checking patch src/Controller/TokenAutocompleteController.php... error: src/Controller/TokenAutocompleteController.php: No such file or directory Checking patch src/Controller/TokenDevelController.php... Checking patch src/Controller/TokenTreeController.php... Checking patch src/Element/TokenTreeTable.php... Hunk #3 succeeded at 113 (offset -4 lines). Hunk #4 succeeded at 169 (offset -5 lines). Checking patch src/Plugin/Derivative/DevelLocalTask.php... Checking patch src/Routing/RouteSubscriber.php... error: while searching for: */ public static function getSubscribedEvents() { $events = parent::getSubscribedEvents(); $events[RoutingEvents::ALTER] = array('onAlterRoutes', 100); return $events; } error: patch failed: src/Routing/RouteSubscriber.php:68 error: src/Routing/RouteSubscriber.php: patch does not apply Checking patch src/Token.php... error: while searching for: * @return string[] * List of the names keyed by the token key. */ protected function prepareMultisort($token_info) { $by_name = []; foreach ($token_info as $key => $token_info_element) { $by_name[$key] = $token_info_element['name']; error: patch failed: src/Token.php:83 error: src/Token.php: patch does not apply Checking patch src/TokenEntityMapper.php... Checking patch src/TokenEntityMapperInterface.php... Checking patch src/TokenFieldRender.php... error: while searching for: use Drupal\Core\Security\TrustedCallbackInterface; use Drupal\Core\Render\Element; class TokenFieldRender implements TrustedCallbackInterface { /** error: patch failed: src/TokenFieldRender.php:5 error: src/TokenFieldRender.php: patch does not apply Checking patch src/TokenInterface.php... Checking patch src/TokenServiceProvider.php... Checking patch src/TreeBuilder.php... Checking patch src/TreeBuilderInterface.php... Checking patch tests/modules/token_module_test/token_module_test.module... Checking patch tests/modules/token_module_test/token_module_test.tokens.inc... Checking patch tests/src/Functional/TokenBlockTest.php... error: while searching for: $this->drupalLogin($this->admin_user); } public function testBlockTitleTokens() { $label = 'tokenblock'; $bundle = BlockContentType::create([ 'id' => $label, 'label' => $label, 'revision' => FALSE ]); $bundle->save(); error: patch failed: tests/src/Functional/TokenBlockTest.php:28 error: tests/src/Functional/TokenBlockTest.php: patch does not apply Checking patch tests/src/Functional/TokenCurrentPageTest.php... error: while searching for: */ public static $modules = ['node']; function testCurrentPageTokens() { // Cache clear is necessary because the frontpage was already cached by an // initial request. $this->rebuildAll(); error: patch failed: tests/src/Functional/TokenCurrentPageTest.php:18 error: tests/src/Functional/TokenCurrentPageTest.php: patch does not apply Checking patch tests/src/Functional/TokenFieldUiTest.php... Hunk #2 succeeded at 100 (offset -2 lines). error: while searching for: $this->assertText(t('Saved Image configuration.')); } public function testFieldDescriptionTokens() { $edit = [ 'description' => 'The site is called [site:name].', error: patch failed: tests/src/Functional/TokenFieldUiTest.php:112 error: tests/src/Functional/TokenFieldUiTest.php: patch does not apply Checking patch tests/src/Functional/TokenMenuTest.php... error: while searching for: 'content_translation', ]; function testMenuTokens() { // Make sure we have a body field on the node type. $this->drupalCreateContentType(['type' => 'page']); // Add a menu. error: patch failed: tests/src/Functional/TokenMenuTest.php:31 error: tests/src/Functional/TokenMenuTest.php: patch does not apply Checking patch tests/src/Functional/TokenTestTrait.php... Checking patch tests/src/Functional/TokenURLTest.php... Hunk #1 succeeded at 24 (offset -2 lines). Hunk #2 succeeded at 49 (offset -2 lines). Checking patch tests/src/Functional/TokenUserTest.php... Hunk #1 succeeded at 127 (offset -1 lines). Checking patch tests/src/Functional/Tree/AutocompleteTest.php... error: tests/src/Functional/Tree/AutocompleteTest.php: No such file or directory Checking patch tests/src/Functional/Tree/HelpPageTest.php... error: while searching for: */ public static $modules = ['help']; public function setUp() { parent::setUp(); error: patch failed: tests/src/Functional/Tree/HelpPageTest.php:25 error: tests/src/Functional/Tree/HelpPageTest.php: patch does not apply Checking patch tests/src/Functional/Tree/TokenTreeTestTrait.php... Checking patch tests/src/Functional/Tree/TreeTest.php... error: while searching for: */ public static $modules = ['node']; public function setUp() { parent::setUp(); error: patch failed: tests/src/Functional/Tree/TreeTest.php:26 error: tests/src/Functional/Tree/TreeTest.php: patch does not apply Checking patch tests/src/Functional/UrlTest.php... Hunk #1 succeeded at 122 (offset -2 lines). Checking patch tests/src/Kernel/ArrayTest.php... error: while searching for: */ class ArrayTest extends KernelTestBase { function testArrayTokens() { // Test a simple array. $array = [0 => 'a', 1 => 'b', 2 => 'c', 4 => 'd']; $tokens = [ error: patch failed: tests/src/Kernel/ArrayTest.php:9 error: tests/src/Kernel/ArrayTest.php: patch does not apply Checking patch tests/src/Kernel/BookTest.php... error: while searching for: $this->installConfig(['node', 'book', 'field']); } function testBookTokens() { $book = Node::create([ 'type' => 'book', 'title' => 'Book Main Page', error: patch failed: tests/src/Kernel/BookTest.php:32 error: tests/src/Kernel/BookTest.php: patch does not apply Checking patch tests/src/Kernel/CommentTest.php... error: while searching for: * * @var array */ public static $modules = ['node', 'comment', 'field', 'text', 'entity_reference']; /** * {@inheritdoc} error: patch failed: tests/src/Kernel/CommentTest.php:22 error: tests/src/Kernel/CommentTest.php: patch does not apply Checking patch tests/src/Kernel/DateTest.php... Hunk #1 succeeded at 22 (offset -2 lines). Checking patch tests/src/Kernel/EntityTest.php... error: while searching for: $this->vocab = $vocabulary; } function testEntityMapping() { /** @var \Drupal\token\TokenEntityMapperInterface $mapper */ $mapper = \Drupal::service('token.entity_mapper'); $this->assertSame('node', $mapper->getEntityTypeForTokenType('node')); error: patch failed: tests/src/Kernel/EntityTest.php:41 error: tests/src/Kernel/EntityTest.php: patch does not apply Checking patch tests/src/Kernel/FieldTest.php... error: while searching for: * * @var array */ public static $modules = ['node', 'text', 'field', 'filter', 'contact', 'options', 'taxonomy', 'language', 'datetime', 'datetime_range']; /** * {@inheritdoc} error: patch failed: tests/src/Kernel/FieldTest.php:46 error: tests/src/Kernel/FieldTest.php: patch does not apply Checking patch tests/src/Kernel/FileTest.php... Hunk #2 succeeded at 24 (offset -2 lines). Checking patch tests/src/Kernel/KernelTestBase.php... error: while searching for: * * @var array */ public static $modules = ['path', 'token', 'token_module_test', 'system', 'user', 'path_alias']; /** * {@inheritdoc} error: patch failed: tests/src/Kernel/KernelTestBase.php:17 error: tests/src/Kernel/KernelTestBase.php: patch does not apply Checking patch tests/src/Kernel/NodeTest.php... error: while searching for: $node_type->save(); } function testNodeTokens() { $page = Node::create([ 'type' => 'page', 'title' => 'Source Title', 'revision_log' => $this->randomMachineName(), 'path' => ['alias' => '/content/source-node'] ]); $page->save(); $tokens = [ error: patch failed: tests/src/Kernel/NodeTest.php:43 error: tests/src/Kernel/NodeTest.php: patch does not apply Checking patch tests/src/Kernel/RandomTest.php... error: while searching for: */ class RandomTest extends KernelTestBase { function testRandomTokens() { $tokens = [ 'number' => '[0-9]{1,}', 'hash:md5' => '[0-9a-f]{32}', error: patch failed: tests/src/Kernel/RandomTest.php:9 error: tests/src/Kernel/RandomTest.php: patch does not apply Checking patch tests/src/Kernel/TaxonomyTest.php... error: while searching for: namespace Drupal\Tests\token\Kernel; use Drupal\taxonomy\Entity\Term; use Drupal\taxonomy\Entity\Vocabulary; use Drupal\language\Entity\ConfigurableLanguage; error: patch failed: tests/src/Kernel/TaxonomyTest.php:2 error: tests/src/Kernel/TaxonomyTest.php: patch does not apply Checking patch tests/src/Kernel/UnitTest.php... error: while searching for: class UnitTest extends KernelTestBase { /** * @var \Drupal\token\Token */ protected $tokenService; error: patch failed: tests/src/Kernel/UnitTest.php:10 error: tests/src/Kernel/UnitTest.php: patch does not apply Checking patch tests/src/Kernel/UrlTest.php... Checking patch token.install... error: while searching for: */ function _token_upgrade_token_list() { $tokens = [ // Global tokens 'user-name' => 'current-user:name', 'user-id' => 'current-user:id', 'user-mail' => 'current-user:mail', error: patch failed: token.install:66 error: token.install: patch does not apply Checking patch token.module... error: while searching for: use Drupal\Core\Routing\RouteMatchInterface; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Field\BaseFieldDefinition; use Drupal\Core\TypedData\TranslatableInterface; use Drupal\menu_link_content\Entity\MenuLinkContent; use Drupal\menu_link_content\MenuLinkContentInterface; use Drupal\node\Entity\Node; error: patch failed: token.module:14 error: token.module: patch does not apply Checking patch token.pages.inc... Checking patch token.tokens.inc... warning: token.tokens.inc has type 100644, expected 100755 error: while searching for: use Drupal\Core\Entity\FieldableEntityInterface; use Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface; use Drupal\Core\Render\BubbleableMetadata; use Drupal\Core\Render\Element; use Drupal\Component\Utility\Crypt; use Drupal\Component\Utility\Html; use Drupal\Core\TypedData\DataReferenceDefinitionInterface; use Drupal\Core\Url; error: patch failed: token.tokens.inc:10 error: token.tokens.inc: patch does not apply
- Status changed to Closed: duplicate
5 months ago 10:31pm 28 July 2024 - 🇨🇭Switzerland berdir Switzerland
There are multiple existing and older issues about coding standards.