PHPCS Issues to be fixed

Created on 14 July 2021, almost 3 years ago
Updated 6 September 2023, 10 months ago

Listed PHPCS related errors and warnings need to be fixed.

FILE: C:\xampp7\htdocs\drupal\modules\contrib\content_language_access\README.txt
---------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------
9 | WARNING | Line exceeds 80 characters; contains 120 characters
38 | WARNING | Line exceeds 80 characters; contains 176 characters
---------------------------------------------------------------------------------------

FILE: C:\xampp7\htdocs\drupal\modules\contrib\content_language_access\src\Form\ContentLanguageAccessAdminForm.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
59 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp7\htdocs\drupal\modules\contrib\content_language_access\src\Tests\ContentLanguageAccessContentDetectionEnabledTest.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
6 | WARNING | Line exceeds 80 characters; contains 88 characters
34 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp7\htdocs\drupal\modules\contrib\content_language_access\src\Tests\ContentLanguageAccessTestBase.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------------
101 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
105 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
106 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
169 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------

Time: 326ms; Memory: 12MB

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Rajeshreeputra Pune

Live updates comments and jobs are added and updated live.
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