@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | public static function sort(array $timePeriods) |
| 72 | 72 | { |
| 73 | 73 | // Closure in PHP 7.0.X loop maybe die |
| 74 | - usort($timePeriods, function ($a, $b) { |
|
| 74 | + usort($timePeriods, function($a, $b) { |
|
| 75 | 75 | if ($a[0] == $b[0]) { |
| 76 | 76 | // Start time is equal, compare end time |
| 77 | 77 | $r = $a[1] < $b[1] ? -1 : 1; |
@@ -834,13 +834,13 @@ discard block |
||
| 834 | 834 | { |
| 835 | 835 | /*** Arguments prepare ***/ |
| 836 | 836 | if (!isset(self::$_options['unitMap'][$unit])) { |
| 837 | - throw new \Exception('Error Unit: ' . $unit, 400); |
|
| 837 | + throw new \Exception('Error Unit: '.$unit, 400); |
|
| 838 | 838 | } |
| 839 | 839 | // conv unit |
| 840 | 840 | $unit = self::$_options['unitMap'][$unit]; |
| 841 | 841 | |
| 842 | 842 | if ($target != 'all' && !isset(self::$_options['unit'][$target])) { |
| 843 | - throw new \Exception('Error Target: ' . $target, 400); |
|
| 843 | + throw new \Exception('Error Target: '.$target, 400); |
|
| 844 | 844 | } |
| 845 | 845 | |
| 846 | 846 | /* Setting */ |
@@ -867,7 +867,7 @@ discard block |
||
| 867 | 867 | if (isset(self::$_options['unit'][$target])) { |
| 868 | 868 | return self::$_options['unit'][$target]; |
| 869 | 869 | } else { |
| 870 | - throw new \Exception('Error Target: ' . $target, 400); |
|
| 870 | + throw new \Exception('Error Target: '.$target, 400); |
|
| 871 | 871 | } |
| 872 | 872 | } |
| 873 | 873 | |