Fix Coding Standards

Created on 9 June 2022, about 2 years ago
Updated 20 January 2023, over 1 year ago

Problem/Motivation

Run phpcs against the module code to find the following errors:

FILE: ...ontrib_Envs/Modules/web/modules/contrib/iframe_video/iframe_video.info.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------
 7 | WARNING | [ ] All dependencies must be prefixed with the project name, for
   |         |     example "drupal:"
 8 | WARNING | [ ] All dependencies must be prefixed with the project name, for
   |         |     example "drupal:"
 9 | WARNING | [ ] All dependencies must be prefixed with the project name, for
   |         |     example "drupal:"
 9 | ERROR   | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...s/web/modules/contrib/iframe_video/src/Plugin/media/Source/IframeVideo.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
--------------------------------------------------------------------------------
  5 | WARNING | [x] Unused use statement
  6 | WARNING | [x] Unused use statement
 20 | ERROR   | [x] Additional blank lines found at end of doc comment
 24 | ERROR   | [x] Missing function doc comment
 24 | ERROR   | [x] Expected 1 blank line before function; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: .../Contrib_Envs/Modules/web/modules/contrib/iframe_video/iframe_video.module
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
 32 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 85ms; Memory: 10MB

Steps to reproduce

Run phpcs

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇷Brazil bruno.bicudo Bragança Paulista - São Paulo

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

Not all content is available!

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

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
Production build 0.69.0 2024