Fix the issues reported by phpcs

Created on 20 April 2023, almost 2 years ago
Updated 24 April 2023, almost 2 years ago

Problem/Motivation

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\views_migration\src\Plugin\migrate\destination\ViewsMigration.php
-----------------------------------------------------------------------------------------------------------------------------
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_migration\src\Plugin\migrate\source\d7\ViewsMigration.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 29 WARNINGS AFFECTING 33 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
129 | ERROR | [x] Use null coalesce operator instead of ternary operator.
227 | ERROR | [ ] unserialize() is insecure unless allowed classes are limited. Use a safe format like JSON or use the allowed_classes option.
262 | WARNING | [ ] Unused variable $temp_entity_base_table.
263 | WARNING | [ ] Unused variable $temp_entity_type.
264 | WARNING | [ ] Unused variable $temp_base_field.
320 | WARNING | [ ] Unused variable $permissions_map.
335 | ERROR | [x] Use null coalesce operator instead of ternary operator.
438 | WARNING | [ ] Unused variable $base_table.
466 | WARNING | [ ] Unused variable $db_schema.
540 | WARNING | [ ] Unused variable $type.
553 | WARNING | [ ] Unused variable $type.
602 | WARNING | [ ] Unused variable $db_schema.
604 | WARNING | [ ] Unused variable $types.
608 | WARNING | [ ] Unused variable $boolean_fields.
674 | WARNING | [ ] Unused variable $db_schema.
695 | WARNING | [ ] Unused variable $check_reverse.
755 | WARNING | [ ] Unused variable $db_schema.
757 | WARNING | [ ] Unused variable $types.
761 | WARNING | [ ] Unused variable $boolean_fields.
828 | WARNING | [ ] Unused variable $views_relationships.
829 | WARNING | [ ] Unused variable $db_schema.
831 | WARNING | [ ] Unused variable $types.
835 | WARNING | [ ] Unused variable $boolean_fields.
919 | WARNING | [ ] Unused variable $db_schema.
921 | WARNING | [ ] Unused variable $types.
925 | WARNING | [ ] Unused variable $boolean_fields.
992 | WARNING | [ ] Unused variable $views_relationships.
993 | WARNING | [ ] Unused variable $db_schema.
995 | WARNING | [ ] Unused variable $types.
999 | WARNING | [ ] Unused variable $boolean_fields.
1112 | WARNING | [ ] Unused variable $type.
1125 | WARNING | [ ] Unused variable $type.
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\backendassignment\web\modules\contrib\views_migration\views_migration.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
--------------------------------------------------------------------------------------------------

Time: 3.41 secs; Memory: 14MB

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

1.2

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

Production build 0.71.5 2024