Fix the issue reported by phpcs

Created on 11 July 2024, 4 months ago
Updated 29 July 2024, 4 months ago

Problem/Motivation

Command-: vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig modules/contrib/comingsoon_mode/

FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/assets/css/comingsoon_mode.css
----------------------------------------------------------------------------------------------------
FOUND 189 ERRORS AFFECTING 188 LINES
----------------------------------------------------------------------------------------------------
   2 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   3 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   3 | ERROR | [x] There must be no space before a colon in a style definition
   4 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   5 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
   9 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  13 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  17 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  21 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  25 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  26 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  27 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  32 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  33 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  34 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  35 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  36 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  40 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  41 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  42 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  43 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  44 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  45 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  48 | ERROR | [x] Expected 1 space before opening brace of class definition; 0 found
  49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  52 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  53 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  54 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  58 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  62 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  63 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  64 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  65 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  66 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  67 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  71 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  72 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  76 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  77 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  78 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  82 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  83 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  84 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  85 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  86 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  87 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  88 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  89 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  94 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
  95 | ERROR | [x] Blank lines are not allowed in class definitions
  99 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 100 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 101 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 102 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 103 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 104 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 105 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 106 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 111 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 112 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 113 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 114 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 115 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 116 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 120 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 121 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 122 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 126 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 127 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 128 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 129 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 130 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 131 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 135 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 140 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 141 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 142 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 143 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 144 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 151 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 152 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 153 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 154 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 156 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 157 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 158 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 160 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 161 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 162 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 163 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 165 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 166 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 167 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 169 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 170 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 171 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 172 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 174 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 175 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 176 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 177 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 179 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 180 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 181 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 182 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 183 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 184 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 186 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 187 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 188 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 189 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 190 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 191 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 192 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 193 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 195 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 196 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 197 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 198 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 199 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 201 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 202 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 203 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 205 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 206 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 207 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 208 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 214 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 215 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 216 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 217 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 219 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 220 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 221 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 223 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 224 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 225 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 226 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 228 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 229 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 230 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 232 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 233 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 234 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 235 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 237 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 238 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 239 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 240 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 242 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 243 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 244 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 245 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 246 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 247 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 249 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 250 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 251 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 252 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 253 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 254 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 256 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 257 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 258 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 259 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 260 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 262 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 263 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 264 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 265 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 267 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 268 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 269 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 270 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 275 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 276 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 277 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 278 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 281 | ERROR | [ ] More than 2 empty lines are not allowed
 285 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 286 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 287 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 288 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 292 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 293 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 294 | ERROR | [x] Line indented incorrectly; expected 4 spaces, found 8
 295 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
 297 | ERROR | [x] Expected 1 newline at end of file; 0 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 188 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/assets/js/comingsoon_mode.js
--------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------
 4 | ERROR | [x] Whitespace found at end of line
 7 | ERROR | [x] Whitespace found at end of line
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/comingsoon_mode.routing.yml
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
 15 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/comingsoon_mode.config_translation.yml
------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------
 5 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/src/EventSubscriber/RedirectComingSoonSubscriber.php
--------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 8 LINES
--------------------------------------------------------------------------------------------------------------------------
 51 | ERROR | [ ] Missing parameter comment
 53 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
 55 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
 57 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
 59 | ERROR | [ ] Parameter tags must be grouped together in a doc comment
 59 | ERROR | [ ] Doc comment for parameter $current_path does not match actual variable name <undefined>
 66 | ERROR | [x] Multi-line function declarations must have a trailing comma after the last parameter
 77 | ERROR | [x] Expected 1 space before opening brace; found 0
 88 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
--------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/src/Form/SettingsForm.php
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------
 233 | WARNING | [ ] File::load calls should be avoided in classes, use dependency injection instead
 241 | ERROR   | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/src/Controller/ComingsoonController.php
-------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
 38 | ERROR | Parameter tags must be grouped together in a doc comment
-------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/comingsoon_mode.libraries.yml
---------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
 10 | ERROR | [x] Expected 1 newline at end of file; 9 found
---------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/comingsoon_mode.info.yml
-------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------
 1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
 1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
-------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/README.md
-------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------
 13 | WARNING | [ ] Line exceeds 80 characters; contains 230 characters
 31 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
 32 | WARNING | [ ] Line exceeds 80 characters; contains 100 characters
 36 | ERROR   | [x] Expected 1 newline at end of file; 3 found
-------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/comingsoon_mode.services.yml
--------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------
 6 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/comingsoon_mode.module
--------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
--------------------------------------------------------------------------------------------
  3 | ERROR   | Missing short description in doc comment
 30 | WARNING | Code after the RETURN statement on line 28 cannot be executed
--------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/comingsoon_mode.permissions.yml
-----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------
 10 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/config/install/comingsoon_mode.settings.yml
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
 20 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/config/schema/comingsoon_mode.schema.yml
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
 29 | ERROR | [x] Expected 1 newline at end of file; 6 found
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/drupal-contri-d10/modules/contrib/comingsoon_mode/templates/comingsoon.html.twig
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
 172 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------

Time: 496ms; Memory: 12MB

Steps to reproduce

Run PHPCS on Config Pages module.

Proposed resolution

Fixed the coding standards.

Remaining tasks

Submit the patch either MR.

📌 Task
Status

Fixed

Version

1.3

Component

Code

Created by

🇮🇳India bhaveshdas

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

Merge Requests

Comments & Activities

  • Issue created by @bhaveshdas
  • First commit to issue fork.
  • Merge request !3Fixed phpcs issues → (Closed) created by Unnamed author
  • Status changed to Needs review 4 months ago
  • 🇮🇳India sarwan_verma

    Hi @bhaveshdas,

    I have created MR!3 for the above issue, Please review it once.

  • Status changed to Needs work 4 months ago
  • 🇮🇳India bhaveshdas

    Hey @sarwan_verma,

    I have tested MR !3, and there are still errors. Could you please check this and add screenshots as well

    Command :- vendor/bin/phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig modules/custom/comingsoon_mode-3460777/

    FILE: /var/www/html/drupal-contri-d10/modules/custom/comingsoon_mode-3460777/src/Form/SettingsForm.php
    ------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------
     233 | WARNING | File::load calls should be avoided in classes, use dependency injection instead
    ------------------------------------------------------------------------------------------------------
    
    
    FILE: /var/www/html/drupal-contri-d10/modules/custom/comingsoon_mode-3460777/templates/comingsoon.html.twig
    -----------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
     172 | ERROR | [x] Expected 1 newline at end of file; 2 found
    -----------------------------------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    -----------------------------------------------------------------------------------------------------------
    
    Time: 192ms; Memory: 12MB
    
  • Assigned to hetal.solanki
  • Issue was unassigned.
  • Status changed to Needs review 4 months ago
  • 🇮🇳India abhiyanshu_rawat

    I have thoroughly reviewed MR !3 and can confirm that it resolves all the PHPCS issues.
    For additional clarity, please refer to the attached screenshot. Excellent work on this!
    Moving it to RTBC. Thanks!

  • Status changed to RTBC 4 months ago
  • Assigned to mesharideb
  • Status changed to Fixed 4 months ago
  • 🇸🇦Saudi Arabia mesharideb

    Fixed

  • 🇮🇳India bhaveshdas

    hey @mesharideb,

    when you move an issue to the "Fixed" state, please remember to give credit to the contributors.

    Thankyou !

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024