Coding standards issue fixes

Created on 20 October 2022, over 1 year ago
Updated 28 June 2023, 12 months ago

Problem/Motivation

There are some Drupal coding standard errors which needs to to be fixed.

Steps to reproduce

Run phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml web/modules/contrib/responsive_preview

FILE: .../web/modules/contrib/responsive_preview/src/ResponsivePreview.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
  88 | ERROR | [ ] Doc comment short description must be on a single line,
     |       |     further text should be a separate paragraph
 136 | ERROR | [x] Separate the @return and @throws sections by a blank line.
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------


FILE: ...esponsive_preview/tests/src/FunctionalJavascript/ResponsivePreviewTest.php
--------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 97 | WARNING | Line exceeds 80 characters; contains 129 characters
 97 | ERROR   | Comment indentation error, expected only 1 spaces
--------------------------------------------------------------------------------


FILE: ...rib/responsive_preview/tests/src/Functional/ResponsivePreviewAdminTest.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
 53 | WARNING | Line exceeds 80 characters; contains 85 characters
--------------------------------------------------------------------------------

Time: 278ms; Memory: 12MB
📌 Task
Status

RTBC

Version

2.0

Component

Code

Created by

🇮🇳India Rajeshreeputra Pune

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.

Production build 0.69.0 2024