Fix the issues reported by phpcs

Created on 18 May 2023, over 1 year ago
Updated 16 February 2024, 9 months ago

phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml web/modules/contrib/eudonet/

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/EudonetSearchQueryResultItemWrapper.php
--------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------
16 | ERROR | Missing member variable doc comment
73 | ERROR | Type hint "array" missing for $tree
73 | ERROR | Type hint "array" missing for $path
99 | ERROR | Type hint "array" missing for $tree
99 | ERROR | Type hint "array" missing for $path
--------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQueryInterface.php
-------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
47 | ERROR | [x] Return type must not contain variable name "$response"
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQuery/MetaInfosQuery.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
23 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQuery/AuthenticationQuery.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
20 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQuery/CUDQuery.php
-----------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------------
22 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
25 | ERROR | Missing member variable doc comment
27 | ERROR | Missing member variable doc comment
32 | WARNING | Possible useless method overriding detected
91 | ERROR | Type hint "array" missing for $fields
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQuery/SearchQuery.php
---------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------
13 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
28 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
36 | ERROR | [ ] Missing member variable doc comment
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQuery/AttachmentsQuery.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
19 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQuery/CatalogQuery.php
---------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
24 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
27 | ERROR | [ ] Missing member variable doc comment
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQueryResult/AttachmentsQueryResult.php
---------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
16 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQueryResult/MetaInfosQueryResult.php
---------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
8 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
19 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQueryResult/DefaultQueryResult.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
16 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQueryResult/AuthenticationQueryResult.php
------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------
17 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQueryResult/CatalogQueryResult.php
---------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
8 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
19 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Plugin/EudonetQueryResult/SearchQueryResult.php
---------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
10 | ERROR | [x] Non-namespaced classes/interfaces/traits should not be referenced with use statements
21 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
36 | ERROR | [x] Data types in @var tags need to be fully namespaced
36 | ERROR | [x] Data types in @var tags need to be fully namespaced
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/EudonetQueryCondition.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
12 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Traits/EudonetQueryOrderByTrait.php
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------
9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
12 | ERROR | Missing member variable doc comment
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Traits/EudonetQueryConditionTrait.php
---------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------
11 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
54 | ERROR | [x] Data types in @return tags need to be fully namespaced
66 | ERROR | [x] Data types in @return tags need to be fully namespaced
80 | ERROR | [x] Data types in @return tags need to be fully namespaced
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Traits/EudonetQueryFieldTrait.php
-----------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------
9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
12 | ERROR | Missing member variable doc comment
37 | ERROR | Type hint "array" missing for $field_names
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Traits/EudonetMappingTrait.php
----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Traits/EudonetQueryPagerTrait.php
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------
9 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
12 | ERROR | Missing member variable doc comment
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/EudonetMappingPluginManagerInterface.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
12 | WARNING | [x] There must be no blank line following an inline comment
12 | WARNING | [ ] There must be no blank line following an inline comment
12 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 4
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Eudonet.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
17 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/src/Form/EudonetConfigForm.php
-----------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
16 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
-----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/README.md
------------------------------------------------------------------------------
FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
9 | WARNING | [ ] Line exceeds 80 characters; contains 97 characters
21 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
22 | WARNING | [ ] Line exceeds 80 characters; contains 93 characters
41 | ERROR | [x] The open comment tag must be the only content on the line
41 | ERROR | [ ] Missing short description in doc comment
51 | ERROR | [x] Expected 1 space after "<"; 0 found
51 | ERROR | [x] Expected 1 space before "?"; 0 found
51 | ERROR | [x] Expected 1 space after "?"; 0 found
------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/config/schema/eudonet.eudonetconfig.schema.yml
-----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------
33 | ERROR | [x] Expected 1 newline at end of file; 0 found
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/eudonet.links.menu.yml
-----------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------
6 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------

