Fix the issues reported by phpcs

Created on 5 July 2023, 12 months ago
Updated 9 May 2024, about 1 month ago

Problem/Motivation
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/ParamConverter/ProcessorConverter.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Plugin\Exception\PluginNotFoundException.
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/ParamConverter/TransformerConverter.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Plugin\Exception\PluginNotFoundException.
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Repository/LanguagesRepository.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Repository/JsonRepositoryBase.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Extension\ModuleHandlerInterface.
31 | ERROR | [ ] Missing @var tag in member variable comment
36 | ERROR | [ ] Missing @var tag in member variable comment
41 | ERROR | [ ] Missing @var tag in member variable comment
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Repository/LanguagesISO639Repository.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [x] The closing brace for the class must have an empty line before it
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Repository/DocumentAiRegionsRepository.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Repository/OpenAiModelsRepository.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | Missing member variable doc comment
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Repository/ThemeRepository.php
-------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [ ] Missing member variable doc comment
12 | ERROR | [x] The closing brace for the class must have an empty line before it
-------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/OneTime/FilesForm.php
---------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------
15 | ERROR | Class property $document_ocr_processor should use lowerCamel naming without underscores
15 | ERROR | Missing member variable doc comment
18 | ERROR | Doc comment short description must start with a capital letter
---------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/OneTime/NewForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\FieldableEntityInterface.
54 | ERROR | [x] Expected 1 space(s) after cast statement; 0 found
111 | ERROR | [x] list(...) is forbidden, use [...] instead.
115 | ERROR | [x] Whitespace found at end of line
148 | WARNING | [ ] Unused variable $processor.
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/OneTime/MappingForm.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
-----------------------------------------------------------------------------------------------------------------------------
18 | ERROR | [ ] Doc comment short description must start with a capital letter
33 | ERROR | [x] There should be no white space before a closing ")"
44 | WARNING | [x] A comma should follow the last multiline array item. Found: )
50 | ERROR | [x] list(...) is forbidden, use [...] instead.
58 | WARNING | [x] A comma should follow the last multiline array item. Found: )
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/OneTime/BaseOneTimeForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\document_ocr\DocumentOcrInterface.
12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
15 | ERROR | [ ] Class property $temporary_storage_key should use lowerCamel naming without underscores
15 | ERROR | [ ] Missing member variable doc comment
16 | ERROR | [ ] Class property $step_routes should use lowerCamel naming without underscores
16 | ERROR | [ ] Missing member variable doc comment
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Processor/BaseProcessorForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\document_ocr\DocumentOcrInterface.
14 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
17 | ERROR | [ ] Class property $temporary_storage_key should use lowerCamel naming without underscores
17 | ERROR | [ ] Missing member variable doc comment
18 | ERROR | [ ] Class property $step_routes should use lowerCamel naming without underscores
18 | ERROR | [ ] Missing member variable doc comment
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Processor/NewForm.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\FieldableEntityInterface.
7 | WARNING | [x] Unused use statement
21 | ERROR | [x] Expected 1 blank line after function; 0 found
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/BaseForm.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 9 WARNINGS AFFECTING 12 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeManagerInterface.
15 | WARNING | [x] Unused use statement
96 | ERROR | [ ] Missing @var tag in member variable comment
97 | ERROR | [ ] Class property $excluded_fields should use lowerCamel naming without underscores
173 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
178 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
197 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
202 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
221 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
226 | WARNING | [ ] t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
326 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
330 | WARNING | [ ] Unused variable $skip_template.
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Transformer/ConfigurationForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
37 | WARNING | [x] A comma should follow the last multiline array item. Found: '

'
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Transformer/BaseTransformerForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 4 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\document_ocr\DocumentOcrInterface.
14 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
17 | ERROR | [ ] Class property $temporary_storage_key should use lowerCamel naming without underscores
17 | ERROR | [ ] Missing member variable doc comment
18 | ERROR | [ ] Class property $step_routes should use lowerCamel naming without underscores
18 | ERROR | [ ] Missing member variable doc comment
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Transformer/NewForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\FieldableEntityInterface.
7 | WARNING | [x] Unused use statement
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Mapping/TemplateFileForm.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
16 | ERROR | Doc comment short description must start with a capital letter
----------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Mapping/BaseMappingForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\document_ocr\DocumentOcrInterface.
12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
15 | ERROR | [ ] Class property $temporary_storage_key should use lowerCamel naming without underscores
15 | ERROR | [ ] Missing member variable doc comment
16 | ERROR | [ ] Class property $step_routes should use lowerCamel naming without underscores
16 | ERROR | [ ] Missing member variable doc comment
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Mapping/NewForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 6 ERRORS AND 1 WARNING AFFECTING 7 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\FieldableEntityInterface.
57 | ERROR | [x] Expected 1 space(s) after cast statement; 0 found
87 | ERROR | [x] list(...) is forbidden, use [...] instead.
92 | ERROR | [x] Whitespace found at end of line
179 | WARNING | [ ] Unused variable $processor.
191 | ERROR | [x] list(...) is forbidden, use [...] instead.
192 | ERROR | [x] list(...) is forbidden, use [...] instead.
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 6 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Mapping/MappingForm.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------
18 | ERROR | [ ] Doc comment short description must start with a capital letter
44 | WARNING | [x] A comma should follow the last multiline array item. Found: )
57 | WARNING | [x] A comma should follow the last multiline array item. Found: )
-----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Form/Mapping/SettingsForm.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | [ ] Doc comment short description must start with a capital letter
50 | WARNING | [x] A comma should follow the last multiline array item. Found: '

