Don't use an if and two return statements when one return is sufficient. Don't use two if when one else does the same job. Don't use convoluted calculations when one return statement is sufficient. Don't call a method that doesn't exist. Don't write a try-catch block that does nothing. Do send exceptions when a abnormal situation occurs.
Don't use an if and two return statements when one return is sufficient.
Don't use two if when one else does the same job.
Don't use convoluted calculations when one return statement is sufficient.
Don't call a method that doesn't exist.
Don't write a try-catch block that does nothing.
Do send exceptions when a abnormal situation occurs.

Closed #962

SamMousa/PHPCI,corretgecom/PHPCI,laszlof/PHPCI,jimmycleuren/PHPCI,juanf/PHPCI,mindteam/PHPCI,mavimo/PHPCI,zilionis/PHPCI,Block8/PHPCI,corretgecom/PHPCI,steverobbins/PHPCI,steverobbins/PHPCI,mseshachalam/PHPCI,zilionis/PHPCI,Coderockr/PHPCI,gdseller/PHPCI,keradus/PHPCI,Block8/PHPCI,ojengwa/PHPCI,juanf/PHPCI,cooperaj/PHPCI,andreustimm/PHPCI,SamMousa/PHPCI,andreustimm/PHPCI,leadermt/PHPCI,leadermt/PHPCI,laszlof/PHPCI,mindteam/PHPCI,nelsonyang0710/PHPCI,seshurajup/PHPCI,jimmycleuren/PHPCI,dwolke/phpci,dwolke/phpci,Coderockr/PHPCI,andreustimm/PHPCI,mehulsbhatt/PHPCI,mikk150/PHPCI,mseshachalam/PHPCI,tankist/PHPCI,keradus/PHPCI,mikk150/PHPCI,nelsonyang0710/PHPCI,Coderockr/PHPCI,mseshachalam/PHPCI,gdseller/PHPCI,cooperaj/PHPCI,SamMousa/PHPCI,nevernet/PHPCI,rafaelang/PHPCI,jimmycleuren/PHPCI,seshurajup/PHPCI,ojengwa/PHPCI,onedal88/PHPCI,ronanchilvers/PHPCI,mehulsbhatt/PHPCI,tankist/PHPCI,onedal88/PHPCI,Block8/PHPCI,dwolke/phpci,rafaelang/PHPCI,cooperaj/PHPCI,juanf/PHPCI,Topface/PHPCI,ronanchilvers/PHPCI,Topface/PHPCI,Topface/PHPCI,steverobbins/PHPCI,onedal88/PHPCI,mavimo/PHPCI,nelsonyang0710/PHPCI,nevernet/PHPCI,keradus/PHPCI,mavimo/PHPCI,rafaelang/PHPCI,ojengwa/PHPCI,ronanchilvers/PHPCI,tankist/PHPCI,mindteam/PHPCI,gdseller/PHPCI,nevernet/PHPCI,chtombleson/PHPCI,leadermt/PHPCI,laszlof/PHPCI,mehulsbhatt/PHPCI,ronanchilvers/PHPCI,seshurajup/PHPCI,chtombleson/PHPCI,corretgecom/PHPCI,zilionis/PHPCI,chtombleson/PHPCI,mikk150/PHPCI