Fix the issues reported by phpcs

Created on 12 April 2023, over 1 year ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

FILE: ...tml/contribution/drupal10/web/modules/contrib/prismjs/js/prism-twilight.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...www/html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-coy.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...tribution/drupal10/web/modules/contrib/prismjs/js/prism-solarized-light.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ntribution/drupal10/web/modules/contrib/prismjs/js/prism-tomorrow-night.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...html/contribution/drupal10/web/modules/contrib/prismjs/js/build/prismJs.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-default.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-okaidia.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ww/html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-dark.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...w/html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-funky.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...drupal10/web/modules/contrib/prismjs/src/Plugin/PrismJs/LanguageSelect.php
--------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 8 LINES
--------------------------------------------------------------------------------
20 | ERROR | [x] Opening brace should be on the same line as the declaration
28 | ERROR | [x] Opening brace should be on the same line as the declaration
38 | ERROR | [x] Opening brace should be on the same line as the declaration
43 | ERROR | [x] Short array syntax must be used to define arrays
44 | ERROR | [x] Short array syntax must be used to define arrays
46 | WARNING | [x] A comma should follow the last multiline array item. Found:
| | )
55 | ERROR | [x] Opening brace should be on the same line as the declaration
66 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...rupal10/web/modules/contrib/prismjs/src/Plugin/CKEditor5Plugin/PrismJs.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
15 | ERROR | [x] Opening brace should be on the same line as the declaration
21 | ERROR | [x] Opening brace should be on the same line as the declaration
35 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ibution/drupal10/web/modules/contrib/prismjs/src/Plugin/Filter/PrismJs.php
--------------------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 12 LINES
--------------------------------------------------------------------------------
13 | WARNING | [ ] There must be no blank line following an inline comment
13 | ERROR | [x] Inline comments must start with a capital letter
13 | ERROR | [x] Inline comments must end in full-stops, exclamation marks,
| | question marks, colons, or closing parentheses
29 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
49 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
59 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
71 | ERROR | [x] There must be no blank lines after the function comment
74 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
108 | ERROR | [x] Expected 1 blank line after function; 0 found
109 | ERROR | [x] Missing function doc comment
109 | ERROR | [ ] Method name "PrismJs::get_string_between" is not in
| | lowerCamel format
109 | ERROR | [x] Visibility must be declared on method "get_string_between"
110 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
113 | ERROR | [x] Inline control structures are not allowed
124 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
128 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 14 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...contribution/drupal10/web/modules/contrib/prismjs/src/PrismJsInterface.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
12 | ERROR | [x] Opening brace should be on the same line as the declaration
35 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ion/drupal10/web/modules/contrib/prismjs/src/Controller/PrismJsPreview.php
--------------------------------------------------------------------------------
FOUND 7 ERRORS AND 1 WARNING AFFECTING 8 LINES
--------------------------------------------------------------------------------
22 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
44 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
60 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
69 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
85 | ERROR | [x] Expected newline after closing brace
93 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency
| | injection instead
109 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
113 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ntribution/drupal10/web/modules/contrib/prismjs/src/Annotation/PrismJs.php
--------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
--------------------------------------------------------------------------------
13 | ERROR | [x] Opening brace should be on the same line as the declaration
40 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...tion/drupal10/web/modules/contrib/prismjs/src/Form/PrismJsSettingsForm.php
--------------------------------------------------------------------------------
FOUND 11 ERRORS AND 1 WARNING AFFECTING 12 LINES
--------------------------------------------------------------------------------
12 | WARNING | [ ] The class short comment should describe what the class does
| | and not simply repeat the class name
14 | ERROR | [x] Opening brace should be on the same line as the declaration
20 | ERROR | [x] Opening brace should be on the same line as the declaration
28 | ERROR | [x] Opening brace should be on the same line as the declaration
36 | ERROR | [x] Opening brace should be on the same line as the declaration
43 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE"
| | but found "false"
51 | ERROR | [ ] The array declaration extends to column 106 (the limit is
| | 80). The array content should be split up over multiple
| | lines
52 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but
| | found "true"
59 | ERROR | [x] Short array syntax must be used to define arrays
70 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "TRUE" but
| | found "true"
84 | ERROR | [x] Opening brace should be on the same line as the declaration
94 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 10 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...bution/drupal10/web/modules/contrib/prismjs/src/Form/PrismJsDialogForm.php
--------------------------------------------------------------------------------
FOUND 15 ERRORS AND 1 WARNING AFFECTING 15 LINES
--------------------------------------------------------------------------------
20 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
43 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
51 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
61 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
69 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
76 | ERROR | [ ] The array declaration extends to column 105 (the limit is
| | 80). The array content should be split up over multiple
| | lines
134 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: false
134 | ERROR | [x] TRUE, FALSE and NULL must be uppercase; expected "FALSE"
| | but found "false"
159 | ERROR | [x] Expected newline after closing brace
193 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
209 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
234 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
248 | ERROR | [x] Expected newline after closing brace
251 | ERROR | [x] Expected newline after closing brace
260 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
264 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 15 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ribution/drupal10/web/modules/contrib/prismjs/src/PrismJsPluginManager.php
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
13 | ERROR | [x] Opening brace should be on the same line as the declaration
27 | ERROR | [x] Opening brace should be on the same line as the declaration
39 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ontribution/drupal10/web/modules/contrib/prismjs/src/PrismJsPluginBase.php
--------------------------------------------------------------------------------
FOUND 11 ERRORS AFFECTING 11 LINES
--------------------------------------------------------------------------------
13 | ERROR | [x] Opening brace should be on the same line as the declaration
19 | ERROR | [x] Opening brace should be on the same line as the declaration
28 | ERROR | [x] Opening brace should be on the same line as the declaration
37 | ERROR | [x] Opening brace should be on the same line as the declaration
45 | ERROR | [x] Opening brace should be on the same line as the declaration
53 | ERROR | [x] Opening brace should be on the same line as the declaration
61 | ERROR | [x] Opening brace should be on the same line as the declaration
69 | ERROR | [x] Opening brace should be on the same line as the declaration
77 | ERROR | [x] Opening brace should be on the same line as the declaration
85 | ERROR | [x] Opening brace should be on the same line as the declaration
89 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: /var/www/html/contribution/drupal10/web/modules/contrib/prismjs/README.txt
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------
4 | WARNING | Line exceeds 80 characters; contains 101 characters
5 | WARNING | Line exceeds 80 characters; contains 178 characters
7 | WARNING | Line exceeds 80 characters; contains 262 characters
9 | WARNING | Line exceeds 80 characters; contains 255 characters
24 | WARNING | Line exceeds 80 characters; contains 131 characters
--------------------------------------------------------------------------------

