Fix the issues reported by phpcs

Created on 10 May 2023, over 1 year ago
Updated 16 May 2023, over 1 year ago

Problem/Motivation

Module's code contains several Drupal Coding Standards issues. This task is created to fix them.

Steps to reproduce

Run the command:

phpcs --standard=Drupal
/web/modules/contrib/social_auth_nextcloud/

Proposed resolution

Fix the following coding standards issues and upload the patch or create an MR with fixes.
FILE: \modules\contrib\social_auth_nextcloud\src\NextcloudAuthManager.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------------

FILE: \modules\contrib\social_auth_nextcloud\src\Plugin\Network\NextcloudAuth.php
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------------------------------

FILE: \modules\contrib\social_auth_nextcloud\tests\src\Functional\SocialAuthNextcloudLoginBlockTest.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------------------------------------------

FILE: \modules\contrib\social_auth_nextcloud\tests\src\Functional\SocialAuthNextcloudSettingsFormTest.php
-----------------------------------------------------------------------------------------------------------------------------------------

1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------------------------------------------------------

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Closed: outdated

Version

4.0

Component

Code

Created by

🇮🇳India Shanu Chouhan

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

Production build 0.71.5 2024