Fix issues reported by PHPCS

Created on 20 March 2025, 18 days ago

Problem/Motivation

Running PHPCS shows the warnings/errors in attached file, which should be fixed

šŸ“Œ Task
Status

Active

Version

2.0

Component

Code

Created by

šŸ‡®šŸ‡³India GGH

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

Merge Requests

Comments & Activities

  • Issue created by @GGH
  • šŸ‡®šŸ‡³India GGH

    MR Raised

  • Pipeline finished with Success
    18 days ago
    Total: 298s
    #453098
  • šŸ‡µšŸ‡­Philippines paraderojether

    Hi

    I reviewed MR!8, applied against Shortcode 2.0.3, and confirmed fixes the issues reported by phpcs.

    āžœ  shortcode git:(main) āœ— curl https://git.drupalcode.org/project/shortcode/-/merge_requests/8.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  5248    0  5248    0     0  12752      0 --:--:-- --:--:-- --:--:-- 12958
    patching file 'shortcode_basic_tags/templates/shortcode-button.html.twig'
    patching file 'shortcode_basic_tags/templates/shortcode-clear.html.twig'
    patching file 'shortcode_basic_tags/templates/shortcode-dropcap.html.twig'
    patching file 'shortcode_basic_tags/templates/shortcode-img.html.twig'
    patching file 'shortcode_basic_tags/templates/shortcode-item.html.twig'
    patching file 'shortcode_basic_tags/templates/shortcode-link.html.twig'
    patching file 'shortcode_basic_tags/templates/shortcode-quote.html.twig'
    patching file 'src/ShortcodeService.php'
    āžœ  shortcode git:(main) āœ— cd ..
    āžœ  contrib git:(main) āœ— phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig shortcode
    āžœ  contrib git:(main) āœ—

    It all passed PHPCS using Gitlab CI.

    Moving this to RTBC.
    Thank you.

Production build 0.71.5 2024