Fix the issues reported by phpcs

Created on 28 November 2023, 10 months ago
Updated 28 December 2023, 9 months ago

ฮป phpcs --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml J:/laragon/www/Yucatanis/web/modules/contrib/active_campaign_api_integration

FILE: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\active_campaign_api_integration.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: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\active_campaign_api_integration.module
-------------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
-------------------------------------------------------------------------------------------------------------------------
97 | ERROR | If there is no return value for a function, there must not be a @return tag.
127 | ERROR | If there is no return value for a function, there must not be a @return tag.
142 | ERROR | If there is no return value for a function, there must not be a @return tag.
156 | ERROR | If there is no return value for a function, there must not be a @return tag.
-------------------------------------------------------------------------------------------------------------------------

FILE: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\README.md
--------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------------------------
37 | WARNING | Line exceeds 80 characters; contains 99 characters
39 | WARNING | Line exceeds 80 characters; contains 97 characters
--------------------------------------------------------------------------------------------

FILE: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\src\Controller\ListingForm.php
-----------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------
113 | ERROR | If there is no return value for a function, there must not be a @return tag.
-----------------------------------------------------------------------------------------------------------------

FILE: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\src\Form\ActiveCampaignForm.php
------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------------------------
106 | ERROR | If there is no return value for a function, there must not be a @return tag.
131 | ERROR | If there is no return value for a function, there must not be a @return tag.
------------------------------------------------------------------------------------------------------------------

FILE: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\src\Form\MapperForm.php
----------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------------------------------------------
145 | ERROR | If there is no return value for a function, there must not be a @return tag.
----------------------------------------------------------------------------------------------------------

FILE: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\src\Form\MapperFormAttachment.php
--------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
--------------------------------------------------------------------------------------------------------------------
122 | ERROR | If there is no return value for a function, there must not be a @return tag.
--------------------------------------------------------------------------------------------------------------------

FILE: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\src\Form\MapperFormRegistration.php
----------------------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------------------
140 | ERROR | If there is no return value for a function, there must not be a @return tag.
160 | ERROR | If there is no return value for a function, there must not be a @return tag.
----------------------------------------------------------------------------------------------------------------------

FILE: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\src\Form\TargetForm.php
----------------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------------------------------------------
98 | ERROR | If there is no return value for a function, there must not be a @return tag.
121 | ERROR | If there is no return value for a function, there must not be a @return tag.
----------------------------------------------------------------------------------------------------------

FILE: J:\laragon\www\Yucatanis\web\modules\contrib\active_campaign_api_integration\src\Plugin\TypeApiCalling.php
------------------------------------------------------------------------------------------------------------------
FOUND 4 ERRORS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------------------------
23 | ERROR | [x] Expected "arrayApitokens" but found "array Api tokens" for @var tag in member variable comment
44 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
173 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
229 | ERROR | [ ] If there is no return value for a function, there must not be a @return tag.
------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------

๐Ÿ“Œ Task
Status

Fixed

Version

1.1

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia kishan@lnwebworks

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024