Fix the issues reported by phpcs

Created on 23 June 2022, over 2 years ago
Updated 1 May 2023, over 1 year ago

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\commerce_boncard.install
---------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 1 LINE
---------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\commerce_boncard.module
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
19 | ERROR | [x] Whitespace found at end of line
20 | ERROR | [x] No space found before comment text; expected "// "access boncard transaction overview" permission." but found "//"access boncard transaction overview" permission."
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Access\BoncardOperationAccessCheck.php
---------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\BoncardInterface.php
---------------------------------------------------------------------------------------
FOUND 17 ERRORS AFFECTING 11 LINES
---------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
242 | ERROR | [ ] Description for the @return value is missing
249 | ERROR | [ ] Missing parameter comment
249 | ERROR | [ ] Missing parameter type
258 | ERROR | [x] Expected "int" but found "integer" for function return type
258 | ERROR | [ ] Description for the @return value is missing
265 | ERROR | [ ] Missing parameter comment
265 | ERROR | [ ] Missing parameter type
274 | ERROR | [ ] Description for the @return value is missing
281 | ERROR | [ ] Missing parameter comment
281 | ERROR | [ ] Missing parameter type
290 | ERROR | [ ] Description for the @return value is missing
297 | ERROR | [ ] Missing parameter comment
297 | ERROR | [ ] Missing parameter type
306 | ERROR | [ ] Description for the @return value is missing
313 | ERROR | [ ] Missing parameter comment
313 | ERROR | [ ] Missing parameter type
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\BoncardOrderProcessor.php
--------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
26 | ERROR | [ ] Missing short description in doc comment
31 | ERROR | [ ] Parameter $entity_type_manager is not described in comment
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\BoncardStorage.php
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\BoncardStorageInterface.php
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Client\BoncardClient.php
-------------------------------------------------------------------------------------------------------------------------
FOUND 74 ERRORS AND 5 WARNINGS AFFECTING 55 LINES
-------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
18 | ERROR | [x] Missing class doc comment
27 | ERROR | [ ] Missing short description in doc comment
32 | ERROR | [ ] Missing short description in doc comment
44 | ERROR | [ ] Missing short description in doc comment
49 | ERROR | [ ] Missing short description in doc comment
54 | ERROR | [ ] Missing short description in doc comment
80 | ERROR | [ ] Parameter $entity_type_manager is not described in comment
80 | ERROR | [ ] Parameter $config_factory is not described in comment
80 | ERROR | [ ] Parameter $date_formatter is not described in comment
80 | ERROR | [ ] Parameter $minor_units_converter is not described in comment
80 | ERROR | [ ] Parameter $time is not described in comment
80 | ERROR | [ ] Parameter $logger is not described in comment
83 | ERROR | [ ] Missing parameter comment
84 | ERROR | [ ] Missing parameter comment
85 | ERROR | [ ] Missing parameter comment
110 | ERROR | [x] Missing function doc comment
127 | ERROR | [ ] Missing parameter comment
127 | ERROR | [ ] Missing parameter type
128 | ERROR | [ ] Missing parameter comment
128 | ERROR | [ ] Missing parameter type
129 | ERROR | [ ] Missing parameter comment
129 | ERROR | [ ] Missing parameter type
131 | ERROR | [ ] Description for the @return value is missing
154 | ERROR | [ ] Parameter $boncard is not described in comment
154 | ERROR | [ ] Parameter $amount is not described in comment
154 | ERROR | [ ] Parameter $trxId is not described in comment
155 | WARNING | [ ] Line exceeds 80 characters; contains 105 characters
156 | WARNING | [ ] Line exceeds 80 characters; contains 121 characters
156 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
158 | ERROR | [ ] Missing parameter comment
158 | ERROR | [ ] Doc comment for parameter $order does not match actual variable name $trxId
159 | ERROR | [ ] Missing parameter comment
159 | ERROR | [ ] Doc comment for parameter $payment_method does not match actual variable name $trxId
161 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
161 | ERROR | [ ] Description for the @return value is missing
197 | ERROR | [ ] Parameter $trxId is not described in comment
200 | ERROR | [ ] Missing parameter comment
201 | ERROR | [ ] Missing parameter comment
203 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
203 | ERROR | [ ] Description for the @return value is missing
204 | ERROR | [x] Separate the @return and @throws sections by a blank line.
235 | ERROR | [ ] Parameter $trxId is not described in comment
236 | WARNING | [ ] Line exceeds 80 characters; contains 106 characters
237 | WARNING | [ ] Line exceeds 80 characters; contains 108 characters
238 | ERROR | [ ] Doc comment short description must be on a single line, further text should be a separate paragraph
240 | ERROR | [ ] Missing parameter comment
241 | ERROR | [ ] Missing parameter comment
243 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
243 | ERROR | [ ] Description for the @return value is missing
244 | ERROR | [x] Separate the @return and @throws sections by a blank line.
287 | ERROR | [ ] Parameter $trxId is not described in comment
288 | WARNING | [ ] Line exceeds 80 characters; contains 90 characters
290 | ERROR | [ ] Missing parameter comment
292 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
292 | ERROR | [ ] Description for the @return value is missing
293 | ERROR | [x] Separate the @return and @throws sections by a blank line.
316 | ERROR | [x] Missing function doc comment
336 | ERROR | [ ] Parameter $card_value is not described in comment
339 | ERROR | [ ] Missing parameter comment
339 | ERROR | [ ] Missing parameter type
340 | ERROR | [ ] Missing parameter comment
340 | ERROR | [ ] Missing parameter type
341 | ERROR | [ ] Missing parameter comment
341 | ERROR | [ ] Missing parameter type
342 | ERROR | [ ] Missing parameter comment
342 | ERROR | [ ] Missing parameter type
344 | ERROR | [ ] Description for the @return value is missing
353 | ERROR | [x] Data types in @var tags need to be fully namespaced
373 | ERROR | [x] Data types in @var tags need to be fully namespaced
381 | ERROR | [ ] Parameter $payload is not described in comment
384 | ERROR | [ ] Missing parameter comment
384 | ERROR | [ ] Missing parameter type
386 | ERROR | [ ] Description for the @return value is missing
399 | ERROR | [ ] Missing parameter comment
399 | ERROR | [ ] Missing parameter type
400 | ERROR | [ ] Missing parameter comment
400 | ERROR | [ ] Missing parameter type
402 | ERROR | [ ] Description for the @return value is missing
-------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Client\BoncardErrors.php
-------------------------------------------------------------------------------------------
FOUND 5 ERRORS AFFECTING 5 LINES
-------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Missing class doc comment
7 | ERROR | [x] Missing function doc comment
65 | ERROR | [x] Missing function doc comment
107 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 5 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Client\BoncardException.php
----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\CommerceBoncardAccessControlHandler.php
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\CommerceBoncardListBuilder.php
-------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 1 WARNING AFFECTING 9 LINES
-------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
35 | ERROR | [ ] Missing short description in doc comment
50 | ERROR | [ ] Missing parameter comment
51 | ERROR | [ ] Missing parameter comment
52 | ERROR | [ ] Missing parameter comment
53 | ERROR | [ ] Missing parameter comment
54 | ERROR | [ ] Missing parameter comment
55 | ERROR | [ ] Missing parameter comment
141 | WARNING | [x] Inline @var declarations should use the /** */ delimiters
-------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\CommerceBoncardRouteProvider.php
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
36 | ERROR | [x] No space found before comment text; expected "// $route = new Route($entity_type->getLinkTemplate('canonical'));" but found "//$route = new Route($entity_type->getLinkTemplate('canonical'));"
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Entity\Boncard.php
-------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Event\BoncardEvent.php
-----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Event\BoncardEvents.php
------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
5 | ERROR | [x] Missing class doc comment
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\EventSubscriber\OrderEventSubscriber.php
-----------------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 1 WARNING AFFECTING 6 LINES
-----------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
28 | ERROR | [ ] Missing short description in doc comment
43 | ERROR | [ ] Missing parameter comment
44 | ERROR | [ ] Missing parameter comment
45 | ERROR | [ ] Missing parameter comment
85 | WARNING | [ ] Line exceeds 80 characters; contains 87 characters
-----------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Form\BoncardForm.php
---------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Form\BoncardOperationForm.php
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Form\BoncardSettingsForm.php
-----------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Form\SettingsForm.php
----------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Plugin\Commerce\CheckoutPane\BoncardProcess.php
------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AND 1 WARNING AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
28 | ERROR | [ ] Missing short description in doc comment
47 | ERROR | [ ] Parameter $client is not described in comment
145 | WARNING | [ ] Line exceeds 80 characters; contains 86 characters
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Plugin\Commerce\CheckoutPane\BoncardRedemption.php
---------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
---------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Plugin\Commerce\InlineForm\BoncardCancelForm.php
-------------------------------------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
-------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
21 | ERROR | [ ] Missing short description in doc comment
26 | ERROR | [ ] Parameter $client is not described in comment
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Plugin\Commerce\InlineForm\BoncardRedemption.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 17 ERRORS AFFECTING 15 LINES
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
35 | ERROR | [ ] Missing short description in doc comment
40 | ERROR | [ ] Missing short description in doc comment
45 | ERROR | [ ] Parameter $currency_formatter is not described in comment
48 | ERROR | [ ] Missing parameter comment
49 | ERROR | [ ] Missing parameter comment
49 | ERROR | [ ] Missing parameter type
50 | ERROR | [ ] Missing parameter comment
50 | ERROR | [ ] Missing parameter type
51 | ERROR | [ ] Missing parameter comment
52 | ERROR | [ ] Missing parameter comment
152 | ERROR | [x] 6 spaces found before inline comment; expected "// '#limit_validation_errors' => [['card_number']]," but found "// '#limit_validation_errors' => [['card_number']],"
169 | ERROR | [ ] Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
342 | ERROR | [ ] Missing short description in doc comment
343 | ERROR | [ ] Missing parameter comment
344 | ERROR | [ ] Missing parameter comment
346 | ERROR | [ ] Description for the @return value is missing
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\src\Plugin\Commerce\InlineForm\BoncardRefundForm.php
-------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------
1 | ERROR | [x] End of line character is invalid; expected "\n" but found "\r\n"
22 | ERROR | [ ] Missing short description in doc comment
27 | ERROR | [ ] Parameter $client is not described in comment
91 | ERROR | [x] Missing function doc comment
-------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------------------------------

FILE: C:\xampp\htdocs\test\web\modules\custom\commerce_boncard\translations\README.md
-------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-------------------------------------------------------------------------------------
4 | WARNING | Line exceeds 80 characters; contains 180 characters
5 | WARNING | Line exceeds 80 characters; contains 180 characters
6 | WARNING | Line exceeds 80 characters; contains 180 characters
-------------------------------------------------------------------------------------

📌 Task
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India Harsh panchal

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.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024