Fix the issues reported by phpcs

Created on 7 July 2023, over 1 year ago
Updated 23 April 2024, 9 months ago

Problem/Motivation


FILE: /home/lenovo/d7to9/web/modules/contrib/microsoft_clarity-3373101/microsoft_clarity.module
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------
 61 | ERROR | [x] Expected one space after the comma, 2 found
 63 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or
    |       |     closing parentheses
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/d7to9/web/modules/contrib/microsoft_clarity-3373101/src/JavascriptLocalCache.php
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
 8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is
   |       |     Drupal\Core\File\FileSystem.
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/d7to9/web/modules/contrib/microsoft_clarity-3373101/src/Helpers/VisiblityTracker.php
-------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------
 10 | ERROR | [x] There must be one blank line after the last USE statement; 2 found;
 71 | ERROR | [x] Data types in @param tags need to be fully namespaced
-------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------


FILE: /home/lenovo/d7to9/web/modules/contrib/microsoft_clarity-3373101/src/Form/SettingsForm.php
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
 100 | ERROR | The array declaration extends to column 82 (the limit is 80). The array content should be
     |       | split up over multiple lines
----------------------------------------------------------------------------------------------------------

Time: 102ms; Memory: 10MB

Steps to reproduce

Execute the command: phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig microsoft_clarity/

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia roshni27

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024