- 🇮🇳India dev16.addweb
Fixed the mentioned issues which are reported by phpcs.
FILE: /home/addweb/patches/coffee/tests/src/Kernel/CoffeeCommandsTest.php ----------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------------------------------------------- 65 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 71 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead ----------------------------------------------------------------------------------------------------------------------------------------- FILE: /home/addweb/patches/coffee/tests/src/Functional/CoffeeTest.php ----------------------------------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES ----------------------------------------------------------------------------------------------------------------------------------------- 79 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead 80 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead ----------------------------------------------------------------------------------------------------------------------------------------- FILE: /home/addweb/patches/coffee/tests/modules/coffee_test/src/Controller/CoffeeTestController.php --------------------------------------------------------------------------------------------------- FOUND 4 ERRORS AFFECTING 4 LINES --------------------------------------------------------------------------------------------------- 8 | ERROR | [x] Missing class doc comment 10 | ERROR | [x] Missing function doc comment 12 | ERROR | [x] Expected 1 blank line after function; 0 found 13 | 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: /home/addweb/patches/coffee/tests/modules/coffee_test/coffee_test.routing.yml ----------------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ----------------------------------------------------------------------------------------------------------------- 6 | WARNING | Open page callback found, please add a comment before the line why there is no access restriction ----------------------------------------------------------------------------------------------------------------- FILE: /home/addweb/patches/coffee/src/Form/CoffeeConfigurationForm.php -------------------------------------------------------------------------------------------------------- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE -------------------------------------------------------------------------------------------------------- 79 | WARNING | Menu::loadMultiple calls should be avoided in classes, use dependency injection instead -------------------------------------------------------------------------------------------------------- FILE: /home/addweb/patches/coffee/src/Controller/CoffeeController.php ------------------------------------------------------------------------------- FOUND 4 ERRORS AND 1 WARNING AFFECTING 3 LINES ------------------------------------------------------------------------------- 65 | ERROR | [ ] Parameter $url_generator is not described in comment 65 | ERROR | [ ] Parameter $route_match is not described in comment 136 | ERROR | [x] Expected newline after closing brace 136 | ERROR | [x] Expected 1 space after CATCH keyword; 0 found 213 | WARNING | [x] Inline @var declarations should use the /** */ delimiters ------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ------------------------------------------------------------------------------- FILE: /home/addweb/patches/coffee/coffee.module ---------------------------------------------------------------------------------------------------------------------------------- FOUND 3 ERRORS AFFECTING 3 LINES ---------------------------------------------------------------------------------------------------------------------------------- 10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Routing\RouteMatchInterface. 41 | ERROR | [x] Use null coalesce operator instead of ternary operator. 44 | ERROR | [x] Expected 1 space after "="; 2 found ---------------------------------------------------------------------------------------------------------------------------------- PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------------------------------------------------------------------- Time: 273ms; Memory: 10MB
- Status changed to RTBC
6 months ago 7:29am 28 June 2024 - 🇮🇳India vinmayiswamy
Hi Silvi Sanghavi → , thanks for the patch.
I've tested coffee-3322818-5.patch → on Drupal 10.2.x
The patch is applied Cleanly...Test Result:
The phpcs issues were fixed after the updated changes.RTBC+1
Thanks!
- 🇫🇷France dqd London | N.Y.C | Paris | Hamburg | Berlin
Needs probably a reroll or MR ready to merge into 📌 Automated Drupal 11 compatibility fixes for coffee RTBC . But please be careful, it seems some of it has already been fixed over there.