Fix the issues reported by phpcs

Created on 16 June 2023, almost 2 years ago
Updated 9 August 2023, over 1 year ago

Problem/Motivation

Found issues reported by phpcs by running this command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,twig,yml securitytxt

FILE: ...s/Drupal.org/drupalorg-site/docroot/modules/contrib/securitytxt/tests/src/Functional/SecuritytxtPermissionsTest.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
 19 | ERROR | Missing @var tag in member variable comment
-------------------------------------------------------------------------------------------------------------------------


FILE: ...trainees/Drupal.org/drupalorg-site/docroot/modules/contrib/securitytxt/tests/src/Functional/SecuritytxtBaseTest.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
 59 | ERROR | The array declaration extends to column 115 (the limit is 80). The array content should be split up over
    |       | multiple lines
-------------------------------------------------------------------------------------------------------------------------


FILE: ...trainees/Drupal.org/drupalorg-site/docroot/modules/contrib/securitytxt/tests/src/Functional/SecuritytxtFormTest.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------
 19 | ERROR | Missing @var tag in member variable comment
-------------------------------------------------------------------------------------------------------------------------


FILE: /Users/studenttrainees/Drupal.org/drupalorg-site/docroot/modules/contrib/securitytxt/securitytxt.module
-------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------
 21 | ERROR | The array declaration extends to column 373 (the limit is 80). The array content should be split up over
    |       | multiple lines
 40 | ERROR | The array declaration extends to column 348 (the limit is 80). The array content should be split up over
    |       | multiple lines
-------------------------------------------------------------------------------------------------------------------------

Time: 460ms; Memory: 10MB
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇭Philippines paraderojether

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