FILE: ...ibution/drupal10/web/modules/contrib/prismjs/css/prism-solarized-light.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ribution/drupal10/web/modules/contrib/prismjs/css/prism-tomorrow-night.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...w/html/contribution/drupal10/web/modules/contrib/prismjs/css/prism-coy.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...www/html/contribution/drupal10/web/modules/contrib/prismjs/css/prismjs.css
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | ERROR | [x] Expected 1 space before opening brace of class definition; 0
| | found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...l/contribution/drupal10/web/modules/contrib/prismjs/css/prism-twilight.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...html/contribution/drupal10/web/modules/contrib/prismjs/css/prism-funky.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ml/contribution/drupal10/web/modules/contrib/prismjs/css/prism-okaidia.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: .../html/contribution/drupal10/web/modules/contrib/prismjs/css/prism-dark.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ml/contribution/drupal10/web/modules/contrib/prismjs/css/prism-default.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...tml/contribution/drupal10/web/modules/contrib/prismjs/css/prism-custom.css
--------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------
1 | ERROR | [x] Multiple selectors should each be on a single line
3 | ERROR | [x] Expected 1 newline at end of file; 2 found
4 | ERROR | [x] Additional whitespace found at end of file
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: .../www/html/contribution/drupal10/web/modules/contrib/prismjs/prismjs.module
--------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
--------------------------------------------------------------------------------
12 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
22 | WARNING | [x] A comma should follow the last multiline array item.
| | Found: ]
24 | ERROR | [x] Expected 1 blank line after function; 0 found
26 | ERROR | [x] Doc comment short description must end with a full stop
29 | ERROR | [x] Opening brace should be on the same line as the
| | declaration
30 | ERROR | [x] Short array syntax must be used to define arrays
331 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

