Concentrated issues

Here is the list of the lines that generated the most issues.

File Count Analysis
/application/view/error/exception.php:3213
  •   No Parenthesis For Language Construct
  •   Uses Default Values
  •   PHP Keywords As Names
  •   Adding Zero
  •   Could Make A Function
  •   Undefined Variable
  •   Preprocessable
/application/view/error/fatal.php:3313
  •   No Parenthesis For Language Construct
  •   Uses Default Values
  •   PHP Keywords As Names
  •   Adding Zero
  •   Could Make A Function
  •   Undefined Variable
  •   Preprocessable
/application/bootstrap.php:74111
  •   Uses Default Values
  •   Could Make A Function
  •   Wrong Access Style to Property
  •   Use Positive Condition
  •   No Need For Else
  •   Undefined Variable
  •   Preprocessable
/application/bootstrap.php:86311
  •   Uses Default Values
  •   Could Make A Function
  •   Wrong Access Style to Property
  •   Use Positive Condition
  •   No Need For Else
  •   Undefined Variable
  •   Preprocessable
/application/model/statistics.php:21110
  •   Uses Default Values
  •   Useless Parenthesis
  •   array_key_exists() Works On Arrays
  •   Mismatched Ternary Alternatives
  •   Undefined Variable
  •   Preprocessable
/application/library/capcha.php:1069
  •   Implied If
  •   Or Die
  •   Wrong Access Style to Property
  •   Undefined Variable
  •   Exit() Usage
  •   Logical Should Use Symbolic Operators
/application/library/collections.php:429
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Default Arguments
  •   Mismatched Typehint
/application/library/collections.php:679
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Default Arguments
  •   Mismatched Typehint
/application/library/event.php:369
  •   Buried Assignation
  •   Implied If
  •   Wrong Access Style to Property
  •   Undefined Variable
  •   Use Class Operator
  •   Logical Should Use Symbolic Operators
/application/helper/common.php:8428
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Too Many Local Variables
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Max Level Of Nesting
/application/helper/template.php:888
  •   Non Static Methods Called In A Static
  •   Aliases Usage
  •   Uses Default Values
  •   Unpreprocessed Values
  •   Wrong Parameter Type
  •   Preprocessable
/application/helper/theme.php:2178
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/assets.php:208
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/assets.php:918
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/assets.php:1248
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/capcha.php:1038
  •   Buried Assignation
  •   Or Die
  •   Wrong Access Style to Property
  •   Undefined Variable
  •   Exit() Usage
  •   Logical Should Use Symbolic Operators
/application/library/session.php:668
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Default Arguments
/application/library/session.php:1358
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Default Arguments
/application/model/statistics.php:1668
  •   Forgotten Visibility
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Too Many Local Variables
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/model/statistics.php:3568
  •   Forgotten Visibility
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Too Many Local Variables
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/bootstrap.php:10637
  •   Used Once Variables (In Scope)
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/helper/common.php:617
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Max Level Of Nesting
/application/helper/common.php:4137
  •   Forgotten Visibility
  •   PHP Keywords As Names
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Typehint
/application/helper/common.php:6977
  •   PHP Keywords As Names
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/helper/common.php:9817
  •   PHP Keywords As Names
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/helper/common.php:10137
  •   PHP Keywords As Names
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/helper/theme.php:1217
  •   Used Once Variables (In Scope)
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/library/event.php:677
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Max Level Of Nesting
/application/library/event.php:1317
  •   Forgotten Visibility
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Default Arguments
  •   Mismatched Typehint
/application/library/mixpanel/ConsumerStrategies/AbstractConsumer.php:567
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Methods Without Return
  •   Empty Function
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
/application/library/mixpanel/ConsumerStrategies/FileConsumer.php:227
  •   Uses Default Values
  •   array_key_exists() Works On Arrays
  •   Use Class Operator
  •   Preprocessable
  •   Could Use __DIR__
  •   Use Constant
/application/library/session.php:1037
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/xss.php:177
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Default Arguments
/application/model/email.php:47
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Default Arguments
/application/bootstrap.php:5886
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/controller/action.php:2256
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Default Arguments
/application/controller/dev.php:66
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/controller/dev.php:3416
  •   Used Once Variables (In Scope)
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/controller/dev.php:11936
  •   Used Once Variables (In Scope)
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/helper/common.php:1186
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/helper/common.php:1716
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/helper/common.php:3426
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Default Arguments
  •   Mismatched Typehint
