Run this command in the module folder: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,css,js,twig,txt,md,yml
FILE: /Users/studenttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/footable/footable.module
-------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------
145 | WARNING | Only string literals should be passed to t() where possible
-------------------------------------------------------------------------------------------------------
FILE: /Users/studenttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/footable/src/Form/FooTableBreakpointEditForm.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
20 | ERROR | [x] Data types in @var tags need to be fully namespaced
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------
FILE: /Users/studenttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/footable/src/FooTableBreakpointInterface.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------
32 | ERROR | Doc comment short description must be on a single line, further text should be a separate paragraph
---------------------------------------------------------------------------------------------------------------------------
FILE: /Users/studenttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/footable/src/Plugin/views/style/FooTable.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------
380 | ERROR | [x] Use null coalesce operator instead of ternary operator.
---------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------
Time: 351ms; Memory: 12MB
Comments
Comment #2
paraderojether commentedCreated a patch to fix issues reported by phpcs.
Please review.
Thank You.
Comment #3
Anmol_Specbee commentedThe patch#2 seems to be working fine, Moving it to RTBC
Comment #4
just-me commentedThe version was changed to 8.x-2.x-dev due to the new one.
Comment #5
just-me commentedComment #7
just-me commentedI've applied phpcs standards to the 8.x-2.x.
Comment #8
quadrexdevLooks good now
Comment #9
schillerm commentedHi, yes also checked this and phpcs is passing ..
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml web/modules/contrib/footable
FILE: /home/m/Documents/Issues/footable-10-3367790/web/modules/contrib/footable/footable.module
-----------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
176 | WARNING | Only string literals should be passed to t() where possible
-----------------------------------------------------------------------------------------------
Time: 608ms; Memory: 12MB
Moving to RTBC.
Comment #11
just-me commentedMerged, thanks to everyone.
Comment #13
just-me commentedFILE: footable.module
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
178 | WARNING | Only string literals should be passed to t() where possible
| | (Drupal.Semantics.FunctionT.NotLiteralString)
We can delete t(). Translation will be provided by the schema with the label type.
Comment #14
just-me commentedReverting to Fixed. The original issue is resolved and merged. The remaining minor PHPCS warning for the placeholder will be fixed as a direct follow-up commit in the new 3.0.x branch.