Fix the issues reported by phpcs

Created on 27 April 2023, over 1 year ago
Updated 5 September 2023, over 1 year ago

Problem/Motivation

Fix phpcs errors.

FILE: /home/system/Documents/contribution/pager_serializer-3356754/src/Plugin/views/style/PagerSerializer.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 47 | ERROR | [x] Expected "\Drupal\Core\Extension\ModuleHandlerInterface" but found "\Drupal\Core\Extension\ModuleHandlerInterface;" for @var tag in member variable comment
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/system/Documents/contribution/pager_serializer-3356754/tests/src/Unit/Plugin/views/style/SerializerTest.php
------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------------
 37 | ERROR | [x] Expected "\Drupal\Core\Extension\ModuleHandler" but found "\Drupal\Core\Extension\ModuleHandler;" for @var tag in member variable comment
------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------


FILE: /home/system/Documents/contribution/pager_serializer-3356754/pager_serializer.api.php
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
 11 | ERROR | [x] There must be no blank lines after the function comment
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------

Time: 140ms; Memory: 14MB

Proposed resolution

Run:
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India dineshkumarbollu

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024