Problem/Motivation

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

FILE: /var/www/html/d10/web/modules/contrib/deepgram/src/Plugin/AiProvider/DeepgramProvider.php
-----------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------
 168 | ERROR | [x] Expected newline after closing brace
 231 | ERROR | [x] Expected 1 blank line after function; 2 found
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------


FILE: /var/www/html/d10/web/modules/contrib/deepgram/src/Deepgram.php
-----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------
   6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Config\ConfigFactory.
  31 | ERROR | [ ] Parameter $keyRepository is not described in comment
 144 | ERROR | [x] No space found before comment text; expected "// $options['http_errors'] = FALSE;" but found "//$options['http_errors'] = FALSE;"
-----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/d10/web/modules/contrib/deepgram/readme.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------
  9 | WARNING | Line exceeds 80 characters; contains 130 characters
 11 | WARNING | Line exceeds 80 characters; contains 116 characters
 15 | WARNING | Line exceeds 80 characters; contains 94 characters
 25 | WARNING | Line exceeds 80 characters; contains 100 characters
 33 | WARNING | Line exceeds 80 characters; contains 92 characters
----------------------------------------------------------------------

Time: 253ms; Memory: 12MB

Steps to reproduce

Run PHPCS on Config Pages module.

Proposed resolution

Fixed the coding standards.

Remaining tasks

Submit the patch either MR.

CommentFileSizeAuthor
#4 deepgram--issues---3460526---4.png28.08 KBbhaveshdas

Issue fork deepgram-3460526

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Hetal.Solanki created an issue. See original summary.

hetal.solanki’s picture

Assigned: hetal.solanki » Unassigned
Status: Active » Needs review
bhaveshdas’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new28.08 KB

I have tested MR!1 and it is working properly with no errors found. I will move it forward to RTBC.