Passed
Push — master ( b06595...38eb84 )
by Mars
01:42
created
src/classes/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/classes/DataProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.