Skip to content

Commit

Permalink
formatting improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
rgigger committed Sep 2, 2014
1 parent ef1a523 commit 6828de7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions framework/boot/error/CliErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ static function handleError($errno, $errstr, $errfile, $errline, $context, $back
if(!defined('app_status'))
define('app_status', 'dev');

static $errorCount = 0;
$errorCount++;
$maxErrors = Config::get('zinc.error.maxCli');
if($maxErrors !== false && $errorCount > $maxErrors)
die();
switch(app_status)
{
case 'dev':
Expand All @@ -43,6 +38,12 @@ static function handleError($errno, $errstr, $errfile, $errline, $context, $back
trigger_error('status not handled:' . app_status);
break;
}

static $errorCount = 0;
$errorCount++;
$maxErrors = Config::get('zinc.error.maxCli');
if($maxErrors !== false && $errorCount >= $maxErrors)
die();
}

static function handleDevError($errno, $errstr, $errfile, $errline, $context, $backtrace)
Expand Down

0 comments on commit 6828de7

Please sign in to comment.