'
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Processor/EditForm.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | Class property $success_message should use lowerCamel naming without underscores
-----------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Processor/ConfigurationForm.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | Class property $success_message should use lowerCamel naming without underscores
--------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Processor/BaseForm.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\document_ocr\Plugin\ProcessorManager.
16 | ERROR | [ ] Missing short description in doc comment
33 | ERROR | [ ] Class property $success_message should use lowerCamel naming without underscores
62 | ERROR | [x] Expected 1 space after "=>"; 2 found
74 | WARNING | [ ] Only string literals should be passed to t() where possible
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Transformer/EditForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | Class property $success_message should use lowerCamel naming without underscores
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Transformer/ConfigurationForm.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
12 | ERROR | [ ] Missing short description in doc comment
20 | ERROR | [ ] Class property $success_message should use lowerCamel naming without underscores
43 | WARNING | [x] A comma should follow the last multiline array item. Found: '

'
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Transformer/BaseForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
------------------------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\document_ocr\Plugin\TransformerManager.
16 | ERROR | [ ] Missing short description in doc comment
33 | ERROR | [ ] Class property $success_message should use lowerCamel naming without underscores
62 | ERROR | [x] Expected 1 space after "=>"; 2 found
74 | WARNING | [ ] Only string literals should be passed to t() where possible
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Mapping/EditForm.php
----------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
----------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\FieldableEntityInterface.
16 | ERROR | [ ] Class property $success_message should use lowerCamel naming without underscores
45 | WARNING | [ ] Unused variable $processor.
52 | WARNING | [ ] Unused variable $entity_type_id.
57 | ERROR | [x] Expected 1 space(s) after cast statement; 0 found
82 | ERROR | [x] Whitespace found at end of line
----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Mapping/BaseForm.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 3 WARNINGS AFFECTING 10 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeBundleInfoInterface.
28 | ERROR | [ ] Class property $temporary_storage_key should use lowerCamel naming without underscores
28 | ERROR | [ ] Missing member variable doc comment
32 | ERROR | [ ] Missing @var tag in member variable comment
33 | ERROR | [ ] Class property $excluded_fields should use lowerCamel naming without underscores
35 | ERROR | [ ] Missing short description in doc comment
101 | ERROR | [ ] Class property $success_message should use lowerCamel naming without underscores
142 | ERROR | [x] Expected 1 space after "=>"; 2 found
154 | WARNING | [ ] Only string literals should be passed to t() where possible
202 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
206 | WARNING | [ ] Unused variable $skip_template.
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Mapping/MappingForm.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 2 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | [ ] Missing short description in doc comment
23 | ERROR | [ ] Class property $success_message should use lowerCamel naming without underscores
42 | WARNING | [x] A comma should follow the last multiline array item. Found: )
55 | WARNING | [x] A comma should follow the last multiline array item. Found: )
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Mapping/SettingsForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------------------------
12 | ERROR | [ ] Missing short description in doc comment
20 | ERROR | [ ] Class property $success_message should use lowerCamel naming without underscores
51 | WARNING | [x] A comma should follow the last multiline array item. Found: '

'
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Mapping/ProcessForm.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------
15 | ERROR | [ ] Class property $success_message should use lowerCamel naming without underscores
25 | WARNING | [x] A comma should follow the last multiline array item. Found: )
42 | WARNING | [x] A comma should follow the last multiline array item. Found: )
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Task/DeleteForm.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------
34 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over multiple lines
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Task/RestartForm.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------
17 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
20 | WARNING | [x] A comma should follow the last multiline array item. Found: '

'
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Task/BaseForm.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 2 WARNINGS AFFECTING 6 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\document_ocr\DocumentOcrInterface.
51 | WARNING | [ ] Only string literals should be passed to t() where possible
58 | WARNING | [ ] Only string literals should be passed to t() where possible
75 | ERROR | [ ] The array declaration extends to column 111 (the limit is 80). The array content should be split up over multiple lines
84 | ERROR | [ ] The array declaration extends to column 113 (the limit is 80). The array content should be split up over multiple lines
88 | ERROR | [ ] The array declaration extends to column 112 (the limit is 80). The array content should be split up over multiple lines
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Task/OlderEntitiesForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 3 LINES
---------------------------------------------------------------------------------------------------------------------------------------
12 | ERROR | Class property $form_id should use lowerCamel naming without underscores
12 | ERROR | Missing member variable doc comment
13 | ERROR | Missing member variable doc comment
14 | ERROR | Class property $confirm_text should use lowerCamel naming without underscores
14 | ERROR | Missing member variable doc comment
---------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Form/Task/ProcessForm.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------
17 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
20 | WARNING | [x] A comma should follow the last multiline array item. Found: '

