FIx the issues reported by phpcs

Created on 1 July 2023, over 1 year ago

Problem/Motivation

Fix the issues reported by phpcs

FILE: C:\xamppnew\htdocs\s\web\modules\nextcloud_dam\nextcloud_dam.module
-------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------
 124 | ERROR | [x] Expected 1 newline at end of file; 2 found
-------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------
FILE: ...mppnew\htdocs\s\web\modules\nextcloud_dam\src\NextcloudDamApiInterface.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
  94 | ERROR | Type hint "array" missing for $share_options
 143 | ERROR | Type hint "array" missing for $path
--------------------------------------------------------------------------------
FILE: ...w\htdocs\s\web\modules\nextcloud_dam\src\Plugin\media\Source\Nextcloud.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
 127 | ERROR | Expected type hint "nextcloudDamInterface"; found
     |       | "NextcloudDamApiInterface" for $nextcloud_dam_api_service
 329 | ERROR | Type hint "Drupal\media\MediaInterface" missing for $media
 329 | ERROR | Type hint "array" missing for $metadata
--------------------------------------------------------------------------------
FILE: ...docs\s\web\modules\nextcloud_dam\src\Plugin\QueueWorker\UpdateMetadata.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
--------------------------------------------------------------------------------
 99 | ERROR | Expected type hint "LoggerChannel"; found
    |       | "LoggerChannelInterface" for $logger_channel
 99 | ERROR | Expected type hint "EventDispatcher"; found
    |       | "EventDispatcherInterface" for $event_dispatcher
--------------------------------------------------------------------------------

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India sonam_sharma

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

Comments & Activities

Production build 0.71.5 2024