Fix codestyle issues

Created on 27 July 2023, over 1 year ago
Updated 5 September 2023, over 1 year ago

Problem/Motivation

robert@acer-travelmate-p215-41-g2:~/lando-projects/drupal1.localhost$ lando phpcs web/modules/contrib/media_entity_facebook/

FILE: .../contrib/media_entity_facebook/src/Form/FacebookSettingsForm.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 6 | ERROR | [x] Use statements should be sorted alphabetically. The
   |       |     first wrong one is Drupal\Core\Form\ConfigFormBase.
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ...web/modules/contrib/media_entity_facebook/src/FacebookMarkup.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 10 | WARNING | The class short comment should describe what the
    |         | class does and not simply repeat the class name
----------------------------------------------------------------------


FILE: ...ntrib/media_entity_facebook/src/Plugin/media/Source/Facebook.php
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 9 | ERROR | [x] Use statements should be sorted alphabetically. The
   |       |     first wrong one is
   |       |     Drupal\Core\Entity\EntityTypeManagerInterface.
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------


FILE: ...eb/modules/contrib/media_entity_facebook/src/FacebookFetcher.php
----------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------
  15 | WARNING | The class short comment should describe what the
     |         | class does and not simply repeat the class name
  60 | ERROR   | Parameter $configFactory is not described in comment
  69 | ERROR   | Doc comment for parameter $config_factory does not
     |         | match actual variable name $cache
 132 | WARNING | \Drupal calls should be avoided in classes, use
     |         | dependency injection instead
----------------------------------------------------------------------

Time: 179ms; Memory: 12MB

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇸🇰Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024