Archive
Code Insights
-
Use of ‘return’ statement is not recommended
Why you should care Specifically in Scala, use of return statement could interfer with the expected result. It’s recommended to use an implicit return…
-
Do not compare to null
Why you should care Whenever null seems like a good idea, use Option instead. As far as types are concerned, null is a bit…
-
Avoid long ‘if/else if’ chains that could be replaced by a ‘switch’ statement
For code readability purpose, prefer using switch if there are three or more options in a if.
-
phpinfo() should not be used in production
For security purpose, developers should not leave phpinfo() in production code, as it displays information which can be used to compromise the server that…
-
Avoid useless overriding method
Overring methods is a very powerfull way of factoring the code and produce complete fonctionnalities. However useless overriding methods can be a problem for…
-
The code contains too many uppercase control structure keywords
THE CODE CONTAINS TOO MANY UPPERCASE CONTROL STRUCTURE KEYWORDS
-
The code contains too many PHP4 deprecated constructor naming.
Developers should avoid using deprecated constructors. Since PHP5, constructor should be named __construct.
-
The code contains too many functions not complying with naming conventions
Complying with naming conventions make the source code easier to ready and so to maintain. Function names should start with an upper case and…