Fix the issues reported by phpcs

Created on 8 August 2022, almost 2 years ago
Updated 1 May 2023, about 1 year ago

$ phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml media_remote/
Xdebug: [Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: localhost:9000 (through xdebug.client_host/xdebug.client_port) :-(

FILE: C:\Users\SI-001\Downloads\media_remote\media_remote.module
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
74 | ERROR | [x] Expected 1 newline at end of file; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\media_remote\README.md
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
45 | ERROR | [x] Expected 1 newline at end of file; 3 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\media_remote\src\Plugin\Field\FieldFormatter\MediaRemoteDropboxFormatter.php
------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------------------
84 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
85 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
86 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
87 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
95 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
104 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
113 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
122 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\media_remote\src\Plugin\Field\FieldFormatter\MediaRemoteGoogleFormatter.php
-----------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------
12 | WARNING | [ ] Line exceeds 80 characters; contains 145 characters
89 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
90 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
91 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
99 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
108 | ERROR | [x] Array indentation error, expected 6 spaces but found 8
117 | ERROR | [x] Array closing indentation error, expected 4 spaces but found 6
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\media_remote\src\Plugin\media\Source\MediaRemoteSource.php
------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
79 | ERROR | [x] Data types in @var tags need to be fully namespaced
79 | ERROR | [x] Data types in @var tags need to be fully namespaced
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\media_remote\tests\src\FunctionalJavascript\Formatters\BuzzsproutFormatterTest.php
------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
89 | ERROR | [x] Expected 1 newline at end of file; 2 found
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\media_remote\tests\src\FunctionalJavascript\Formatters\DocumentcloudFormatterTest.php
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
64 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\media_remote\tests\src\FunctionalJavascript\Formatters\DropboxFormatterTest.php
---------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------
95 | ERROR | [x] Expected 1 newline at end of file; 2 found
---------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\media_remote\tests\src\FunctionalJavascript\Formatters\GoogleFormatterTest.php
--------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------
86 | ERROR | [x] Expected 1 newline at end of file; 2 found
--------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------

FILE: C:\Users\SI-001\Downloads\media_remote\tests\src\FunctionalJavascript\MediaRemoteFunctionalJavascriptTestBase.php
-----------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------
125 | ERROR | [x] Short array syntax must be used to define arrays
171 | ERROR | [ ] @return doc comment specified, but function has no return statement
270 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------

Time: 934ms; Memory: 10MB

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Rakhi Soni

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