Showing 5 of 12 total issues
Method setupErrorHandling
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function setupErrorHandling(callable $handler = null)
{
set_error_handler(function ($errno, $errstr, $errfile, $errline) {
// do not touch errors that are not marked for reporting
if (!($errno & error_reporting())) {
Avoid too many return
statements within this method. Open
Open
return 'notice';
Avoid too many return
statements within this method. Open
Open
return 'warning';
Avoid too many return
statements within this method. Open
Open
return 'info';
Avoid too many return
statements within this method. Open
Open
return 'debug';