Fix the issues reported by phpcs

Created on 22 March 2023, almost 2 years ago

Problem/Motivation

Getting the following errors/warnings.

FILE: /twitter_api/src/HttpClientFactory.php
----------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------
 48 | WARNING | [x] A comma should follow the last multiline array item. Found: 'oauth'
----------------------------------------------------------------------------------------


FILE: /twitter_api/src/Plugin/Block/TweetsFromUserBlock.php
--------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
 143 | WARNING | [x] 'TODO: Move all of this into a better place. Preprocessor?' should match the format '@todo Fix problem X here.'
--------------------------------------------------------------------------------------------------------------------

Steps to reproduce

Run the following command:
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml twitter_api

Proposed resolution

The above errors/warrings needs to be fixed.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India omkar_yewale Mumbai

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.

  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024