Fix bug, enable errors

This commit is contained in:
Ruben 2016-09-04 17:37:02 +01:00
parent 456c9d6351
commit 16b9cb9e68
2 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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
*/