GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch dev (222007)
by t
06:48 queued 03:54
created
src/icomponents/excel/mathAndTrigonometry/MMAT.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $arr = [];
96 96
             for ($r = 0; $r < $row1; $r++) {
97 97
                 for ($c = 0; $c < $col2; $c++) {
98
-                    $arr[$r][$c] = array_sum(array_map(function ($a1, $a2) {
98
+                    $arr[$r][$c] = array_sum(array_map(function($a1, $a2) {
99 99
                         return $a1 * $a2;
100 100
                     }, $array1[$r], Arrays::column($array2, $c)));
101 101
                 }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     public static function multinomial($number1)
145 145
     {
146 146
         $numbers = is_array($number1) ? $number1 : func_get_args();
147
-        return self::fact(array_sum($numbers)) / array_product(array_map(function ($num) {
147
+        return self::fact(array_sum($numbers)) / array_product(array_map(function($num) {
148 148
             return self::fact($num);
149 149
         }, $numbers));
150 150
     }
Please login to merge, or discard this patch.
src/icomponents/excel/mathAndTrigonometry/SMAT.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         $k = 1;
80 80
         for ($i = 0; $i < $row; $i++) {
81 81
             for ($j = 0; $j < $col; $j++) {
82
-                $array[$i][$j] = $start + ($k++ - 1) * $step;
82
+                $array[$i][$j] = $start + ($k++ -1) * $step;
83 83
             }
84 84
         }
85 85
         return $array;
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
                 array_push($arr[$i], $array[$i]);
217 217
             }
218 218
         }
219
-        return array_sum(array_map(function ($rows) {
219
+        return array_sum(array_map(function($rows) {
220 220
             return array_product($rows);
221 221
         }, $arr));
222 222
     }
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
     public static function sumsq($number1)
232 232
     {
233 233
         $numbers = is_array($number1) ? $number1 : func_get_args();
234
-        return array_sum(array_map(function ($num) {
234
+        return array_sum(array_map(function($num) {
235 235
             return $num * $num;
236 236
         }, $numbers));
237 237
     }
Please login to merge, or discard this patch.
src/icomponents/excel/mathAndTrigonometry/QMAT.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
      */
24 24
     public static function quotient($numberator, $denominator)
25 25
     {
26
-        return (int) ($numberator / $denominator);
26
+        return (int)($numberator / $denominator);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/icomponents/excel/mathAndTrigonometry/OMAT.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,6 @@
 block discarded – undo
27 27
         if ($number % 2 == 0) {
28 28
             $number += 1;
29 29
         }
30
-        return (int) ($sign * $number);
30
+        return (int)($sign * $number);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/icomponents/excel/mathAndTrigonometry/FMAT.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public static function fact($number)
26 26
     {
27
-        $number = (int) floor($number);
27
+        $number = (int)floor($number);
28 28
         if ($number == 0) {
29 29
             return 1;
30 30
         } elseif ($number < 0) {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         }
55 55
         $result = 1;
56 56
         $isEven = $number % 2 == 0;
57
-        foreach (Arrays::rangeGenerator($isEven ? 2 : 1, (int) $number, 2) as $num) {
57
+        foreach (Arrays::rangeGenerator($isEven ? 2 : 1, (int)$number, 2) as $num) {
58 58
             $result *= $num;
59 59
         }
60 60
         return $result;
Please login to merge, or discard this patch.
src/icomponents/excel/mathAndTrigonometry/EMAT.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         if ($number % 2 == 1) {
30 30
             $number += 1;
31 31
         }
32
-        return (int) ($sign * $number);
32
+        return (int)($sign * $number);
33 33
     }
34 34
 
35 35
     /**
Please login to merge, or discard this patch.
src/icomponents/excel/mathAndTrigonometry/RMAT.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public static function rand()
34 34
     {
35
-        return mt_rand(0, (int) self::power(10, 10)) / self::power(10, 10);
35
+        return mt_rand(0, (int)self::power(10, 10)) / self::power(10, 10);
36 36
     }
37 37
 
38 38
     /**
@@ -48,11 +48,11 @@  discard block
 block discarded – undo
48 48
      */
49 49
     public static function randarray($row = 1, $col = 1, $min = 0, $max = null, $isInt = false)
50 50
     {
51
-        null === $max && $max = (int) pow(10, 10);
51
+        null === $max && $max = (int)pow(10, 10);
52 52
         $array = [];
53 53
         for ($i = 0; $i < $row; $i++) {
54 54
             for ($j = 0; $j < $col; $j++) {
55
-                $array[$i][$j] = mt_rand($min, $max - 1) + ($isInt ? 0 : mt_rand(0, (int) pow(10, 10)) / pow(10, 10));
55
+                $array[$i][$j] = mt_rand($min, $max - 1) + ($isInt ? 0 : mt_rand(0, (int)pow(10, 10)) / pow(10, 10));
56 56
             }
57 57
         }
58 58
         return $array;
Please login to merge, or discard this patch.
src/I.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,9 +75,9 @@
 block discarded – undo
75 75
                     } elseif (property_exists($mixed, $key) && null !== $mixed->$key) {
76 76
                         $mixed = $mixed->$key;
77 77
                     } else {
78
-                        try{
78
+                        try {
79 79
                             $mixed = $mixed->$key;
80
-                        }catch(Exception $e){
80
+                        } catch (Exception $e) {
81 81
                             return $defaultValue;
82 82
                         }
83 83
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
                     } else {
78 78
                         try{
79 79
                             $mixed = $mixed->$key;
80
-                        }catch(Exception $e){
80
+                        } catch(Exception $e){
81 81
                             return $defaultValue;
82 82
                         }
83 83
 
Please login to merge, or discard this patch.
src/iapis/Meteorology.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function fetchProvinces()
22 22
     {
23 23
         $this->fetchCitys();
24
-        $this->_toArrayCall = function ($array) {
24
+        $this->_toArrayCall = function($array) {
25 25
             return Arrays::columns($array, ['code', 'name']);
26 26
         };
27 27
     }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         $res = Http::get('http://www.nmc.cn/f/rest/province/' . $provinceCode);
39 39
         $this->_result = Json::decode($res);
40
-        $this->_toArrayCall = function ($array) {
40
+        $this->_toArrayCall = function($array) {
41 41
             return Arrays::columns($array, ['code', 'city', 'province']);
42 42
         };
43 43
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $res = Http::get('http://www.nmc.cn/f/rest/real/' . $cityId);
71 71
         $this->_result = Json::decode($res);
72
-        $this->_toArrayCall = function ($array) {
72
+        $this->_toArrayCall = function($array) {
73 73
             return Arrays::columns($array, [
74 74
                 'publish_time',
75 75
                 'airpressure' => 'weather.airpressure',
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     {
103 103
         $res = Http::get('http://www.nmc.cn/f/rest/aqi/' . $cityId);
104 104
         $this->_result = Json::decode($res);
105
-        $this->_toArrayCall = function ($array) {
105
+        $this->_toArrayCall = function($array) {
106 106
             return Arrays::columns($array, [
107 107
                 'forecasttime',
108 108
                 'aq',
@@ -125,10 +125,10 @@  discard block
 block discarded – undo
125 125
      *
126 126
      * @return void
127 127
      */
128
-    public function fetchToday($cityId){
128
+    public function fetchToday($cityId) {
129 129
         $res = Http::get('http://www.nmc.cn/f/rest/passed/' . $cityId);
130 130
         $this->_result = Json::decode($res);
131
-        $this->_toArrayCall = function ($array) {
131
+        $this->_toArrayCall = function($array) {
132 132
             return Arrays::columns($array, [
133 133
                 'time',
134 134
                 'humidity',
Please login to merge, or discard this patch.