Fix the issues reported by phpcs

Created on 20 February 2023, almost 2 years ago
Updated 28 August 2024, 3 months ago

Problem/Motivation

FILE: C:\xampp\htdocs\abc\drupal\modules\fieldory\fieldory.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: ...upal\modules\fieldory\fieldory_examples\fieldory_examples.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: ...dory\fieldory_examples\src\Commands\FieldoryExamplesCommands.php
----------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
23 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
85 | ERROR | [ ] The array declaration extends to column 88 (the
| | limit is 80). The array content should be split
| | up over multiple lines
90 | ERROR | [ ] The array declaration extends to column 95 (the
| | limit is 80). The array content should be split
| | up over multiple lines
95 | ERROR | [ ] The array declaration extends to column 95 (the
| | limit is 80). The array content should be split
| | up over multiple lines
124 | ERROR | [x] Inline comments must start with a capital letter
126 | ERROR | [x] Inline comments must end in full-stops,
| | exclamation marks, question marks, colons, or
| | closing parentheses
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: C:\xampp\htdocs\abc\drupal\modules\fieldory\README.md
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
8 | WARNING | Line exceeds 80 characters; contains 117 characters
24 | WARNING | Line exceeds 80 characters; contains 147 characters
----------------------------------------------------------------------

FILE: ...p\htdocs\abc\drupal\modules\fieldory\src\Annotation\Fieldory.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
11 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...\htdocs\abc\drupal\modules\fieldory\src\Constants\FieldoryId.php
----------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but
| | found "\r\n"
5 | ERROR | [x] Missing class doc comment
16 | ERROR | [x] The closing brace for the class must have an empty
| | line before it
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...upal\modules\fieldory\src\Exception\InvalidFieldoryException.php
----------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should
| | not be referenced with use statements
11 | 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: ...fieldory\src\Exception\InvalidFrequentlyUsedOptionsException.php
----------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should
| | not be referenced with use statements
11 | 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: ...upal\modules\fieldory\src\Exception\InvalidPropertyException.php
----------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should
| | not be referenced with use statements
11 | 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: ...l\modules\fieldory\src\Exception\ModuleNotInstalledException.php
----------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
5 | ERROR | [x] Non-namespaced classes/interfaces/traits should
| | not be referenced with use statements
11 | 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: C:\xampp\htdocs\abc\drupal\modules\fieldory\src\FieldoryBase.php
----------------------------------------------------------------------
FOUND 6 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
479 | WARNING | [x] Inline @var declarations should use the /** */
| | delimiters
520 | WARNING | [x] Inline @var declarations should use the /** */
| | delimiters
581 | ERROR | [x] Missing function doc comment
607 | ERROR | [ ] Description for the @return value is missing
619 | ERROR | [ ] Missing parameter comment
631 | ERROR | [ ] Missing parameter comment
631 | ERROR | [ ] Missing parameter type
----------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...\xampp\htdocs\abc\drupal\modules\fieldory\src\FieldoryBundle.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
13 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...mpp\htdocs\abc\drupal\modules\fieldory\src\FieldoryInterface.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
9 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...xampp\htdocs\abc\drupal\modules\fieldory\src\FieldoryManager.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: ...fieldory\src\FrequentlyUsedOptions\BoolFrequentlyUsedOptions.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: ...ieldory\src\FrequentlyUsedOptions\FloatFrequentlyUsedOptions.php
----------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
15 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
19 | ERROR | [x] Doc comment short description must end with a
| | full stop
49 | ERROR | [ ] Missing parameter comment
50 | ERROR | [ ] Missing parameter comment
51 | ERROR | [ ] Missing parameter comment
52 | ERROR | [ ] Missing parameter comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...ldory\src\FrequentlyUsedOptions\IntegerFrequentlyUsedOptions.php
----------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
15 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
19 | ERROR | [x] Doc comment short description must end with a
| | full stop
49 | ERROR | [ ] Missing parameter comment
50 | ERROR | [ ] Missing parameter comment
51 | ERROR | [ ] Missing parameter comment
52 | ERROR | [ ] Missing parameter comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...y\src\FrequentlyUsedOptions\ListIntegerFrequentlyUsedOptions.php
----------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
14 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
39 | ERROR | [ ] Type hint "array" missing for $options
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...ory\src\FrequentlyUsedOptions\ParagraphFrequentlyUsedOptions.php
----------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
13 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
26 | ERROR | [ ] Missing parameter comment
26 | ERROR | [x] Data types in @param tags need to be fully
| | namespaced
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...fieldory\src\FrequentlyUsedOptions\TermFrequentlyUsedOptions.php
----------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
9 | ERROR | [x] There must be one blank line after the last USE
| | statement; 2 found;
9 | ERROR | [x] When importing a class with "use", do not include
| | a leading \
16 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...cs\abc\drupal\modules\fieldory\src\FrequentlyUsedOptionsBase.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: ...cs\abc\drupal\modules\fieldory\src\Plugin\Fieldory\BoolField.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
16 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...s\abc\drupal\modules\fieldory\src\Plugin\Fieldory\FloatField.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
16 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...abc\drupal\modules\fieldory\src\Plugin\Fieldory\IntegerField.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
16 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...drupal\modules\fieldory\src\Plugin\Fieldory\ListIntegerField.php
----------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
16 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
32 | ERROR | [x] Expected 1 blank line after function; 2 found
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...c\drupal\modules\fieldory\src\Plugin\Fieldory\MonthYearField.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
14 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...c\drupal\modules\fieldory\src\Plugin\Fieldory\ParagraphField.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
7 | WARNING | [x] Unused use statement
17 | 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: ...\abc\drupal\modules\fieldory\src\Plugin\Fieldory\StringField.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
14 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...c\drupal\modules\fieldory\src\Plugin\Fieldory\TelephoneField.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
14 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ...cs\abc\drupal\modules\fieldory\src\Plugin\Fieldory\TermField.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
6 | WARNING | [x] Unused use statement
17 | 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: ...bc\drupal\modules\fieldory\src\Plugin\Fieldory\TextLongField.php
----------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
----------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n"
| | but found "\r\n"
14 | WARNING | [ ] The class short comment should describe what the
| | class does and not simply repeat the class name
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

