Fix strict PHPCS errors in core/lib/Drupal/Core/Url.php

Created on 18 April 2024, 7 months ago

Problem/Motivation

Fix strict PHPCS errors in core/lib/Drupal/Core/Url.php

Steps to reproduce

❯ ./vendor/bin/phpcs --standard=Drupal -- core/lib/Drupal/Core/Url.php

FILE: /Users/jayti.saparia/DrupalSite/drupal/core/lib/Drupal/Core/Url.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AFFECTING 9 LINES
-----------------------------------------------------------------------------------------------------------------------------------
  10 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Routing\RouteMatchInterface.
 115 | ERROR | [x] Parameter comment must end with a full stop
 141 | ERROR | [x] Parameter comment must end with a full stop
 542 | ERROR | [ ] Description for the @return value is missing
 551 | ERROR | [ ] Description for the @return value is missing
 560 | ERROR | [ ] Description for the @return value is missing
 576 | ERROR | [ ] Description for the @return value is missing
 856 | ERROR | [ ] Missing short description in doc comment
 857 | ERROR | [ ] Description for the @return value is missing
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------

User interface changes

None.

API changes

None.

Data model changes

None.

📌 Task
Status

Closed: duplicate

Version

11.0 🔥

Component
Base 

Last updated about 1 hour ago

Created by

🇮🇳India Jayti Saparia

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.

  • Quick fix

    Very small and simple change. Preferred over Quickfix.

  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024