Fix the issues reported by PHP_CodeSniffer

Created on 3 May 2023, over 1 year ago
Updated 17 November 2023, about 1 year ago

Problem/Motivation

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

FILE: /var/www/html/vbd9/web/modules/contrib/instagram_lite/src/Plugin/Block/InstagramLite.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------
296 | ERROR | unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.
--------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/vbd9/web/modules/contrib/instagram_lite/instagram_lite.module
---------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------
11 | WARNING | [x] Unused use statement
---------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------

FILE: /var/www/html/vbd9/web/modules/contrib/instagram_lite/instagram_lite.install
----------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
28 | ERROR | [x] Concat operator must be surrounded by a single space
----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------

FILE: /var/www/html/vbd9/web/modules/contrib/instagram_lite/README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------
41 | WARNING | Line exceeds 80 characters; contains 85 characters
43 | WARNING | Line exceeds 80 characters; contains 118 characters
44 | WARNING | Line exceeds 80 characters; contains 105 characters
51 | WARNING | Line exceeds 80 characters; contains 108 characters
52 | WARNING | Line exceeds 80 characters; contains 155 characters
53 | WARNING | Line exceeds 80 characters; contains 96 characters
----------------------------------------------------------------------

Time: 1 secs; Memory: 16MB

Steps to reproduce

Proposed resolution

RUN:

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

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India dineshkumarbollu

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