FILE: ...ml/contribution/drupal10/web/modules/contrib/prismjs/prismjs.libraries.yml
--------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------
110 | ERROR | [x] Expected 1 newline at end of file; 0 found
--------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------

Time: 928ms; Memory: 14MB

Steps to reproduce

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

Proposed resolution

Fix all the errors and warnings for Drupal and DrupalPractice coding standards

Remaining tasks

Please review the patch.

And fix the remaining issues:
FILE: ...tml/contribution/drupal10/web/modules/contrib/prismjs/js/prism-twilight.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...www/html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-coy.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...tribution/drupal10/web/modules/contrib/prismjs/js/prism-solarized-light.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ntribution/drupal10/web/modules/contrib/prismjs/js/prism-tomorrow-night.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...html/contribution/drupal10/web/modules/contrib/prismjs/js/build/prismJs.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-default.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-okaidia.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ww/html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-dark.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...w/html/contribution/drupal10/web/modules/contrib/prismjs/js/prism-funky.js
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ion/drupal10/web/modules/contrib/prismjs/src/Controller/PrismJsPreview.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
90 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
--------------------------------------------------------------------------------

FILE: ...ibution/drupal10/web/modules/contrib/prismjs/css/prism-solarized-light.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ribution/drupal10/web/modules/contrib/prismjs/css/prism-tomorrow-night.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...w/html/contribution/drupal10/web/modules/contrib/prismjs/css/prism-coy.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...l/contribution/drupal10/web/modules/contrib/prismjs/css/prism-twilight.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...html/contribution/drupal10/web/modules/contrib/prismjs/css/prism-funky.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ml/contribution/drupal10/web/modules/contrib/prismjs/css/prism-okaidia.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: .../html/contribution/drupal10/web/modules/contrib/prismjs/css/prism-dark.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

FILE: ...ml/contribution/drupal10/web/modules/contrib/prismjs/css/prism-default.css
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
1 | WARNING | File appears to be minified and cannot be processed
--------------------------------------------------------------------------------

Time: 935ms; Memory: 12MB

📌 Task
Status

RTBC

Version

1.1

Component

Code

Created by

🇮🇳India urvashi_vora Madhya Pradesh, India

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

  • Issue created by @urvashi_vora
  • 🇮🇳India Akram Khan Cuttack, Odisha

    still issues remaining so move to NW

    FILE: /Users/akram.khan/Desktop/Contribution/drupal9.5.x/drupal/modules/contrib/prismjs/src/Controller/PrismJsPreview.php
    -------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------
    90 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
    -------------------------------------------------------------------------------------------------------------------------

    Time: 295ms; Memory: 12MB

  • Status changed to Needs review over 1 year ago
  • 🇮🇳India mrinalini9 New Delhi

    Updated patch #1 by addressing #2 and fixing some trailing whitespace issues, please review it.

    Thanks!

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

    Hi mrinalini9,

    I applied your patch #3 the "Prism Js syntax highlighter" module against Version 1.1.0. and noticed that there are still phpcs warnings reported

    Please see the screenshots attached.

    For your review.
    Thank you.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • Status changed to Needs review over 1 year ago
  • 🇮🇳India Ashutosh Ahirwal India

    Providing patch for phpcs fixes

  • 🇮🇳India Raveen Kumar

    Hello guys,

    * I have reviewed and implemented patch #6. And is working fine for me.
    * As you can see in my attached screenshots.
    * I am adding an error text file and screenshots which shows no error messages for phpcs.
    * Please have a look. And Thank You.
    * Marking this ticket to RTBC! +1

  • Status changed to RTBC over 1 year ago
Production build 0.71.5 2024