Steps to reproduce

Run the following command :
phpcs --standard="Drupal,DrupalPractice" --extensions=php,module,inc,install,test,profile,theme,info,txt,md,yml /10.1.x/drupal/modules/contrib/fieldory

Proposed resolution

Fix all the PHP coding standard issues.

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Charchil Khandelwal

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

Merge Requests

Comments & Activities

  • Issue created by @Charchil Khandelwal
  • Issue was unassigned.
  • Status changed to Needs review almost 2 years ago
  • 🇮🇳India nayana_mvr

    Verified MR!1 on Drupal version 9.5.x and Fieldory version 8.x-1.x. Patch applied cleanly and all the coding standard issues are fixed now.

  • Status changed to Needs work over 1 year ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹
     /**
    - * Class FieldoryExamplesCommands.
    + * The FieldoryExamplesCommands class.

    The short description is still repeating the class name, which is what phpcs said to fix.

    -      ->setFrequentlyUsedOptions(new ListIntegerFrequentlyUsedOptions(['Male', 'Female']))
    +      ->setFrequentlyUsedOptions(new ListIntegerFrequentlyUsedOptions([
    +        'Male',
    +        'Female',
    +      ]))
           ->init($bundle, 'A LIST_INTEGER field 2')
    -      ->setFrequentlyUsedOptions(new ListIntegerFrequentlyUsedOptions(['Male', 'Female', 'N/A'], TRUE))
    +      ->setFrequentlyUsedOptions(new ListIntegerFrequentlyUsedOptions([
    +        'Male',
    +        'Female',
    +        'N/A',
    +      ], TRUE))
           ->execute();
         $this->fieldoryManager->getFieldoryInstance(FieldoryId::LIST_INTEGER)
           ->init($bundle, 'A LIST_INTEGER field 3')
    -      ->setFrequentlyUsedOptions(new ListIntegerFrequentlyUsedOptions(['Male', 'Female', 'N/A'], TRUE))
    +      ->setFrequentlyUsedOptions(new ListIntegerFrequentlyUsedOptions([
    +        'Male',
    +        'Female',
    +        'N/A',
    +      ], TRUE))
           ->setCardinality(-1)

    Lines are allowed to be longer than 81 characters, if they are more readable. The changed code is not more readable.

    -    // two fields in paragraph.
    +    // Two fields in paragraph.
         $paragraph_bundle = new FieldoryBundle(ParagraphsType::class, 'paragraph', 'A PARAGRAPH BUNDLE');
    -    // Add fields to paragraph
    +    // Add fields to paragraph.
         $this->fieldoryManager->getFieldoryInstance(FieldoryId::STRING)
           ->init($paragraph_bundle, 'STRING1')

    Instead of fixing those comments, it would be better to remove them, since they do not say anything that is already clear from the code.

        * @return \Drupal\Core\Extension\ModuleHandlerInterface
    +   *   Return.

    The short description for the return value does not start with Return.

    -   * @param $module_name
    +   * @param string $module_name
    +   *   The module_name.

    The short description is repeating the parameter name.

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

  • First commit to issue fork.
  • Status changed to Needs review 11 months ago
  • 🇮🇳India sakthi_dev

    Addressed comment in #5. Please review.

  • Status changed to Needs work 3 months ago
  • Hi @sakthi_dev,

    Applied the changes made on MR!1, it was applied smoothly but multiple files with an error were still reported. Please see below:

    ➜  fieldory git:(8.x-1.x) curl https://git.drupalcode.org/project/fieldory/-/merge_requests/1.diff | patch -p1
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 21702    0 21702    0     0  54027      0 --:--:-- --:--:-- --:--:-- 55081
    patching file README.md
    patching file fieldory_examples/src/Commands/FieldoryExamplesCommands.php
    patching file src/Annotation/Fieldory.php
    patching file src/Constants/FieldoryId.php
    patching file src/Exception/InvalidFieldoryException.php
    patching file src/Exception/InvalidFrequentlyUsedOptionsException.php
    patching file src/Exception/InvalidPropertyException.php
    patching file src/Exception/ModuleNotInstalledException.php
    patching file src/FieldoryBase.php
    patching file src/FieldoryBundle.php
    patching file src/FieldoryInterface.php
    patching file src/FieldoryManager.php
    patching file src/FrequentlyUsedOptions/BoolFrequentlyUsedOptions.php
    patching file src/FrequentlyUsedOptions/FloatFrequentlyUsedOptions.php
    patching file src/FrequentlyUsedOptions/IntegerFrequentlyUsedOptions.php
    patching file src/FrequentlyUsedOptions/ListIntegerFrequentlyUsedOptions.php
    patching file src/FrequentlyUsedOptions/ParagraphFrequentlyUsedOptions.php
    patching file src/FrequentlyUsedOptions/TermFrequentlyUsedOptions.php
    patching file src/FrequentlyUsedOptionsBase.php
    patching file src/Plugin/Fieldory/BoolField.php
    patching file src/Plugin/Fieldory/FloatField.php
    patching file src/Plugin/Fieldory/IntegerField.php
    patching file src/Plugin/Fieldory/ListIntegerField.php
    patching file src/Plugin/Fieldory/MonthYearField.php
    patching file src/Plugin/Fieldory/ParagraphField.php
    patching file src/Plugin/Fieldory/StringField.php
    patching file src/Plugin/Fieldory/TelephoneField.php
    patching file src/Plugin/Fieldory/TermField.php
    patching file src/Plugin/Fieldory/TextLongField.php
    ➜  fieldory git:(8.x-1.x) ✗ ..
    ➜  contrib git:(master) ✗ phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig fieldory
    
    FILE: ...trib/fieldory/src/FrequentlyUsedOptions/ParagraphFrequentlyUsedOptions.php
    --------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     7 | ERROR | [x] Use statements should be sorted alphabetically. The first
       |       |     wrong one is
       |       |     Drupal\fieldory\Exception\InvalidPropertyException.
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------
    
    
    FILE: ...s/contrib/fieldory/src/FrequentlyUsedOptions/BoolFrequentlyUsedOptions.php
    --------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     7 | ERROR | [x] Use statements should be sorted alphabetically. The first
       |       |     wrong one is
       |       |     Drupal\fieldory\Exception\InvalidPropertyException.
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------
    
    
    FILE: .../contrib/fieldory/src/FrequentlyUsedOptions/FloatFrequentlyUsedOptions.php
    --------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     6 | ERROR | [x] Use statements should be sorted alphabetically. The first
       |       |     wrong one is
       |       |     Drupal\fieldory\Exception\InvalidPropertyException.
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------
    
    
    FILE: ...ib/fieldory/src/FrequentlyUsedOptions/ListIntegerFrequentlyUsedOptions.php
    --------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     7 | ERROR | [x] Use statements should be sorted alphabetically. The first
       |       |     wrong one is
       |       |     Drupal\fieldory\Exception\InvalidPropertyException.
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------
    
    
    FILE: ...s/contrib/fieldory/src/FrequentlyUsedOptions/TermFrequentlyUsedOptions.php
    --------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     7 | ERROR | [x] Use statements should be sorted alphabetically. The first
       |       |     wrong one is
       |       |     Drupal\fieldory\Exception\InvalidPropertyException.
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------
    
    
    FILE: ...ontrib/fieldory/src/FrequentlyUsedOptions/IntegerFrequentlyUsedOptions.php
    --------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    --------------------------------------------------------------------------------
     6 | ERROR | [x] Use statements should be sorted alphabetically. The first
       |       |     wrong one is
       |       |     Drupal\fieldory\Exception\InvalidPropertyException.
    --------------------------------------------------------------------------------
    PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
    --------------------------------------------------------------------------------
    
    Time: 512ms; Memory: 12MB

    Kindly check

    Thanks,
    Jake

  • Pipeline finished with Failed
    3 months ago
    Total: 47s
    #255086
  • First commit to issue fork.
  • Assigned to akshaydalvi212
  • 🇮🇳India akshaydalvi212

    I had removed the indentation error in the Readme file.

  • Issue was unassigned.
  • Status changed to Needs review 3 months ago
Production build 0.71.5 2024