Fix the issues reported by phpcs

Created on 25 April 2023, over 1 year ago
Updated 16 October 2023, about 1 year ago

Problem/Motivation

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\views_row_insert\README.md
--------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------
53 | WARNING | Line exceeds 80 characters; contains 81 characters
55 | WARNING | Line exceeds 80 characters; contains 81 characters
--------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\views_row_insert\src\Plugin\views\style\ViewsRowInsert.php
----------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
73 | WARNING | [ ] #options values usually have to run through t() for translation
----------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\views_row_insert\views_row_insert.module
----------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\views_row_insert\views_row_insert.theme.inc
-------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
26 | ERROR | [x] Use null coalesce operator instead of ternary operator.
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------

Time: 1.18 secs; Memory: 6MB

Steps to reproduce

Run the phpcs command on the module.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇮🇳India sidharth_soman Bangalore

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

Comments & Activities

  • Issue created by @sidharth_soman
  • @sidharth_soman opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India sidharth_soman Bangalore

    I've fixed the issues except for the ones in the README.md file... and issued an MR for the same.

    Please review.

  • Status changed to Needs work over 1 year ago
  • 🇵🇭Philippines clarkssquared

    Hi sidharth_soman

    I applied your MR !2 in my local with Drupal 9.5.8 to the "Views Row Insert" against version 8.x-2.x-dev, and I noticed that there are PHPCS issues being flagged about README.md

    Please look at the screenshot attached for your reference

    Thanks

  • Status changed to Needs review over 1 year ago
  • 🇮🇳India sidharth_soman Bangalore

    I intentionally left out the errors in the README file due to them being trivial line character warnings in documentation. I don't think it's necessary to fix those and it's best for them to be kept that way due to readability.

  • Status changed to RTBC over 1 year ago
  • 🇵🇭Philippines clarkssquared

    Hi sidharth_soman,

    Thank you for the information, and noted on that one, I will move this to RTBC.

    Thanks

  • Status changed to Fixed about 1 year ago
  • 🇨🇦Canada phjou Vancouver 🇨🇦 🇪🇺

    Merged, thank you for the patch.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024