sruupl / batflat

Lightweight, fast and easy CMS for free. Bootstrap ready. https://batflat.org
MIT License
134 stars 54 forks source link

PSR2 #40

Closed sim2github closed 4 years ago

sim2github commented 5 years ago

Since 1.3.4 announced PSR2 code style usage. ./composer.json:

{
    "require": {
        "squizlabs/php_codesniffer": "^3.3"
    }
}

./phpcs.xml configuration file:

<?xml version="1.0" encoding="utf-8"?>
<ruleset name="Batflat coding standard">
    <description>Batflat coding standard</description>
    <!-- Paths to check -->
    <file>inc/core</file>
    <file>inc/modules</file>
    <exclude-pattern>*/css/*</exclude-pattern>
    <exclude-pattern>*/img/*</exclude-pattern>
    <exclude-pattern>*/js/*</exclude-pattern>
    <exclude-pattern>*/lang/*</exclude-pattern>
    <exclude-pattern>*/view/*</exclude-pattern>

    <!-- use colors in output -->
    <arg name="colors"/>

    <!-- inherit rules from: -->
    <rule ref="PSR2"/>
    <rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
    <rule ref="Generic.Commenting.Todo" />
</ruleset>
[~/www/batflat]$ ./vendor/bin/phpcs   

FILE: ~/www/batflat/inc/core/Admin.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
----------------------------------------------------------------------
  68 | WARNING | Line exceeds 120 characters; contains 122 characters
 112 | WARNING | Line exceeds 120 characters; contains 121 characters
 117 | WARNING | Line exceeds 120 characters; contains 121 characters
 119 | WARNING | Line exceeds 120 characters; contains 124 characters
 271 | WARNING | Line exceeds 120 characters; contains 130 characters
 289 | WARNING | Line exceeds 120 characters; contains 125 characters
 296 | WARNING | Line exceeds 120 characters; contains 124 characters
 301 | WARNING | Line exceeds 120 characters; contains 129 characters
 304 | WARNING | Line exceeds 120 characters; contains 134 characters
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/BaseModule.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 101 | WARNING | Method name "_getLanguages" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/defines.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 1 | WARNING | A file should declare new symbols (classes, functions, constants, etc.) and
   |         | cause no other side effects, or it should execute logic with side effects, but
   |         | should not do both. The first symbol is defined on line 18 and the first side
   |         | effect is on line 14.
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/lib/Autoloader.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 1 | WARNING | A file should declare new symbols (classes, functions, constants, etc.) and
   |         | cause no other side effects, or it should execute logic with side effects, but
   |         | should not do both. The first symbol is defined on line 20 and the first side
   |         | effect is on line 14.
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/lib/Image.php
------------------------------------------------------------------------------------
FOUND 3 ERRORS AFFECTING 3 LINES
------------------------------------------------------------------------------------
  64 | ERROR | [x] Short array syntax must be used to define arrays
 439 | ERROR | [x] The CASE body must start on the line following the statement
 440 | ERROR | [x] Line indented incorrectly; expected at least 20 spaces, found 16
------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 3 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/lib/Indenter.php
--------------------------------------------------------------------------
FOUND 11 ERRORS AND 4 WARNINGS AFFECTING 14 LINES
--------------------------------------------------------------------------
  14 | ERROR   | [x] Short array syntax must be used to define arrays
  15 | ERROR   | [x] Short array syntax must be used to define arrays
  18 | ERROR   | [x] Short array syntax must be used to define arrays
  18 | WARNING | [ ] Line exceeds 120 characters; contains 196 characters
  19 | ERROR   | [x] Short array syntax must be used to define arrays
  20 | ERROR   | [x] Short array syntax must be used to define arrays
  33 | ERROR   | [x] Short array syntax must be used to define arrays
  52 | ERROR   | [x] Short array syntax must be used to define arrays
  68 | ERROR   | [x] Short array syntax must be used to define arrays
  70 | WARNING | [ ] Line exceeds 120 characters; contains 146 characters
  83 | WARNING | [ ] Line exceeds 120 characters; contains 121 characters
  99 | ERROR   | [x] Short array syntax must be used to define arrays
 117 | ERROR   | [x] Short array syntax must be used to define arrays
 121 | ERROR   | [x] Short array syntax must be used to define arrays
 146 | WARNING | [ ] Line exceeds 120 characters; contains 124 characters
--------------------------------------------------------------------------
PHPCBF CAN FIX THE 11 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/lib/License.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
----------------------------------------------------------------------
 32 | WARNING | Line exceeds 120 characters; contains 136 characters
 56 | WARNING | Line exceeds 120 characters; contains 160 characters
 80 | WARNING | Line exceeds 120 characters; contains 143 characters
 85 | WARNING | Line exceeds 120 characters; contains 192 characters
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/lib/Pagination.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
------------------------------------------------------------------------------------------------
  15 | WARNING | Property name "$_currentPage" should not be prefixed with an underscore to
     |         | indicate visibility
  16 | WARNING | Property name "$_totalRecords" should not be prefixed with an underscore to
     |         | indicate visibility
  17 | WARNING | Property name "$_recordsPerPage" should not be prefixed with an underscore to
     |         | indicate visibility
  18 | WARNING | Property name "$_url" should not be prefixed with an underscore to indicate
     |         | visibility
  52 | WARNING | Method name "_totalPages" should not be prefixed with an underscore to
     |         | indicate visibility
  61 | WARNING | Method name "_previousPage" should not be prefixed with an underscore to
     |         | indicate visibility
  70 | WARNING | Method name "_nextPage" should not be prefixed with an underscore to indicate
     |         | visibility
  79 | WARNING | Method name "_hasPreviousPage" should not be prefixed with an underscore to
     |         | indicate visibility
  88 | WARNING | Method name "_hasNextPage" should not be prefixed with an underscore to
     |         | indicate visibility
 112 | WARNING | Line exceeds 120 characters; contains 127 characters
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/lib/Parsedown.php
--------------------------------------------------------------------------------------------
FOUND 125 ERRORS AND 7 WARNINGS AFFECTING 128 LINES
--------------------------------------------------------------------------------------------
   19 | ERROR   | [ ] Class constants must be uppercase; expected VERSION but found version
   24 | ERROR   | [x] Short array syntax must be used to define arrays
   28 | ERROR   | [x] Short array syntax must be used to define arrays
   32 | ERROR   | [x] Short array syntax must be used to define arrays
   37 | ERROR   | [x] Short array syntax must be used to define arrays
   40 | ERROR   | [x] Short array syntax must be used to define arrays
   51 | ERROR   | [x] Short array syntax must be used to define arrays
   56 | ERROR   | [x] Short array syntax must be used to define arrays
   59 | ERROR   | [x] Short array syntax must be used to define arrays
   99 | ERROR   | [x] Short array syntax must be used to define arrays
  100 | ERROR   | [x] Short array syntax must be used to define arrays
  101 | ERROR   | [x] Short array syntax must be used to define arrays
  102 | ERROR   | [x] Short array syntax must be used to define arrays
  103 | ERROR   | [x] Short array syntax must be used to define arrays
  104 | ERROR   | [x] Short array syntax must be used to define arrays
  105 | ERROR   | [x] Short array syntax must be used to define arrays
  106 | ERROR   | [x] Short array syntax must be used to define arrays
  107 | ERROR   | [x] Short array syntax must be used to define arrays
  108 | ERROR   | [x] Short array syntax must be used to define arrays
  109 | ERROR   | [x] Short array syntax must be used to define arrays
  110 | ERROR   | [x] Short array syntax must be used to define arrays
  111 | ERROR   | [x] Short array syntax must be used to define arrays
  112 | ERROR   | [x] Short array syntax must be used to define arrays
  113 | ERROR   | [x] Short array syntax must be used to define arrays
  114 | ERROR   | [x] Short array syntax must be used to define arrays
  115 | ERROR   | [x] Short array syntax must be used to define arrays
  116 | ERROR   | [x] Short array syntax must be used to define arrays
  117 | ERROR   | [x] Short array syntax must be used to define arrays
  118 | ERROR   | [x] Short array syntax must be used to define arrays
  119 | ERROR   | [x] Short array syntax must be used to define arrays
  120 | ERROR   | [x] Short array syntax must be used to define arrays
  121 | ERROR   | [x] Short array syntax must be used to define arrays
  122 | ERROR   | [x] Short array syntax must be used to define arrays
  125 | ERROR   | [x] Short array syntax must be used to define arrays
  167 | ERROR   | [x] Short array syntax must be used to define arrays
  288 | ERROR   | [x] Short array syntax must be used to define arrays
  289 | ERROR   | [x] Short array syntax must be used to define arrays
  292 | ERROR   | [x] Short array syntax must be used to define arrays
  339 | WARNING | [ ] Line exceeds 120 characters; contains 125 characters
  340 | ERROR   | [x] Short array syntax must be used to define arrays
  370 | ERROR   | [x] Short array syntax must be used to define arrays
  378 | ERROR   | [x] Short array syntax must be used to define arrays
  383 | ERROR   | [x] Short array syntax must be used to define arrays
  385 | ERROR   | [x] Short array syntax must be used to define arrays
  448 | ERROR   | [x] Short array syntax must be used to define arrays
  449 | ERROR   | [x] Short array syntax must be used to define arrays
  462 | ERROR   | [x] Short array syntax must be used to define arrays
  462 | ERROR   | [x] Short array syntax must be used to define arrays
  465 | ERROR   | [x] Short array syntax must be used to define arrays
  468 | ERROR   | [x] Short array syntax must be used to define arrays
  474 | ERROR   | [x] Short array syntax must be used to define arrays
  477 | ERROR   | [x] Short array syntax must be used to define arrays
  490 | WARNING | [ ] Line exceeds 120 characters; contains 133 characters
  501 | ERROR   | [x] Short array syntax must be used to define arrays
  504 | ERROR   | [x] Short array syntax must be used to define arrays
  542 | ERROR   | [x] Short array syntax must be used to define arrays
  543 | ERROR   | [x] Short array syntax must be used to define arrays
  578 | ERROR   | [x] Short array syntax must be used to define arrays
  579 | ERROR   | [x] Short array syntax must be used to define arrays
  614 | ERROR   | [x] Short array syntax must be used to define arrays
  655 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  657 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  659 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  678 | ERROR   | [x] Short array syntax must be used to define arrays
  689 | ERROR   | [x] Short array syntax must be used to define arrays
  704 | ERROR   | [x] Short array syntax must be used to define arrays
  735 | ERROR   | [x] Short array syntax must be used to define arrays
  747 | ERROR   | [x] Short array syntax must be used to define arrays
  756 | ERROR   | [x] Short array syntax must be used to define arrays
  766 | ERROR   | [x] Short array syntax must be used to define arrays
  769 | ERROR   | [x] Short array syntax must be used to define arrays
  775 | ERROR   | [x] Short array syntax must be used to define arrays
  780 | ERROR   | [x] Short array syntax must be used to define arrays
  783 | ERROR   | [x] Short array syntax must be used to define arrays
  786 | ERROR   | [x] Short array syntax must be used to define arrays
  803 | ERROR   | [x] Short array syntax must be used to define arrays
  815 | ERROR   | [x] Short array syntax must be used to define arrays
  822 | ERROR   | [x] Short array syntax must be used to define arrays
  830 | ERROR   | [x] Short array syntax must be used to define arrays
  844 | ERROR   | [x] Short array syntax must be used to define arrays
  845 | ERROR   | [x] Short array syntax must be used to define arrays
  855 | ERROR   | [x] Short array syntax must be used to define arrays
  856 | ERROR   | [x] Short array syntax must be used to define arrays
  857 | ERROR   | [x] Short array syntax must be used to define arrays
  858 | ERROR   | [x] Short array syntax must be used to define arrays
  859 | ERROR   | [x] Short array syntax must be used to define arrays
  860 | ERROR   | [x] Short array syntax must be used to define arrays
  861 | ERROR   | [x] Short array syntax must be used to define arrays
  862 | ERROR   | [x] Short array syntax must be used to define arrays
  863 | ERROR   | [x] Short array syntax must be used to define arrays
  864 | ERROR   | [x] Short array syntax must be used to define arrays
  865 | ERROR   | [x] Short array syntax must be used to define arrays
  866 | ERROR   | [x] Short array syntax must be used to define arrays
  867 | ERROR   | [x] Short array syntax must be used to define arrays
  881 | ERROR   | [x] Short array syntax must be used to define arrays
  935 | WARNING | [ ] Line exceeds 120 characters; contains 121 characters
  940 | ERROR   | [x] Short array syntax must be used to define arrays
  942 | ERROR   | [x] Short array syntax must be used to define arrays
  952 | WARNING | [ ] Line exceeds 120 characters; contains 128 characters
  959 | ERROR   | [x] Short array syntax must be used to define arrays
  961 | ERROR   | [x] Short array syntax must be used to define arrays
  964 | ERROR   | [x] Short array syntax must be used to define arrays
  988 | ERROR   | [x] Short array syntax must be used to define arrays
  990 | ERROR   | [x] Short array syntax must be used to define arrays
 1001 | ERROR   | [x] Short array syntax must be used to define arrays
 1022 | ERROR   | [x] Short array syntax must be used to define arrays
 1024 | ERROR   | [x] Short array syntax must be used to define arrays
 1026 | ERROR   | [x] Short array syntax must be used to define arrays
 1042 | ERROR   | [x] Short array syntax must be used to define arrays
 1046 | ERROR   | [x] Short array syntax must be used to define arrays
 1094 | ERROR   | [x] Short array syntax must be used to define arrays
 1094 | ERROR   | [x] Short array syntax must be used to define arrays
 1094 | WARNING | [ ] Line exceeds 120 characters; contains 126 characters
 1096 | ERROR   | [x] Short array syntax must be used to define arrays
 1109 | ERROR   | [x] Short array syntax must be used to define arrays
 1116 | ERROR   | [x] Short array syntax must be used to define arrays
 1122 | WARNING | [ ] Line exceeds 120 characters; contains 143 characters
 1123 | ERROR   | [x] Short array syntax must be used to define arrays
 1133 | ERROR   | [x] Short array syntax must be used to define arrays
 1139 | ERROR   | [x] Short array syntax must be used to define arrays
 1142 | ERROR   | [x] Short array syntax must be used to define arrays
 1156 | ERROR   | [x] Short array syntax must be used to define arrays
 1158 | ERROR   | [x] Short array syntax must be used to define arrays
 1174 | ERROR   | [x] Short array syntax must be used to define arrays
 1177 | ERROR   | [x] Short array syntax must be used to define arrays
 1180 | ERROR   | [x] Short array syntax must be used to define arrays
 1192 | WARNING | [ ] Line exceeds 120 characters; contains 124 characters
 1193 | ERROR   | [x] Short array syntax must be used to define arrays
 1193 | ERROR   | [x] Short array syntax must be used to define arrays
 1195 | ERROR   | [x] Short array syntax must be used to define arrays
 1197 | ERROR   | [x] Short array syntax must be used to define arrays
 1200 | ERROR   | [x] Short array syntax must be used to define arrays
--------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 124 MARKED SNIFF VIOLATIONS AUTOMATICALLY
--------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/lib/QueryBuilder.php
------------------------------------------------------------------------------------------------
FOUND 5 ERRORS AND 3 WARNINGS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------
 158 | ERROR   | [x] Short array syntax must be used to define arrays
 248 | ERROR   | [x] Spaces must be used for alignment; tabs are not allowed
 306 | ERROR   | [x] Spaces must be used for alignment; tabs are not allowed
 797 | ERROR   | [ ] Expected 1 space after closing brace; newline found
 809 | ERROR   | [x] Short array syntax must be used to define arrays
 859 | WARNING | [ ] Method name "_build" should not be prefixed with an underscore to indicate
     |         |     visibility
 871 | WARNING | [ ] Method name "_query" should not be prefixed with an underscore to indicate
     |         |     visibility
 892 | WARNING | [ ] Method name "_getColumns" should not be prefixed with an underscore to
     |         |     indicate visibility
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/lib/Router.php
----------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
----------------------------------------------------------------------
 24 | ERROR | [x] Short array syntax must be used to define arrays
 31 | ERROR | [x] Short array syntax must be used to define arrays
----------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/lib/Templates.php
-----------------------------------------------------------------------------------------
FOUND 11 ERRORS AND 2 WARNINGS AFFECTING 12 LINES
-----------------------------------------------------------------------------------------
  51 | WARNING | [ ] Line exceeds 120 characters; contains 128 characters
  55 | WARNING | [ ] Line exceeds 120 characters; contains 127 characters
 162 | ERROR   | [ ] Method name "Templates::organize_array" is not in camel caps format
 162 | ERROR   | [x] Whitespace found at end of line
 163 | ERROR   | [x] Whitespace found at end of line
 165 | ERROR   | [x] Whitespace found at end of line
 166 | ERROR   | [x] Whitespace found at end of line
 167 | ERROR   | [x] Whitespace found at end of line
 168 | ERROR   | [x] Whitespace found at end of line
 170 | ERROR   | [x] Whitespace found at end of line
 171 | ERROR   | [x] Whitespace found at end of line
 254 | ERROR   | [ ] Method name "Templates::noParse_array" is not in camel caps format
 283 | ERROR   | [x] Expected 1 space before "=>"; 2 found
-----------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/Main.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES
----------------------------------------------------------------------
 257 | WARNING | Line exceeds 120 characters; contains 128 characters
 259 | WARNING | Line exceeds 120 characters; contains 133 characters
 271 | WARNING | Line exceeds 120 characters; contains 138 characters
 289 | WARNING | Line exceeds 120 characters; contains 257 characters
 300 | WARNING | Line exceeds 120 characters; contains 169 characters
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/core/Site.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 113 | WARNING | Line exceeds 120 characters; contains 138 characters
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/blog/Admin.php
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 2 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------
 103 | ERROR   | [x] Line indented incorrectly; expected 20 spaces, found 24
 165 | WARNING | [ ] Line exceeds 120 characters; contains 226 characters
 442 | WARNING | [ ] Method name "_addHeaderFiles" should not be prefixed with an underscore to
     |         |     indicate visibility
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/blog/Info.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
 49 | WARNING | Line exceeds 120 characters; contains 1236 characters
 50 | WARNING | Line exceeds 120 characters; contains 1681 characters
 51 | WARNING | Line exceeds 120 characters; contains 167 characters
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/blog/Site.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 25 WARNINGS AFFECTING 25 LINES
------------------------------------------------------------------------------------------------
  22 | WARNING | Line exceeds 120 characters; contains 137 characters
  46 | WARNING | Method name "_getLatestPosts" should not be prefixed with an underscore to
     |         | indicate visibility
  56 | WARNING | Line exceeds 120 characters; contains 130 characters
  66 | WARNING | Method name "_getAllTags" should not be prefixed with an underscore to
     |         | indicate visibility
  84 | WARNING | Method name "_importPost" should not be prefixed with an underscore to
     |         | indicate visibility
  91 | WARNING | Line exceeds 120 characters; contains 138 characters
  97 | WARNING | Line exceeds 120 characters; contains 134 characters
 128 | WARNING | Line exceeds 120 characters; contains 134 characters
 131 | WARNING | Line exceeds 120 characters; contains 135 characters
 136 | WARNING | Line exceeds 120 characters; contains 143 characters
 142 | WARNING | Line exceeds 120 characters; contains 211 characters
 153 | WARNING | Line exceeds 120 characters; contains 150 characters
 157 | WARNING | Line exceeds 120 characters; contains 217 characters
 159 | WARNING | Line exceeds 120 characters; contains 153 characters
 168 | WARNING | Method name "_importAllPosts" should not be prefixed with an underscore to
     |         | indicate visibility
 188 | WARNING | Line exceeds 120 characters; contains 130 characters
 204 | WARNING | Line exceeds 120 characters; contains 133 characters
 228 | WARNING | Line exceeds 120 characters; contains 135 characters
 244 | WARNING | Line exceeds 120 characters; contains 155 characters
 251 | WARNING | Method name "_importTagPosts" should not be prefixed with an underscore to
     |         | indicate visibility
 278 | WARNING | Line exceeds 120 characters; contains 130 characters
 295 | WARNING | Line exceeds 120 characters; contains 133 characters
 319 | WARNING | Line exceeds 120 characters; contains 267 characters
 338 | WARNING | Method name "_generateRSS" should not be prefixed with an underscore to
     |         | indicate visibility
 360 | WARNING | Line exceeds 120 characters; contains 121 characters
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/carousel/Site.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 23 | WARNING | Method name "_insertCarousels" should not be prefixed with an underscore to
    |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/contact/Admin.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 84 | WARNING | Method name "_getUsers" should not be prefixed with an underscore to indicate
    |         | visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/contact/Site.php
------------------------------------------------------------------------------------------------
FOUND 2 ERRORS AND 11 WARNINGS AFFECTING 13 LINES
------------------------------------------------------------------------------------------------
  18 | WARNING | [ ] Property name "$_headers" should not be prefixed with an underscore to
     |         |     indicate visibility
  19 | WARNING | [ ] Property name "$_params" should not be prefixed with an underscore to
     |         |     indicate visibility
  20 | WARNING | [ ] Property name "$_error" should not be prefixed with an underscore to
     |         |     indicate visibility
  44 | WARNING | [ ] Method name "_insertForm" should not be prefixed with an underscore to
     |         |     indicate visibility
  54 | WARNING | [ ] Method name "_initDriver" should not be prefixed with an underscore to
     |         |     indicate visibility
  91 | WARNING | [ ] Method name "_checkErrors" should not be prefixed with an underscore to
     |         |     indicate visibility
 117 | WARNING | [ ] Method name "_sendEmail" should not be prefixed with an underscore to
     |         |     indicate visibility
 125 | WARNING | [ ] Line exceeds 120 characters; contains 137 characters
 128 | WARNING | [ ] Line exceeds 120 characters; contains 124 characters
 140 | WARNING | [ ] Line exceeds 120 characters; contains 128 characters
 155 | ERROR   | [x] Short array syntax must be used to define arrays
 156 | ERROR   | [x] Short array syntax must be used to define arrays
 167 | WARNING | [ ] Line exceeds 120 characters; contains 128 characters
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/dashboard/Admin.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
 31 | WARNING | Method name "_modulesList" should not be prefixed with an underscore to
    |         | indicate visibility
 62 | WARNING | Method name "_fetchNews" should not be prefixed with an underscore to indicate
    |         | visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/devbar/Admin.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 1 | WARNING | A file should declare new symbols (classes, functions, constants, etc.) and
   |         | cause no other side effects, or it should execute logic with side effects, but
   |         | should not do both. The first symbol is defined on line 16 and the first side
   |         | effect is on line 62.
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/devbar/functions.php
----------------------------------------------------------------------------------------------
FOUND 149 ERRORS AND 1 WARNING AFFECTING 39 LINES
----------------------------------------------------------------------------------------------
 16 | WARNING | [ ] Line exceeds 120 characters; contains 123 characters
 25 | ERROR   | [x] The CASE body must start on the line following the statement
 25 | ERROR   | [x] Terminating statement must be on a line by itself
 25 | ERROR   | [x] Closing brace must be on a line by itself
 25 | ERROR   | [x] Each PHP statement must be on a line by itself
 26 | ERROR   | [x] The CASE body must start on the line following the statement
 26 | ERROR   | [x] Terminating statement must be on a line by itself
 26 | ERROR   | [x] Closing brace must be on a line by itself
 26 | ERROR   | [x] Each PHP statement must be on a line by itself
 27 | ERROR   | [x] The CASE body must start on the line following the statement
 27 | ERROR   | [x] Terminating statement must be on a line by itself
 27 | ERROR   | [x] Closing brace must be on a line by itself
 27 | ERROR   | [x] Each PHP statement must be on a line by itself
 28 | ERROR   | [x] The CASE body must start on the line following the statement
 28 | ERROR   | [x] Terminating statement must be on a line by itself
 28 | ERROR   | [x] Closing brace must be on a line by itself
 28 | ERROR   | [x] Each PHP statement must be on a line by itself
 29 | ERROR   | [x] The CASE body must start on the line following the statement
 29 | ERROR   | [x] Terminating statement must be on a line by itself
 29 | ERROR   | [x] Closing brace must be on a line by itself
 29 | ERROR   | [x] Each PHP statement must be on a line by itself
 30 | ERROR   | [x] The CASE body must start on the line following the statement
 30 | ERROR   | [x] Terminating statement must be on a line by itself
 30 | ERROR   | [x] Closing brace must be on a line by itself
 30 | ERROR   | [x] Each PHP statement must be on a line by itself
 31 | ERROR   | [x] The CASE body must start on the line following the statement
 31 | ERROR   | [x] Terminating statement must be on a line by itself
 31 | ERROR   | [x] Closing brace must be on a line by itself
 31 | ERROR   | [x] Each PHP statement must be on a line by itself
 32 | ERROR   | [x] The CASE body must start on the line following the statement
 32 | ERROR   | [x] Terminating statement must be on a line by itself
 32 | ERROR   | [x] Closing brace must be on a line by itself
 32 | ERROR   | [x] Each PHP statement must be on a line by itself
 33 | ERROR   | [x] The CASE body must start on the line following the statement
 33 | ERROR   | [x] Terminating statement must be on a line by itself
 33 | ERROR   | [x] Closing brace must be on a line by itself
 33 | ERROR   | [x] Each PHP statement must be on a line by itself
 34 | ERROR   | [x] The CASE body must start on the line following the statement
 34 | ERROR   | [x] Terminating statement must be on a line by itself
 34 | ERROR   | [x] Closing brace must be on a line by itself
 34 | ERROR   | [x] Each PHP statement must be on a line by itself
 35 | ERROR   | [x] The CASE body must start on the line following the statement
 35 | ERROR   | [x] Terminating statement must be on a line by itself
 35 | ERROR   | [x] Closing brace must be on a line by itself
 35 | ERROR   | [x] Each PHP statement must be on a line by itself
 36 | ERROR   | [x] The CASE body must start on the line following the statement
 36 | ERROR   | [x] Terminating statement must be on a line by itself
 36 | ERROR   | [x] Closing brace must be on a line by itself
 36 | ERROR   | [x] Each PHP statement must be on a line by itself
 37 | ERROR   | [x] The CASE body must start on the line following the statement
 37 | ERROR   | [x] Terminating statement must be on a line by itself
 37 | ERROR   | [x] Closing brace must be on a line by itself
 37 | ERROR   | [x] Each PHP statement must be on a line by itself
 38 | ERROR   | [x] The CASE body must start on the line following the statement
 38 | ERROR   | [x] Terminating statement must be on a line by itself
 38 | ERROR   | [x] Closing brace must be on a line by itself
 38 | ERROR   | [x] Each PHP statement must be on a line by itself
 39 | ERROR   | [x] The CASE body must start on the line following the statement
 39 | ERROR   | [x] Terminating statement must be on a line by itself
 39 | ERROR   | [x] Closing brace must be on a line by itself
 39 | ERROR   | [x] Each PHP statement must be on a line by itself
 40 | ERROR   | [x] The CASE body must start on the line following the statement
 40 | ERROR   | [x] Terminating statement must be on a line by itself
 40 | ERROR   | [x] Closing brace must be on a line by itself
 40 | ERROR   | [x] Each PHP statement must be on a line by itself
 41 | ERROR   | [x] The CASE body must start on the line following the statement
 41 | ERROR   | [x] Terminating statement must be on a line by itself
 41 | ERROR   | [x] Closing brace must be on a line by itself
 41 | ERROR   | [x] Each PHP statement must be on a line by itself
 42 | ERROR   | [x] The CASE body must start on the line following the statement
 42 | ERROR   | [x] Terminating statement must be on a line by itself
 42 | ERROR   | [x] Closing brace must be on a line by itself
 42 | ERROR   | [x] Each PHP statement must be on a line by itself
 43 | ERROR   | [x] The CASE body must start on the line following the statement
 43 | ERROR   | [x] Terminating statement must be on a line by itself
 43 | ERROR   | [x] Closing brace must be on a line by itself
 43 | ERROR   | [x] Each PHP statement must be on a line by itself
 44 | ERROR   | [x] The CASE body must start on the line following the statement
 44 | ERROR   | [x] Terminating statement must be on a line by itself
 44 | ERROR   | [x] Closing brace must be on a line by itself
 44 | ERROR   | [x] Each PHP statement must be on a line by itself
 45 | ERROR   | [x] The CASE body must start on the line following the statement
 45 | ERROR   | [x] Terminating statement must be on a line by itself
 45 | ERROR   | [x] Closing brace must be on a line by itself
 45 | ERROR   | [x] Each PHP statement must be on a line by itself
 46 | ERROR   | [x] The CASE body must start on the line following the statement
 46 | ERROR   | [x] Terminating statement must be on a line by itself
 46 | ERROR   | [x] Closing brace must be on a line by itself
 46 | ERROR   | [x] Each PHP statement must be on a line by itself
 47 | ERROR   | [x] The CASE body must start on the line following the statement
 47 | ERROR   | [x] Terminating statement must be on a line by itself
 47 | ERROR   | [x] Closing brace must be on a line by itself
 47 | ERROR   | [x] Each PHP statement must be on a line by itself
 48 | ERROR   | [x] The CASE body must start on the line following the statement
 48 | ERROR   | [x] Terminating statement must be on a line by itself
 48 | ERROR   | [x] Closing brace must be on a line by itself
 48 | ERROR   | [x] Each PHP statement must be on a line by itself
 49 | ERROR   | [x] The CASE body must start on the line following the statement
 49 | ERROR   | [x] Terminating statement must be on a line by itself
 49 | ERROR   | [x] Closing brace must be on a line by itself
 49 | ERROR   | [x] Each PHP statement must be on a line by itself
 50 | ERROR   | [x] The CASE body must start on the line following the statement
 50 | ERROR   | [x] Terminating statement must be on a line by itself
 50 | ERROR   | [x] Closing brace must be on a line by itself
 50 | ERROR   | [x] Each PHP statement must be on a line by itself
 51 | ERROR   | [x] The CASE body must start on the line following the statement
 51 | ERROR   | [x] Terminating statement must be on a line by itself
 51 | ERROR   | [x] Closing brace must be on a line by itself
 51 | ERROR   | [x] Each PHP statement must be on a line by itself
 52 | ERROR   | [x] The CASE body must start on the line following the statement
 52 | ERROR   | [x] Terminating statement must be on a line by itself
 52 | ERROR   | [x] Closing brace must be on a line by itself
 52 | ERROR   | [x] Each PHP statement must be on a line by itself
 53 | ERROR   | [x] The CASE body must start on the line following the statement
 53 | ERROR   | [x] Terminating statement must be on a line by itself
 53 | ERROR   | [x] Closing brace must be on a line by itself
 53 | ERROR   | [x] Each PHP statement must be on a line by itself
 54 | ERROR   | [x] The CASE body must start on the line following the statement
 54 | ERROR   | [x] Terminating statement must be on a line by itself
 54 | ERROR   | [x] Closing brace must be on a line by itself
 54 | ERROR   | [x] Each PHP statement must be on a line by itself
 55 | ERROR   | [x] The CASE body must start on the line following the statement
 55 | ERROR   | [x] Terminating statement must be on a line by itself
 55 | ERROR   | [x] Closing brace must be on a line by itself
 55 | ERROR   | [x] Each PHP statement must be on a line by itself
 56 | ERROR   | [x] The CASE body must start on the line following the statement
 56 | ERROR   | [x] Terminating statement must be on a line by itself
 56 | ERROR   | [x] Closing brace must be on a line by itself
 56 | ERROR   | [x] Each PHP statement must be on a line by itself
 57 | ERROR   | [x] The CASE body must start on the line following the statement
 57 | ERROR   | [x] Terminating statement must be on a line by itself
 57 | ERROR   | [x] Closing brace must be on a line by itself
 57 | ERROR   | [x] Each PHP statement must be on a line by itself
 58 | ERROR   | [x] The CASE body must start on the line following the statement
 58 | ERROR   | [x] Terminating statement must be on a line by itself
 58 | ERROR   | [x] Closing brace must be on a line by itself
 58 | ERROR   | [x] Each PHP statement must be on a line by itself
 59 | ERROR   | [x] The CASE body must start on the line following the statement
 59 | ERROR   | [x] Terminating statement must be on a line by itself
 59 | ERROR   | [x] Closing brace must be on a line by itself
 59 | ERROR   | [x] Each PHP statement must be on a line by itself
 60 | ERROR   | [x] The CASE body must start on the line following the statement
 60 | ERROR   | [x] Terminating statement must be on a line by itself
 60 | ERROR   | [x] Closing brace must be on a line by itself
 60 | ERROR   | [x] Each PHP statement must be on a line by itself
 61 | ERROR   | [x] The CASE body must start on the line following the statement
 61 | ERROR   | [x] Terminating statement must be on a line by itself
 61 | ERROR   | [x] Closing brace must be on a line by itself
 61 | ERROR   | [x] Each PHP statement must be on a line by itself
 64 | ERROR   | [x] Terminating statement must be indented to the same level as the CASE body
----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 149 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/devbar/Info.php
------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------
  4 | ERROR | [x] Whitespace found at end of line
 17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 17 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
 17 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
 20 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 20 | ERROR | [x] Expected 1 space after USE keyword; found 0
 21 | ERROR | [x] Opening brace should be on the same line as the declaration
 23 | ERROR | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 24 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 24 | ERROR | [x] Expected 1 space after USE keyword; found 0
 25 | ERROR | [x] Opening brace should be on the same line as the declaration
 27 | ERROR | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 28 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/devbar/Site.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 1 | WARNING | A file should declare new symbols (classes, functions, constants, etc.) and
   |         | cause no other side effects, or it should execute logic with side effects, but
   |         | should not do both. The first symbol is defined on line 16 and the first side
   |         | effect is on line 62.
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/galleries/Admin.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------
  18 | WARNING | Property name "$_thumbs" should not be prefixed with an underscore to indicate
     |         | visibility
  19 | WARNING | Property name "$_uploads" should not be prefixed with an underscore to
     |         | indicate visibility
 111 | WARNING | Line exceeds 120 characters; contains 130 characters
 173 | WARNING | Line exceeds 120 characters; contains 121 characters
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/galleries/Site.php
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
 23 | WARNING | [ ] Method name "_importGalleries" should not be prefixed with an underscore to
    |         |     indicate visibility
 59 | ERROR   | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/modules/Admin.php
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 3 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------
  54 | ERROR   | [x] Short array syntax must be used to define arrays
 103 | WARNING | [ ] Line exceeds 120 characters; contains 140 characters
 187 | WARNING | [ ] Method name "_modulesList" should not be prefixed with an underscore to
     |         |     indicate visibility
 206 | WARNING | [ ] Line exceeds 120 characters; contains 158 characters
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/navigation/Admin.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------
 110 | WARNING | Line exceeds 120 characters; contains 172 characters
 283 | WARNING | Method name "_getPages" should not be prefixed with an underscore to indicate
     |         | visibility
 305 | WARNING | Method name "_getParents" should not be prefixed with an underscore to
     |         | indicate visibility
 343 | WARNING | Method name "_getNavItems" should not be prefixed with an underscore to
     |         | indicate visibility
 358 | WARNING | Line exceeds 120 characters; contains 151 characters
 432 | WARNING | Method name "_getHighestOrder" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/navigation/Site.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------
 26 | WARNING | Method name "_insertMenu" should not be prefixed with an underscore to indicate
    |         | visibility
 42 | WARNING | Line exceeds 120 characters; contains 251 characters
 57 | WARNING | Line exceeds 120 characters; contains 243 characters
 64 | WARNING | Line exceeds 120 characters; contains 173 characters
 75 | WARNING | Line exceeds 120 characters; contains 132 characters
 87 | WARNING | Method name "_isChildActive" should not be prefixed with an underscore to
    |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/pages/Admin.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 7 WARNINGS AFFECTING 7 LINES
------------------------------------------------------------------------------------------------
  46 | WARNING | Line exceeds 120 characters; contains 123 characters
  80 | WARNING | Line exceeds 120 characters; contains 189 characters
 107 | WARNING | Line exceeds 120 characters; contains 197 characters
 153 | WARNING | Line exceeds 120 characters; contains 146 characters
 156 | WARNING | Line exceeds 120 characters; contains 128 characters
 239 | WARNING | Method name "_getTemplates" should not be prefixed with an underscore to
     |         | indicate visibility
 256 | WARNING | Method name "_addHeaderFiles" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/pages/Info.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
----------------------------------------------------------------------
 35 | WARNING | Line exceeds 120 characters; contains 153 characters
 36 | WARNING | Line exceeds 120 characters; contains 430 characters
 37 | WARNING | Line exceeds 120 characters; contains 573 characters
 42 | WARNING | Line exceeds 120 characters; contains 150 characters
 43 | WARNING | Line exceeds 120 characters; contains 623 characters
 44 | WARNING | Line exceeds 120 characters; contains 537 characters
 50 | WARNING | Line exceeds 120 characters; contains 145 characters
 57 | WARNING | Line exceeds 120 characters; contains 150 characters
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/pages/Site.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES
------------------------------------------------------------------------------------------------
  63 | WARNING | Method name "_importPage" should not be prefixed with an underscore to
     |         | indicate visibility
  88 | WARNING | Method name "_importAllPages" should not be prefixed with an underscore to
     |         | indicate visibility
 116 | WARNING | Method name "_getCurrentLang" should not be prefixed with an underscore to
     |         | indicate visibility
 125 | WARNING | Method name "_getLanguageBySlug" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/searchbox/Info.php
------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------
  4 | ERROR | [x] Whitespace found at end of line
 17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 17 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
 17 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
 20 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 20 | ERROR | [x] Expected 1 space after USE keyword; found 0
 21 | ERROR | [x] Opening brace should be on the same line as the declaration
 23 | ERROR | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 24 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 24 | ERROR | [x] Expected 1 space after USE keyword; found 0
 25 | ERROR | [x] Opening brace should be on the same line as the declaration
 27 | ERROR | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 28 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/searchbox/Site.php
------------------------------------------------------------------------------------------------
FOUND 56 ERRORS AND 5 WARNINGS AFFECTING 35 LINES
------------------------------------------------------------------------------------------------
   4 | ERROR   | [x] Whitespace found at end of line
  16 | ERROR   | [x] Line indented incorrectly; expected 0 spaces, found 4
  19 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
  21 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
  21 | ERROR   | [x] Inline control structures are not allowed
  25 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
  28 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
  32 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
  34 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
  46 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
  46 | ERROR   | [x] Inline control structures are not allowed
  48 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 12
  48 | ERROR   | [x] Expected 1 space(s) after ELSE keyword; newline found
  48 | ERROR   | [x] Inline control structures are not allowed
  52 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
  52 | ERROR   | [x] Inline control structures are not allowed
  54 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 12
  54 | ERROR   | [x] Expected 1 space(s) after ELSE keyword; newline found
  54 | ERROR   | [x] Whitespace found at end of line
  57 | WARNING | [ ] Line exceeds 120 characters; contains 128 characters
  62 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  62 | ERROR   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
  62 | ERROR   | [x] Expected 1 space(s) after closing parenthesis; found newline
  65 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  68 | WARNING | [ ] Line exceeds 120 characters; contains 141 characters
  73 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  73 | ERROR   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
  73 | ERROR   | [x] Expected 1 space(s) after closing parenthesis; found newline
  76 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  82 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  82 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
  82 | ERROR   | [x] Expected 1 space(s) after closing parenthesis; found newline
  83 | ERROR   | [x] Whitespace found at end of line
  87 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  87 | ERROR   | [x] Expected 1 space after closing brace; newline found
  88 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
  88 | ERROR   | [x] Expected 1 space(s) after ELSE keyword; newline found
  88 | ERROR   | [x] Inline control structures are not allowed
  90 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 12
  93 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
  95 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
  95 | WARNING | [ ] Method name "_insertSearchBox" should not be prefixed with an underscore
     |         |     to indicate visibility
  98 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 100 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 100 | WARNING | [ ] Method name "_insertResults" should not be prefixed with an underscore to
     |         |     indicate visibility
 102 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 12
 102 | ERROR   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
 102 | ERROR   | [x] Expected 1 space(s) after closing parenthesis; found newline
 106 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 12
 108 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 110 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 110 | WARNING | [ ] Method name "_currentLanguage" should not be prefixed with an underscore
     |         |     to indicate visibility
 112 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
 112 | ERROR   | [x] Inline control structures are not allowed
 114 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 12
 114 | ERROR   | [x] Expected 1 space(s) after ELSE keyword; newline found
 114 | ERROR   | [x] Inline control structures are not allowed
 116 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 118 | ERROR   | [x] Expected 1 newline at end of file; 0 found
 118 | ERROR   | [x] Line indented incorrectly; expected 0 spaces, found 4
 118 | ERROR   | [x] The closing brace for the class must go on the next line after the body
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 56 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/settings/Admin.php
------------------------------------------------------------------------------------------------
FOUND 8 ERRORS AND 16 WARNINGS AFFECTING 24 LINES
------------------------------------------------------------------------------------------------
 112 | WARNING | [ ] Line exceeds 120 characters; contains 125 characters
 226 | WARNING | [ ] Line exceeds 120 characters; contains 160 characters
 414 | WARNING | [ ] Line exceeds 120 characters; contains 122 characters
 416 | ERROR   | [x] Expected 1 space after closing brace; newline found
 421 | ERROR   | [x] Whitespace found at end of line
 436 | ERROR   | [x] Whitespace found at end of line
 447 | WARNING | [ ] Line exceeds 120 characters; contains 122 characters
 453 | ERROR   | [x] Whitespace found at end of line
 510 | WARNING | [ ] Line exceeds 120 characters; contains 187 characters
 574 | WARNING | [ ] Method name "_checkUpdate" should not be prefixed with an underscore to
     |         |     indicate visibility
 629 | WARNING | [ ] Method name "_getThemes" should not be prefixed with an underscore to
     |         |     indicate visibility
 660 | WARNING | [ ] Method name "_getPages" should not be prefixed with an underscore to
     |         |     indicate visibility
 676 | WARNING | [ ] Method name "_getThemeFiles" should not be prefixed with an underscore to
     |         |     indicate visibility
 691 | WARNING | [ ] Line exceeds 120 characters; contains 143 characters
 697 | WARNING | [ ] Method name "_updateSettings" should not be prefixed with an underscore to
     |         |     indicate visibility
 739 | WARNING | [ ] Method name "_verifyLicense" should not be prefixed with an underscore to
     |         |     indicate visibility
 756 | WARNING | [ ] Method name "_getTimezones" should not be prefixed with an underscore to
     |         |     indicate visibility
 758 | ERROR   | [x] Short array syntax must be used to define arrays
 771 | ERROR   | [x] Short array syntax must be used to define arrays
 776 | ERROR   | [x] Short array syntax must be used to define arrays
 785 | ERROR   | [x] Short array syntax must be used to define arrays
 798 | WARNING | [ ] Method name "_getAllTranslations" should not be prefixed with an
     |         |     underscore to indicate visibility
 870 | WARNING | [ ] Method name "_directorySize" should not be prefixed with an underscore to
     |         |     indicate visibility
 875 | WARNING | [ ] Line exceeds 120 characters; contains 166 characters
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 8 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/settings/Info.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 15 WARNINGS AFFECTING 15 LINES
----------------------------------------------------------------------
 28 | WARNING | Line exceeds 120 characters; contains 128 characters
 29 | WARNING | Line exceeds 120 characters; contains 150 characters
 30 | WARNING | Line exceeds 120 characters; contains 134 characters
 31 | WARNING | Line exceeds 120 characters; contains 193 characters
 32 | WARNING | Line exceeds 120 characters; contains 128 characters
 33 | WARNING | Line exceeds 120 characters; contains 155 characters
 34 | WARNING | Line exceeds 120 characters; contains 128 characters
 35 | WARNING | Line exceeds 120 characters; contains 129 characters
 36 | WARNING | Line exceeds 120 characters; contains 135 characters
 37 | WARNING | Line exceeds 120 characters; contains 136 characters
 38 | WARNING | Line exceeds 120 characters; contains 128 characters
 39 | WARNING | Line exceeds 120 characters; contains 129 characters
 40 | WARNING | Line exceeds 120 characters; contains 132 characters
 41 | WARNING | Line exceeds 120 characters; contains 131 characters
 42 | WARNING | Line exceeds 120 characters; contains 123 characters
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/settings/Site.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 23 | WARNING | Method name "_importSettings" should not be prefixed with an underscore to
    |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/sitemap/Info.php
------------------------------------------------------------------------------------------------
FOUND 13 ERRORS AFFECTING 9 LINES
------------------------------------------------------------------------------------------------
  4 | ERROR | [x] Whitespace found at end of line
 17 | ERROR | [x] Spaces must be used to indent lines; tabs are not allowed
 17 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
 17 | ERROR | [x] Spaces must be used for alignment; tabs are not allowed
 20 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 20 | ERROR | [x] Expected 1 space after USE keyword; found 0
 21 | ERROR | [x] Opening brace should be on the same line as the declaration
 23 | ERROR | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 24 | ERROR | [x] Expected 1 space after FUNCTION keyword; 0 found
 24 | ERROR | [x] Expected 1 space after USE keyword; found 0
 25 | ERROR | [x] Opening brace should be on the same line as the declaration
 27 | ERROR | [x] Function closing brace must go on the next line following the body; found 1
    |       |     blank lines before brace
 28 | ERROR | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 13 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/sitemap/Site.php
-----------------------------------------------------------------------------------------------
FOUND 42 ERRORS AND 3 WARNINGS AFFECTING 23 LINES
-----------------------------------------------------------------------------------------------
  4 | ERROR   | [x] Whitespace found at end of line
 16 | ERROR   | [x] Line indented incorrectly; expected 0 spaces, found 4
 18 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 20 | ERROR   | [x] Expected 1 space after FUNCTION keyword; 0 found
 36 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 36 | ERROR   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
 36 | ERROR   | [x] Expected 1 space(s) after closing parenthesis; found newline
 41 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
 41 | ERROR   | [x] Inline control structures are not allowed
 41 | ERROR   | [x] TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
 44 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
 44 | ERROR   | [x] Inline control structures are not allowed
 46 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
 46 | ERROR   | [x] Line indented incorrectly; expected 16 spaces, found 20
 46 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
 46 | ERROR   | [x] Inline control structures are not allowed
 48 | WARNING | [x] Usage of ELSE IF is discouraged; use ELSEIF instead
 48 | ERROR   | [x] Line indented incorrectly; expected 16 spaces, found 20
 48 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
 48 | ERROR   | [x] Inline control structures are not allowed
 50 | ERROR   | [x] Line indented incorrectly; expected 16 spaces, found 20
 50 | ERROR   | [x] Expected 1 space(s) after ELSE keyword; newline found
 50 | ERROR   | [x] Inline control structures are not allowed
 52 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 56 | WARNING | [ ] Line exceeds 120 characters; contains 293 characters
 57 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 57 | ERROR   | [x] Expected 1 space(s) after IF keyword; 0 found
 57 | ERROR   | [x] Expected 1 space(s) after closing parenthesis; found newline
 63 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 63 | ERROR   | [x] Expected 1 space after closing brace; newline found
 64 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 64 | ERROR   | [x] Expected 1 space(s) after ELSE keyword; newline found
 67 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 68 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 68 | ERROR   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
 68 | ERROR   | [x] Expected 1 space(s) after closing parenthesis; found newline
 75 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 76 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 76 | ERROR   | [x] Expected 1 space(s) after FOREACH keyword; 0 found
 76 | ERROR   | [x] Expected 1 space(s) after closing parenthesis; found newline
 82 | ERROR   | [x] Line indented incorrectly; expected 12 spaces, found 16
 85 | ERROR   | [x] Line indented incorrectly; expected 8 spaces, found 12
 86 | ERROR   | [x] Line indented incorrectly; expected 4 spaces, found 8
 87 | ERROR   | [x] Expected 1 newline at end of file; 0 found
 87 | ERROR   | [x] Line indented incorrectly; expected 0 spaces, found 4
-----------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 44 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-----------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/snippets/Admin.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 166 | WARNING | Method name "_add2header" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/snippets/Site.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------
 23 | WARNING | Method name "_importSnippets" should not be prefixed with an underscore to
    |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/statistics/DB.php
------------------------------------------------------------------------------------------------
FOUND 1 ERROR AND 1 WARNING AFFECTING 2 LINES
------------------------------------------------------------------------------------------------
  1 | WARNING | [ ] A file should declare new symbols (classes, functions, constants, etc.) and
    |         |     cause no other side effects, or it should execute logic with side effects,
    |         |     but should not do both. The first symbol is defined on line 7 and the first
    |         |     side effect is on line 15.
 16 | ERROR   | [x] Expected 1 newline at end of file; 0 found
------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/statistics/Info.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 42 | WARNING | Line exceeds 120 characters; contains 130 characters
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/statistics/phpbrowserdetector/BrowserDetector.php
------------------------------------------------------------------------------------------
FOUND 7 ERRORS AFFECTING 7 LINES
------------------------------------------------------------------------------------------
  16 | ERROR | [x] Short array syntax must be used to define arrays
 212 | ERROR | [ ] Expected 1 space after closing brace; newline found
 221 | ERROR | [x] Short array syntax must be used to define arrays
 229 | ERROR | [x] Short array syntax must be used to define arrays
 269 | ERROR | [ ] Expected 1 space after closing brace; newline found
 282 | ERROR | [ ] Expected 1 space after closing brace; newline found
 524 | ERROR | [x] Short array syntax must be used to define arrays
------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 4 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/statistics/phpbrowserdetector/LanguageDetector.php
-------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
-------------------------------------------------------------------------------------------
 18 | ERROR | [x] Short array syntax must be used to define arrays
-------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
-------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/statistics/phpbrowserdetector/OsDetector.php
-------------------------------------------------------------------------------------
FOUND 2 ERRORS AFFECTING 2 LINES
-------------------------------------------------------------------------------------
  60 | ERROR | Expected 1 space after closing brace; newline found
 188 | ERROR | Expected 1 space after closing brace; newline found
-------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/users/Admin.php
------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
------------------------------------------------------------------------------------------------
 214 | WARNING | Method name "_getModules" should not be prefixed with an underscore to
     |         | indicate visibility
 238 | WARNING | Line exceeds 120 characters; contains 124 characters
 248 | WARNING | Method name "_userAlreadyExists" should not be prefixed with an underscore to
     |         | indicate visibility
------------------------------------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/users/Info.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 47 | WARNING | Line exceeds 120 characters; contains 142 characters
 48 | WARNING | Line exceeds 120 characters; contains 402 characters
----------------------------------------------------------------------

FILE: ~/www/batflat/inc/modules/users/Site.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 22 | WARNING | Line exceeds 120 characters; contains 125 characters
----------------------------------------------------------------------

Time: 10.73 secs; Memory: 18Mb
sim2github commented 5 years ago

I can create Pull Request to fix this.

klocus commented 5 years ago

Thanks for you work. I will take a look at your changes.