'
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/Task.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 14 ERRORS AND 7 WARNINGS AFFECTING 15 LINES
----------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\ContentEntityBase.
185 | WARNING | [x] A comma should follow the last multiline array item. Found: )
191 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
345 | ERROR | [x] Case breaking statements must be followed by a single blank line
346 | WARNING | [ ] Code after the RETURN statement on line 345 cannot be executed
346 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
348 | ERROR | [x] Case breaking statements must be followed by a single blank line
349 | WARNING | [ ] Code after the RETURN statement on line 348 cannot be executed
349 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
351 | ERROR | [x] Case breaking statements must be followed by a single blank line
352 | WARNING | [ ] Code after the RETURN statement on line 351 cannot be executed
352 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
354 | ERROR | [x] Case breaking statements must be followed by a single blank line
355 | WARNING | [ ] Code after the RETURN statement on line 354 cannot be executed
355 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
358 | WARNING | [ ] Code after the RETURN statement on line 357 cannot be executed
358 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
409 | ERROR | [x] Line indented incorrectly; expected 6 spaces, found 4
409 | ERROR | [x] Object operator not indented correctly; expected 6 spaces but found 4
468 | ERROR | [x] Object operator not indented correctly; expected 8 spaces but found 10
499 | ERROR | [x] Object operator not indented correctly; expected 8 spaces but found 10
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 16 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Entity/ViewsData/Task.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
----------------------------------------------------------------------------------------------------------------------------
21 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
29 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
37 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
45 | ERROR | [x] Inline comments must end in full-stops, exclamation marks, question marks, colons, or closing parentheses
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/MicrosoftTranslate.php
-------------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 10 WARNINGS AFFECTING 14 LINES
-------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
10 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
50 | WARNING | [x] A comma should follow the last multiline array item. Found: 'GET'
51 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
60 | WARNING | [x] A comma should follow the last multiline array item. Found: version
75 | ERROR | [ ] String concat is not required here; use a single string instead
78 | ERROR | [x] Expected 1 space after ".="; 0 found
81 | ERROR | [x] Expected 1 space after ".="; 0 found
87 | WARNING | [x] A comma should follow the last multiline array item. Found: $content
88 | WARNING | [x] A comma should follow the last multiline array item. Found: ]
116 | ERROR | [x] Whitespace found at end of line
122 | WARNING | [ ] Line exceeds 80 characters; contains 97 characters
123 | WARNING | [ ] Line exceeds 80 characters; contains 84 characters
-------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/Module.php
--------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 1 WARNING AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------------
8 | WARNING | [x] Unused use statement
55 | ERROR | [ ] Public method name "Module::preprocess_progressbar" is not in lowerCamel format
72 | ERROR | [ ] Public method name "Module::entity_insert" is not in lowerCamel format
79 | ERROR | [ ] Public method name "Module::entity_update" is not in lowerCamel format
86 | ERROR | [ ] Public method name "Module::entity_delete" is not in lowerCamel format
--------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/BaseService.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 1 WARNING AFFECTING 10 LINES
------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
30 | ERROR | [x] Whitespace found at end of line
31 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
32 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
33 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
34 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
35 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
40 | ERROR | [ ] Missing @var tag in member variable comment
45 | ERROR | [ ] Missing @var tag in member variable comment
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/GoogleBase.php
------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------
7 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
15 | ERROR | Class property $project_id should use lowerCamel naming without underscores
------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/Batch.php
-------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------
129 | ERROR | [x] Use "elseif" in place of "else if"
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/GoogleTextToSpeech.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
11 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Google\Cloud\TextToSpeech\V1\SsmlVoiceGender.
15 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
58 | ERROR | [x] Whitespace found at end of line
-----------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/GoogleDocumentAi.php
-----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 9 WARNINGS AFFECTING 12 LINES
-----------------------------------------------------------------------------------------------------------------------------------------------
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Google\Cloud\DocumentAI\V1\ProcessorVersion\State.
15 | WARNING | [x] Unused use statement
18 | WARNING | [x] Unused use statement
30 | ERROR | [ ] Class property $processor_params should use lowerCamel naming without underscores
96 | WARNING | [x] A comma should follow the last multiline array item. Found: $location_id
128 | WARNING | [x] A comma should follow the last multiline array item. Found: $processor_id
187 | WARNING | [x] A comma should follow the last multiline array item. Found: $rawDocument
220 | WARNING | [x] A comma should follow the last multiline array item. Found: $gcs_documents
228 | WARNING | [x] A comma should follow the last multiline array item. Found: )
230 | ERROR | [x] Whitespace found at end of line
263 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
331 | WARNING | [ ] \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/Process.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 5 WARNINGS AFFECTING 13 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityFieldManager.
47 | ERROR | [ ] Missing @var tag in member variable comment
53 | ERROR | [x] Expected 1 space between comma and type hint "ProcessorManager"; 2 found
53 | ERROR | [x] Expected one space after the comma, 2 found
201 | ERROR | [x] No space found before comment text; expected "// ->resetAttempts()" but found "//->resetAttempts()"
221 | WARNING | [ ] Unused variable $settings.
239 | ERROR | [ ] The array declaration extends to column 111 (the limit is 80). The array content should be split up over multiple lines
248 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
289 | ERROR | [x] list(...) is forbidden, use [...] instead.
299 | WARNING | [ ] Line exceeds 80 characters; contains 94 characters
341 | ERROR | [x] list(...) is forbidden, use [...] instead.
370 | WARNING | [x] A comma should follow the last multiline array item. Found: )
432 | WARNING | [ ] Line exceeds 80 characters; contains 101 characters
438 | ERROR | [x] Use "elseif" in place of "else if"
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/OpenAi.php
--------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
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: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Services/GoogleTranslate.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 4 WARNINGS AFFECTING 5 LINES
--------------------------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
6 | WARNING | [x] Unused use statement
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
12 | WARNING | [ ] The class short comment should describe what the class does and not simply repeat the class name
55 | ERROR | [ ] The array declaration extends to column 101 (the limit is 80). The array content should be split up over multiple lines
64 | WARNING | [x] A comma should follow the last multiline array item. Found: location
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Controller/TaskListBuilder.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Serialization\Json.
29 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Controller/MappingListBuilder.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 4 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------------------------------------------------------------------
7 | WARNING | [x] Unused use statement
8 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Serialization\Json.
92 | WARNING | [ ] Unused variable $processor.
148 | WARNING | [ ] Line exceeds 80 characters; contains 89 characters
152 | WARNING | [ ] Unused variable $skip_template.
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Controller/HelperController.php
----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Messenger\MessengerInterface.
----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Controller/ProcessorListBuilder.php
------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Serialization\Json.
39 | WARNING | [x] A comma should follow the last multiline array item. Found: )
81 | ERROR | [x] There should be no white space after an opening "("
------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Controller/TransformerListBuilder.php
--------------------------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
--------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Serialization\Json.
37 | WARNING | [ ] Unused variable $types.
39 | ERROR | [ ] join() is a function name alias, use implode() instead
84 | ERROR | [x] There should be no white space after an opening "("
--------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/views/field/File.php
-----------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Render\FormattableMarkup.
-----------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/TransformerInterface.php
--------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------
31 | ERROR | [x] Expected 1 blank line after function; 2 found
--------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/ProcessorInterface.php
-------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Component\Plugin\PluginInspectionInterface.
-------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/ProcessorBase.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 12 ERRORS AND 2 WARNINGS AFFECTING 14 LINES
---------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
48 | ERROR | [x] Whitespace found at end of line
49 | ERROR | [x] Line indented incorrectly; expected 2 spaces, found 3
50 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
51 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
52 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
53 | ERROR | [x] Expected 4 space(s) before asterisk; 3 found
56 | ERROR | [ ] Missing member variable doc comment
57 | ERROR | [ ] Missing member variable doc comment
58 | ERROR | [ ] Missing member variable doc comment
59 | ERROR | [ ] Missing member variable doc comment
60 | ERROR | [ ] Missing member variable doc comment
268 | WARNING | [ ] Empty return statement not required here
275 | WARNING | [ ] Empty return statement not required here
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/transformer/MicrosoftTranslate.php
-------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeManagerInterface.
116 | ERROR | [ ] join() is a function name alias, use implode() instead
-------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/transformer/Basic.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AND 3 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------------------------
24 | ERROR | [x] Expected 1 space after "="; 2 found
32 | WARNING | [ ] Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
36 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
130 | ERROR | [x] Case breaking statements must be followed by a single blank line
133 | ERROR | [x] Case breaking statements must be followed by a single blank line
136 | WARNING | [ ] Code after the RETURN statement on line 135 cannot be executed
136 | ERROR | [x] Line indented incorrectly; expected 8 spaces, found 10
------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/transformer/Truncate.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
---------------------------------------------------------------------------------------------------------------------------------------------
25 | ERROR | [x] Expected 1 space after "="; 2 found
42 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
---------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/transformer/OpenAiCompletions.php
------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeManagerInterface.
------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/transformer/GoogleTextToSpeech.php
-------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeManagerInterface.
9 | WARNING | [x] Unused use statement
79 | WARNING | [ ] Unused variable $triggering_element.
192 | WARNING | [ ] Unused variable $voice_type.
-------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/transformer/Pipeline.php
---------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------
34 | ERROR | The array declaration extends to column 99 (the limit is 80). The array content should be split up over multiple lines
34 | ERROR | The array declaration extends to column 98 (the limit is 80). The array content should be split up over multiple lines
---------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/transformer/GoogleTranslate.php
----------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Entity\EntityTypeManagerInterface.
9 | WARNING | [x] Unused use statement
113 | ERROR | [ ] join() is a function name alias, use implode() instead
----------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/processor/PDFparser.php
--------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\document_ocr\Plugin\ProcessorBase.
--------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/processor/OpenAiAudio.php
----------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\File\FileSystemInterface.
137 | WARNING | [ ] Avoid backslash escaping in translatable strings when possible, use "" quotes instead
164 | WARNING | [ ] Line exceeds 80 characters; contains 115 characters
----------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/document_ocr/processor/GoogleDocumentAI.php
---------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 2 WARNINGS AFFECTING 8 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\File\FileSystemInterface.
128 | ERROR | [x] list(...) is forbidden, use [...] instead.
128 | WARNING | [ ] Unused variable $pname.
135 | ERROR | [x] Concat operator must be surrounded by a single space
195 | ERROR | [x] list(...) is forbidden, use [...] instead.
203 | ERROR | [x] Concat operator must be surrounded by a single space
254 | ERROR | [x] list(...) is forbidden, use [...] instead.
254 | WARNING | [ ] Unused variable $processor_default_version.
273 | ERROR | [x] Each PHP statement must be on a line by itself
278 | ERROR | [x] Object operator not indented correctly; expected 10 spaces but found 12
---------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/ProcessorManager.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/TransformerBase.php
------------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------------------
7 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Form\FormStateInterface.
25 | ERROR | [ ] Missing member variable doc comment
26 | ERROR | [ ] Missing member variable doc comment
27 | ERROR | [ ] Class property $mapping_data should use lowerCamel naming without underscores
27 | ERROR | [ ] Missing member variable doc comment
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Plugin/TransformerManager.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------
6 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Cache\CacheBackendInterface.
---------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/DocumentOcrInterface.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------------------------------------
66 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
67 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
68 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
69 | ERROR | [x] Array indentation error, expected 4 spaces but found 6
70 | ERROR | [x] Array closing indentation error, expected 2 spaces but found 4
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/src/Traits/CustomValueTrait.php
----------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
----------------------------------------------------------------------------------------------------------------------------
5 | WARNING | [x] Unused use statement
32 | ERROR | [x] Use "elseif" in place of "else if"
38 | ERROR | [x] Use "elseif" in place of "else if"
----------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/document_ocr.module
----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
----------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/document_ocr.info.yml
------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------
1 | WARNING | Remove "project" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "datestamp" from the info file, it will be added by drupal.org packaging automatically
1 | WARNING | Remove "version" from the info file, it will be added by drupal.org packaging automatically
------------------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/README.md
------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 13 WARNINGS AFFECTING 13 LINES
------------------------------------------------------------------------------------------------------
52 | WARNING | Line exceeds 80 characters; contains 97 characters
55 | WARNING | Line exceeds 80 characters; contains 121 characters
56 | WARNING | Line exceeds 80 characters; contains 81 characters
64 | WARNING | Line exceeds 80 characters; contains 81 characters
76 | WARNING | Line exceeds 80 characters; contains 98 characters
77 | WARNING | Line exceeds 80 characters; contains 82 characters
83 | WARNING | Line exceeds 80 characters; contains 100 characters
84 | WARNING | Line exceeds 80 characters; contains 106 characters
88 | WARNING | Line exceeds 80 characters; contains 100 characters
89 | WARNING | Line exceeds 80 characters; contains 109 characters
93 | WARNING | Line exceeds 80 characters; contains 109 characters
119 | WARNING | Line exceeds 80 characters; contains 101 characters
120 | WARNING | Line exceeds 80 characters; contains 105 characters
------------------------------------------------------------------------------------------------------

