[Insight] exit() and die() functions should be avoided - in …/ModuleDlstatsStatisticsDetails.php, line 37
Closed this issue · 1 comments
BugBuster1701 commented
in public/ModuleDlstatsStatisticsDetails.php, line 37
This line stops the execution flow, without explanation. If this is for debug, you should remove it. If this is to deal with an error, use exceptions instead.
}
if (!is_file($dir . '/system/initialize.php'))
{
echo 'Could not find initialize.php!';
exit(1);
}
require($dir . '/system/initialize.php');
/**
* Class BotStatisticsDetails
Posted from SensioLabsInsight
BugBuster1701 commented
throw new \ErrorException('Could not find initialize.php!',2,1,basename(__FILE__),__LINE__);