@@ -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; |
@@ -833,13 +833,13 @@ discard block |
||
833 | 833 | { |
834 | 834 | /*** Arguments prepare ***/ |
835 | 835 | if (!isset(self::$_options['unitMap'][$unit])) { |
836 | - throw new \Exception('Error Unit: ' . $unit, 400); |
|
836 | + throw new \Exception('Error Unit: '.$unit, 400); |
|
837 | 837 | } |
838 | 838 | // conv unit |
839 | 839 | $unit = self::$_options['unitMap'][$unit]; |
840 | 840 | |
841 | 841 | if ($target != 'all' && !isset(self::$_options['unit'][$target])) { |
842 | - throw new \Exception('Error Target: ' . $target, 400); |
|
842 | + throw new \Exception('Error Target: '.$target, 400); |
|
843 | 843 | } |
844 | 844 | |
845 | 845 | /* Setting */ |
@@ -866,7 +866,7 @@ discard block |
||
866 | 866 | if (isset(self::$_options['unit'][$target])) { |
867 | 867 | return self::$_options['unit'][$target]; |
868 | 868 | } else { |
869 | - throw new \Exception('Error Target: ' . $target, 400); |
|
869 | + throw new \Exception('Error Target: '.$target, 400); |
|
870 | 870 | } |
871 | 871 | } |
872 | 872 | |
@@ -1034,6 +1034,6 @@ discard block |
||
1034 | 1034 | break; |
1035 | 1035 | } |
1036 | 1036 | |
1037 | - return (int)$time; |
|
1037 | + return (int) $time; |
|
1038 | 1038 | } |
1039 | 1039 | } |