/application/helper/common.php:10416
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/helper/common.php:12296
  •   PHP Keywords As Names
  •   No Return Used
  •   Never Used Parameter
  •   No Boolean As Default
  •   No Class In Global
  •   Use Named Boolean In Argument Definition
/application/helper/common.php:14186
  •   Used Once Variables (In Scope)
  •   Methods Without Return
  •   Unused Arguments
  •   No Boolean As Default
  •   No Class In Global
  •   Use Named Boolean In Argument Definition
/application/helper/get_set.php:1426
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/helper/image.php:176
  •   Used Once Variables (In Scope)
  •   Methods Without Return
  •   Unused Arguments
  •   No Boolean As Default
  •   No Class In Global
  •   Use Named Boolean In Argument Definition
/application/helper/image.php:936
  •   Methods Without Return
  •   Wrong Optional Parameter
  •   Never Used Parameter
  •   No Boolean As Default
  •   No Class In Global
  •   Use Named Boolean In Argument Definition
/application/helper/template.php:1476
  •   Used Once Variables (In Scope)
  •   Methods Without Return
  •   PHP Keywords As Names
  •   Empty Function
  •   Unused Arguments
  •   No Class In Global
/application/helper/tentacle.php:1376
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/helper/tentacle.php:1716
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/helper/theme.php:1656
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Typehint
/application/helper/theme.php:2226
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/helper/theme.php:4546
  •   Used Once Variables (In Scope)
  •   Uses Default Values
  •   Unpreprocessed Values
  •   Wrong Parameter Type
  •   Could Make A Function
  •   Preprocessable
/application/helper/upgrade.php:686
  •   Drop Else After Return
  •   Nested Ifthen
  •   Bail Out Early
  •   No Need For Else
  •   Undefined Variable
  •   Preprocessable
/application/library/Spyc/Spyc.php:1996
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/Spyc/Spyc.php:2256
  •   Unused Arguments
  •   Never Used Parameter
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Default Arguments
  •   Mismatched Typehint
/application/library/Spyc/Spyc.php:8836
  •   Several Instructions On The Same Line
  •   Overwritten Literals
  •   Use Positive Condition
  •   Assigned Twice
  •   Check All Types
  •   Else If Versus Elseif
/application/library/assets.php:2056
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/library/cache.php:486
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/collections.php:2106
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/library/db.php:7296
  •   Unused Arguments
  •   Never Used Parameter
  •   Non Nullable Getters
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Default Arguments
/application/library/event.php:1136
  •   Used Once Variables (In Scope)
  •   Forgotten Visibility
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/library/event.php:1666
  •   Forgotten Visibility
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Default Arguments
  •   Mismatched Typehint
/application/library/logger/logger.php:186
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/library/logger/logger.php:1036
  •   Forgotten Visibility
  •   Methods Without Return
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
/application/library/note.php:596
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/note.php:1166
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/uaparser/uaparser.php:326
  •   No Parenthesis For Language Construct
  •   Uses Default Values
  •   Missing Include
  •   include_once() Usage
  •   Could Use __DIR__
  •   Use Constant
/application/library/url.php:166
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/url.php:336
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/user.php:2586
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/library/xml.php:166
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
/application/model/statistics.php:2846
  •   Useless Parenthesis
  •   Written Only Variables
  •   array_key_exists() Works On Arrays
  •   Mismatched Ternary Alternatives
  •   Undefined Variable
  •   Preprocessable
/application/model/statistics.php:5896
  •   Methods Without Return
  •   Unused Arguments
  •   Never Used Parameter
  •   No Boolean As Default
  •   Use Named Boolean In Argument Definition
  •   Mismatched Default Arguments
/plugins/core/core.php:1266
  •   Used Once Variables (In Scope)
  •   Unused Arguments
  •   Never Used Parameter
  •   No Boolean As Default
  •   No Class In Global
  •   Use Named Boolean In Argument Definition
/plugins/source/source.php:166
  •   Forgotten Visibility
  •   Unused Arguments
  •   Should Use Local Class
  •   Never Used Parameter
  •   Method Could Be Static
  •   Mismatched Default Arguments