/
[Custom] Fixing coding standards [5.2.1-RC1]

[Custom] Fixing coding standards [5.2.1-RC1]

The "Custom" (Development Kit) module is base for every new project and it is crucial that it must not contain any PHP_CodeSniffer violations.

Here is current error report:

PHP CODE SNIFFER REPORT SUMMARY
--------------------------------------------------------------------------------
FILE                                                            ERRORS  WARNINGS
--------------------------------------------------------------------------------
.../modules/custom/units/helpers/sample_helper.php              5       0
.../modules/custom/units/helpers/helpers_config.php             11      0
.../modules/custom/units/widgets/widget_tp.php                  42      0
.../modules/custom/units/widgets/widgets_config.php             166     9
.../modules/custom/units/widgets/widget_eh.php                  132     13
.../modules/custom/units/sections/products/e_product_tp.php     16      0
.../modules/custom/units/sections/products/e_product_eh.php     94      8
.../modules/custom/units/sections/reviews/e_review_eh.php       46      9
.../modules/custom/units/sections/articles/e_article_tp.php     16      0
.../modules/custom/units/sections/articles/e_article_eh.php     92      8
.../modules/custom/units/sections/custom_eh.php                 22      1
.../modules/custom/units/sections/sections_config.php           145     0
.../modules/custom/units/sections/links/e_link_tp.php           17      0
.../modules/custom/units/sections/links/e_link_eh.php           95      8
.../modules/custom/units/sections/users/e_user_eh.php           94      8
.../modules/custom/units/sections/users/e_user_tp.php           16      0
.../modules/custom/units/sections/categories/e_category_tp.php  16      0
.../modules/custom/units/sections/categories/e_category_eh.php  91      8
.../modules/custom/install.php                                  6       0
.../modules/custom/install/upgrades.php                         86      0
--------------------------------------------------------------------------------
A TOTAL OF 1208 ERROR(S) AND 72 WARNING(S) WERE FOUND IN 20 FILE(S)
--------------------------------------------------------------------------------

It's 1208 errors and 72 warnings.

I think that we need to deal with that before final 5.2.1 release of the module.

Related Tasks