Fix bug, enable errors
This commit is contained in:
parent
456c9d6351
commit
16b9cb9e68
2 changed files with 5 additions and 1 deletions
|
@ -225,7 +225,7 @@ class Game
|
|||
$diffs = $betterHit->getExpressions()->getDifferences($hit->getExpressions());
|
||||
$max = max($diffs);
|
||||
$min = min($diffs);
|
||||
$diff = abs($max) > $abs($min) ? $max : $min;
|
||||
$diff = abs($max) > abs($min) ? $max : $min;
|
||||
$diffExpression = array_search($diff, $diffs);
|
||||
if($diff < 1) {
|
||||
$diff = $diff * -1;
|
||||
|
|
|
@ -12,6 +12,10 @@ $app = new Silex\Application([
|
|||
'debug' => $eh->getConfig()['debug']
|
||||
]);
|
||||
|
||||
// disable when going in production.
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
|
||||
/*
|
||||
* JWT setup
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue