Fix phpcs errors and warnings

Created on 18 January 2023, over 2 years ago

Problem/Motivation

Phpcs is pointing some errors and warnings on this module.

$ phpcs --standard=Drupal technocrat_companion

FILE: ...min\Desktop\task\technocrat_companion\src\Generators\SubthemeGenerator.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AND 3 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------
   1 | ERROR   | [x] End of line character is invalid; expected "\n" but found
     |         |     "\r\n"
  53 | ERROR   | [ ] The array declaration extends to column 82 (the limit is
     |         |     80). The array content should be split up over multiple
     |         |     lines
 140 | WARNING | [x] There must be no blank line following an inline comment
 392 | WARNING | [x] There must be no blank line following an inline comment
 399 | WARNING | [x] There must be no blank line following an inline comment
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 446ms; Memory: 10MB

Proposed resolution

Fix all these notices.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India jay jangid Jaipur

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Status changed to Fixed over 2 years ago
Production build 0.71.5 2024