FILE: /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17/document_ocr/assets/admin.css
-------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------------------------------
103 | ERROR | [x] There must be no space before a colon in a style definition
122 | ERROR | [x] There must be no space before a colon in a style definition
-------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------

Steps to reproduce
Run this command phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml,twig /var/www/html/VB/drupal-10.1.0/modules/contrib/document_ocr-1.0.0-alpha17

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India Indra patil Bangalore

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 @Indra patil
  • @indrapatil opened merge request.
  • Issue was unassigned.
  • Status changed to Needs work 12 months ago
  • 🇮🇳India Indra patil Bangalore

    I fixed some still issues are there to fix no moving to needs work.

  • 🇺🇸United States minnur San Francisco

    Keep in mind this module is in alpha and many things keep changing and some things getting removed.
    I would come back to this when in beta or even better when in RC (release candidate).

  • It would be helpful to merge this now that the project is in RC1 :)

  • First commit to issue fork.
  • 🇮🇳India sakthi_dev

    Resolved the conflicts. Please review.

  • Assigned to Nima Wangdi
  • Issue was unassigned.
  • 🇧🇹Bhutan Nima Wangdi

    Thanks buddy for the MR. I have applied the MR and some facing issue are fixed and some are not.

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/Transformer/BaseTransformerForm.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AND 1 WARNING AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------------------
    14 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    17 | ERROR | Missing member variable doc comment
    17 | ERROR | Class property $temporary_storage_key should use lowerCamel naming without underscores
    18 | ERROR | Missing member variable doc comment
    18 | ERROR | Class property $step_routes should use lowerCamel naming without underscores
    -----------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/Mapping/NewForm.php
    ------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------
    179 | WARNING | Unused variable $processor.
    ------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/Mapping/TemplateFileForm.php
    ---------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------
    16 | ERROR | Doc comment short description must start with a capital letter
    ---------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/Mapping/SettingsForm.php
    -----------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------
    15 | ERROR | Doc comment short description must start with a capital letter
    -----------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/Mapping/MappingForm.php
    ----------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------
    18 | ERROR | Doc comment short description must start with a capital letter
    ----------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/Mapping/BaseMappingForm.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AND 1 WARNING AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------------------
    12 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    15 | ERROR | Missing member variable doc comment
    15 | ERROR | Class property $temporary_storage_key should use lowerCamel naming without underscores
    16 | ERROR | Missing member variable doc comment
    16 | ERROR | Class property $step_routes should use lowerCamel naming without underscores
    -----------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/BaseForm.php
    ------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 8 WARNINGS AFFECTING 10 LINES
    ------------------------------------------------------------------------------------------------------------------------------------------
    95 | ERROR | Missing @var tag in member variable comment
    96 | ERROR | Class property $excluded_fields should use lowerCamel naming without underscores
    172 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    177 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    196 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    201 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    220 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    225 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
    325 | WARNING | Line exceeds 80 characters; contains 89 characters
    329 | WARNING | Unused variable $skip_template.
    ------------------------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/Processor/BaseProcessorForm.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AND 1 WARNING AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------------------
    14 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    17 | ERROR | Missing member variable doc comment
    17 | ERROR | Class property $temporary_storage_key should use lowerCamel naming without underscores
    18 | ERROR | Missing member variable doc comment
    18 | ERROR | Class property $step_routes should use lowerCamel naming without underscores
    -----------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/OneTime/BaseOneTimeForm.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AND 1 WARNING AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------------------
    12 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    15 | ERROR | Missing member variable doc comment
    15 | ERROR | Class property $temporary_storage_key should use lowerCamel naming without underscores
    16 | ERROR | Missing member variable doc comment
    16 | ERROR | Class property $step_routes should use lowerCamel naming without underscores
    -----------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/OneTime/NewForm.php
    ------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------
    148 | WARNING | Unused variable $processor.
    ------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/OneTime/FilesForm.php
    ------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------
    15 | ERROR | Missing member variable doc comment
    15 | ERROR | Class property $document_ocr_processor should use lowerCamel naming without underscores
    18 | ERROR | Doc comment short description must start with a capital letter
    ------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Form/OneTime/MappingForm.php
    ----------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------
    18 | ERROR | Doc comment short description must start with a capital letter
    ----------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Transformer/BaseForm.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
    ------------------------------------------------------------------------------------------------------------
    16 | ERROR | Missing short description in doc comment
    33 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    74 | WARNING | Only string literals should be passed to t() where possible
    ------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Transformer/ConfigurationForm.php
    ---------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ---------------------------------------------------------------------------------------------------------------------
    12 | ERROR | Missing short description in doc comment
    20 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    ---------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Transformer/EditForm.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------
    15 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    ------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Mapping/BaseForm.php
    --------------------------------------------------------------------------------------------------------
    FOUND 6 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
    --------------------------------------------------------------------------------------------------------
    28 | ERROR | Missing member variable doc comment
    28 | ERROR | Class property $temporary_storage_key should use lowerCamel naming without underscores
    32 | ERROR | Missing @var tag in member variable comment
    33 | ERROR | Class property $excluded_fields should use lowerCamel naming without underscores
    35 | ERROR | Missing short description in doc comment
    101 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    154 | WARNING | Only string literals should be passed to t() where possible
    202 | WARNING | Line exceeds 80 characters; contains 89 characters
    206 | WARNING | Unused variable $skip_template.
    --------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Mapping/ProcessForm.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------
    15 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    -----------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Mapping/SettingsForm.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------
    12 | ERROR | Missing short description in doc comment
    20 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    ------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Mapping/MappingForm.php
    -----------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 2 LINES
    -----------------------------------------------------------------------------------------------------------
    15 | ERROR | Missing short description in doc comment
    23 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    -----------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Mapping/EditForm.php
    --------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
    --------------------------------------------------------------------------------------------------------
    16 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    45 | WARNING | Unused variable $processor.
    52 | WARNING | Unused variable $entity_type_id.
    --------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Processor/BaseForm.php
    ----------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
    ----------------------------------------------------------------------------------------------------------
    16 | ERROR | Missing short description in doc comment
    33 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    74 | WARNING | Only string literals should be passed to t() where possible
    ----------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Processor/ConfigurationForm.php
    -------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------
    15 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    -------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Processor/EditForm.php
    ----------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------
    15 | ERROR | Class property $success_message should use lowerCamel naming without underscores
    ----------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Task/OlderEntitiesForm.php
    --------------------------------------------------------------------------------------------------------------
    FOUND 5 ERRORS AFFECTING 3 LINES
    --------------------------------------------------------------------------------------------------------------
    12 | ERROR | Missing member variable doc comment
    12 | ERROR | Class property $form_id should use lowerCamel naming without underscores
    13 | ERROR | Missing member variable doc comment
    14 | ERROR | Missing member variable doc comment
    14 | ERROR | Class property $confirm_text should use lowerCamel naming without underscores
    --------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Task/BaseForm.php
    ----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AND 2 WARNINGS AFFECTING 5 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------
    51 | WARNING | Only string literals should be passed to t() where possible
    58 | WARNING | Only string literals should be passed to t() where possible
    75 | ERROR | The array declaration extends to column 111 (the limit is 80). The array content should be split up over multiple lines
    84 | ERROR | The array declaration extends to column 113 (the limit is 80). The array content should be split up over multiple lines
    88 | ERROR | The array declaration extends to column 112 (the limit is 80). The array content should be split up over multiple lines
    ----------------------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Form/Task/DeleteForm.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------
    34 | ERROR | The array declaration extends to column 84 (the limit is 80). The array content should be split up over multiple lines
    -------------------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Entity/Task.php
    ---------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
    ---------------------------------------------------------------------------------------
    347 | WARNING | Code after the RETURN statement on line 345 cannot be executed
    351 | WARNING | Code after the RETURN statement on line 349 cannot be executed
    355 | WARNING | Code after the RETURN statement on line 353 cannot be executed
    359 | WARNING | Code after the RETURN statement on line 357 cannot be executed
    362 | WARNING | Code after the RETURN statement on line 361 cannot be executed
    ---------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/document_ocr/processor/OpenAiAudio.php
    ---------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ---------------------------------------------------------------------------------------------------------------------
    137 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
    164 | WARNING | Line exceeds 80 characters; contains 115 characters
    ---------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/document_ocr/processor/GoogleDocumentAI.php
    --------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    --------------------------------------------------------------------------------------------------------------------------
    128 | WARNING | Unused variable $pname.
    254 | WARNING | Unused variable $processor_default_version.
    --------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/document_ocr/transformer/GoogleTextToSpeech.php
    ------------------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
    ------------------------------------------------------------------------------------------------------------------------------
    78 | WARNING | Unused variable $triggering_element.
    191 | WARNING | Unused variable $voice_type.
    ------------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/document_ocr/transformer/MicrosoftTranslate.php
    ------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------------------
    116 | ERROR | join() is a function name alias, use implode() instead
    ------------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/document_ocr/transformer/GoogleTranslate.php
    ---------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------
    112 | ERROR | join() is a function name alias, use implode() instead
    ---------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/document_ocr/transformer/Truncate.php
    --------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------------------
    42 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
    --------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/document_ocr/transformer/Pipeline.php
    -------------------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------------------------------
    34 | ERROR | The array declaration extends to column 99 (the limit is 80). The array content should be split up over multiple lines
    34 | ERROR | The array declaration extends to column 98 (the limit is 80). The array content should be split up over multiple lines
    -------------------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/document_ocr/transformer/Basic.php
    -----------------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------------------------
    32 | WARNING | Translatable strings must not begin or end with white spaces, use placeholders with t() for variables
    36 | WARNING | Avoid backslash escaping in translatable strings when possible, use "" quotes instead
    138 | WARNING | Code after the RETURN statement on line 137 cannot be executed
    -----------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/ProcessorBase.php
    ------------------------------------------------------------------------------------------------
    FOUND 5 ERRORS AND 2 WARNINGS AFFECTING 7 LINES
    ------------------------------------------------------------------------------------------------
    56 | ERROR | Missing member variable doc comment
    57 | ERROR | Missing member variable doc comment
    58 | ERROR | Missing member variable doc comment
    59 | ERROR | Missing member variable doc comment
    60 | ERROR | Missing member variable doc comment
    268 | WARNING | Empty return statement not required here
    275 | WARNING | Empty return statement not required here
    ------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Plugin/TransformerBase.php
    --------------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 3 LINES
    --------------------------------------------------------------------------------------------------
    25 | ERROR | Missing member variable doc comment
    26 | ERROR | Missing member variable doc comment
    27 | ERROR | Missing member variable doc comment
    27 | ERROR | Class property $mapping_data should use lowerCamel naming without underscores
    --------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Controller/MappingListBuilder.php
    ---------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
    ---------------------------------------------------------------------------------------------------------
    96 | WARNING | Unused variable $processor.
    153 | WARNING | Line exceeds 80 characters; contains 89 characters
    157 | WARNING | Unused variable $skip_template.
    ---------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Controller/TransformerListBuilder.php
    -------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    -------------------------------------------------------------------------------------------------------------
    37 | WARNING | Unused variable $types.
    39 | ERROR | join() is a function name alias, use implode() instead
    -------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Services/Process.php
    -----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 4 WARNINGS AFFECTING 6 LINES
    -----------------------------------------------------------------------------------------------------------------------------------------
    53 | ERROR | Missing @var tag in member variable comment
    239 | WARNING | Unused variable $settings.
    257 | ERROR | The array declaration extends to column 111 (the limit is 80). The array content should be split up over multiple lines
    266 | WARNING | Line exceeds 80 characters; contains 86 characters
    317 | WARNING | Line exceeds 80 characters; contains 94 characters
    458 | WARNING | Line exceeds 80 characters; contains 101 characters
    -----------------------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Services/GoogleDocumentAi.php
    -----------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------
    28 | ERROR | Class property $processor_params should use lowerCamel naming without underscores
    274 | WARNING | Line exceeds 80 characters; contains 87 characters
    342 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
    -----------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Services/GoogleTextToSpeech.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -----------------------------------------------------------------------------------------------------------------
    15 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    -----------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Services/Module.php
    ----------------------------------------------------------------------------------------------
    FOUND 4 ERRORS AFFECTING 4 LINES
    ----------------------------------------------------------------------------------------------
    54 | ERROR | Public method name "Module::preprocess_progressbar" is not in lowerCamel format
    71 | ERROR | Public method name "Module::entity_insert" is not in lowerCamel format
    78 | ERROR | Public method name "Module::entity_update" is not in lowerCamel format
    85 | ERROR | Public method name "Module::entity_delete" is not in lowerCamel format
    ----------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Services/MicrosoftTranslate.php
    ------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
    ------------------------------------------------------------------------------------------------------------------
    7 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    72 | ERROR | String concat is not required here; use a single string instead
    119 | WARNING | Line exceeds 80 characters; contains 97 characters
    120 | WARNING | Line exceeds 80 characters; contains 84 characters
    ------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Services/GoogleTranslate.php
    ----------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    ----------------------------------------------------------------------------------------------------------------------------------------
    10 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    53 | ERROR | The array declaration extends to column 101 (the limit is 80). The array content should be split up over multiple lines
    ----------------------------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Services/GoogleBase.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
    -----------------------------------------------------------------------------------------------------------------
    7 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    15 | ERROR | Class property $project_id should use lowerCamel naming without underscores
    -----------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Services/OpenAi.php
    ----------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------
    7 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    ----------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Services/BaseService.php
    -----------------------------------------------------------------------------------------------------------------
    FOUND 2 ERRORS AND 1 WARNING AFFECTING 3 LINES
    -----------------------------------------------------------------------------------------------------------------
    12 | WARNING | The class short comment should describe what the class does and not simply repeat the class name
    40 | ERROR | Missing @var tag in member variable comment
    45 | ERROR | Missing @var tag in member variable comment
    -----------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Repository/JsonRepositoryBase.php
    ---------------------------------------------------------------------------------------------------------
    FOUND 3 ERRORS AFFECTING 3 LINES
    ---------------------------------------------------------------------------------------------------------
    31 | ERROR | Missing @var tag in member variable comment
    36 | ERROR | Missing @var tag in member variable comment
    41 | ERROR | Missing @var tag in member variable comment
    ---------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Repository/DocumentAiRegionsRepository.php
    ------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------------------
    11 | ERROR | Missing member variable doc comment
    ------------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Repository/ThemeRepository.php
    ------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ------------------------------------------------------------------------------------------------------
    11 | ERROR | Missing member variable doc comment
    ------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Repository/OpenAiModelsRepository.php
    -------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------
    11 | ERROR | Missing member variable doc comment
    -------------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Repository/LanguagesRepository.php
    ----------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------
    11 | ERROR | Missing member variable doc comment
    ----------------------------------------------------------------------------------------------------------

    FILE: /home/nima/drupal@contrib/drupal/modules/contrib/document_ocr/src/Repository/LanguagesISO639Repository.php
    ----------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AFFECTING 1 LINE
    ----------------------------------------------------------------------------------------------------------------
    11 | ERROR | Missing member variable doc comment
    ------------------------------------------------

  • Status changed to Needs review 9 months ago
  • 🇮🇳India Amit.Rawat777

    I have fixed some issues, please review.

  • Status changed to Needs work 3 months ago
  • Patch #10 applied successfully. But it won't fixes all the mentioned phpcs issues.
    So changing the status to Needs work.
    Thankyou.

  • Resolved some phpcs issues in the above patch.

Production build 0.69.0 2024