@@ -62,13 +62,13 @@ discard block |
||
62 | 62 | { |
63 | 63 | /*** Arguments prepare ***/ |
64 | 64 | if (!isset(self::$_options['unitMap'][$unit])) { |
65 | - throw new \Exception('Error Unit: ' . $unit, 400); |
|
65 | + throw new \Exception('Error Unit: '.$unit, 400); |
|
66 | 66 | } |
67 | 67 | // conv unit |
68 | 68 | $unit = self::$_options['unitMap'][$unit]; |
69 | 69 | |
70 | 70 | if ($target != 'all' && !isset(self::$_options['unit'][$target])) { |
71 | - throw new \Exception('Error Target: ' . $target, 400); |
|
71 | + throw new \Exception('Error Target: '.$target, 400); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /* Setting */ |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | if (isset(self::$_options['unit'][$target])) { |
96 | 96 | return !isset(self::$_options['unitMap'][$unit]) ? self::$_options['unit'][$target] : self::$_options['unitMap'][$unit]; |
97 | 97 | } else { |
98 | - throw new \Exception('Error Target: ' . $target, 400); |
|
98 | + throw new \Exception('Error Target: '.$target, 400); |
|
99 | 99 | } |
100 | 100 | } |
101 | 101 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public static function sort(array $timePeriods) |
33 | 33 | { |
34 | 34 | // Closure in PHP 7.0.X loop maybe die |
35 | - usort($timePeriods, function ($a, $b) { |
|
35 | + usort($timePeriods, function($a, $b) { |
|
36 | 36 | if ($a[0] == $b[0]) { |
37 | 37 | // Start time is equal, compare end time |
38 | 38 | $r = $a[1] < $b[1] ? -1 : 1; |