FILE: /var/www/html/contribution/web/modules/contrib/eudonet/eudonet.routing.yml
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
8 | WARNING | [ ] The administration page callback should probably use "administer site configuration" - which implies the user can change something - rather than "access
| | administration pages" which is about viewing but not changing configurations.
10 | ERROR | [x] Expected 1 newline at end of file; 2 found
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India himanshu_jhaloya Indore

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

  • Issue created by @himanshu_jhaloya
  • Merge request !2fixed the error → (Open) created by himanshu_jhaloya
  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Status changed to RTBC over 1 year ago
  • 🇧🇷Brazil elber Brazil

    Hi I revised the MR changes .
    I ran phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,js,info,txt,md,yml,twig . inside module folder

    phpcs has been fixed

    moving to RTBC.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
    diff --git a/README.md b/README.md
    index 4834c199c1616fac46e5cd1d0c041e63564ac305..880ad97b7849133d01909d864d59024fe94587e9 100644
    --- a/README.md
    +++ b/README.md
    @@ -1,3 +1,10 @@
    +<?php
    +
    +/**
    + * @file
    + * This module provides a PHP client to make requests to the Eudonet API.
    + */
    +?>

    No, those lines are not necessary in a README.md file. I do not even see a warning in the shown report that say they must be added.

    -/** @var \Drupal\eudonet\EudonetSearchQueryResultItemWrapper $item */
    +/**
    + * QueryResultItem.
    + *
    + * @var \Drupal\eudonet\EudonetSearchQueryResultItemWrapper $item
    + */

    The existing code is already correct: /** @var \Drupal\eudonet\EudonetSearchQueryResultItemWrapper $item */ must be on a single line.

    -<?php
    +< ? php

    There is no need to add spaces in the <?php tag.

     /**
    - * Class Eudonet.
    + * The class of eudonet.

    The description is still repeating the class name without saying what the class does.

    -      throw new Exception('A descId or \'Users\' are required to use the catalog resource');
    +      throw new \Exception('A descId or \'Users\' are required to use the catalog resource');

    Instead of escaping the string delimiter inside the string, the string should use a different string delimiter.

     /**
    - * Trait EudonetMappingTrait.
    + * Trait mappingtrait.
     /**
    - * Trait EudonetQueryConditionTrait.
    + * Trait queryconditiontrait.
      *

    Trait descriptions must not start with Trait. Those descriptions do not say what the trait purpose is.

    +  /**
    +   * Array $fields.
    +   *
    +   * @var array
    +   */
       protected $fields = [];

    A property description must describe the property, not repeat the property type and the variable name.

  • First commit to issue fork.
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
    +* The EudonetQuery plug-in type is responsible for the
    + http request to the eudonet API.

    Since that is part of a list, the second line needs to be indented.

    /**
    - * Class Eudonet.
    + * The class of eudonet.

    That description is still repeating the class name. Class descriptions must not start with The class of, which does not even make sense when it is followed by the class name.

    +  /**
    +   * The wrapped item.
    +   *
    +   * @var mixed
    +   */
       private $item;

    That property's type is array.

    +   * The value representing an image.
    +   *
    +   * @var string
        */
    -  public function __construct(array $configuration, string $plugin_id, $plugin_definition, ClientFactory $http_client_factory, Eudonet $eudonet, EudonetQueryResultManager $eudonet_query_result_manager) {
    -    parent::__construct($configuration, $plugin_id, $plugin_definition, $http_client_factory, $eudonet, $eudonet_query_result_manager);
    -  }
    +  protected $imageValue;

    $imageValue is an array, not a string, since it is initialized by the following code.

    $this->imageValue = [
      'DescId' => $this->mapping[$field_name] ?? $field_name,
      'Value' => $value,
    ];
    
     /**
    - * Class SearchQuery.
    + * Epresents a search query for retrieving specific data.

    There is a typo in that description.

    - * Trait EudonetMappingTrait.
    + * Trait mappingtrait.
    - * Trait EudonetQueryConditionTrait.
    + * Trait queryconditiontrait.
    
     /**
    - * Trait EudonetQueryFieldTrait.
    + * Trait queryfieldtrait.

    Trait descriptions must not start with Trait. Those descriptions do not say what the trait purpose is. (What follow Trait is not an English word, then.)

    +  /**
    +   * Array $fields will have fieldname.
    +   *
    +   * @var array
    +   */
       protected $fields = [];

    That description does not make sense.

    -   * @param int|string $field_name
    +   * @param int|array $field_name
        *   The field name to get in the request response.

    $field_name is not an array or an integer, but a string or an integer.

    -  public function addField($field_name) {
    +  public function addField(array $field_name) {

    Since $field_name can be either a string or an integer, it cannot be type-hinted to array.

    +  /**
    +   * Array $papger.
    +   *
    +   * @var array
    +   */
       protected $pager = [];

    The description must say for what that property is used, not repeat its type and the variable name.

  • First commit to issue fork.
  • bindu r made their first commit to this issue’s fork.

  • First commit to issue fork.
  • Hi,
    Reviewed MR !2, found few remaining errors adding some below.

    FILE: C:\eudonet\eudonet.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
    ----------------------------------------------------------------------------------
    
    
    FILE: C:\eudonet\README.md
    ----------------------------------------------------------------------------------
    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:\eudonet\src\Annotation\EudonetQuery.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:\eudonet\src\Annotation\EudonetQueryResult.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:\eudonet\src\Eudonet.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:\eudonet\src\EudonetMappingPluginManager.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:\eudonet\src\EudonetMappingPluginManagerInterface.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:\eudonet\src\EudonetQueryCondition.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:\eudonet\src\EudonetSearchQueryResultItemWrapper.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
    ----------------------------------------------------------------------------------
    
  • 🇮🇳India sakthi_dev

    @shruu_rao It's not showing any error for me upon running the command.

    phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,js,css,info,txt,md
    

    Attaching the screenshot.

  • Status changed to Needs review 9 months ago
Production build 0.71.5 2024