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.
Completed
Push — master ( 804d88...9de2aa )
by t
02:26
created
src/ihelpers/DateTime.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
     public static function today()
24 24
     {
25 25
         return [
26
-            mktime(0, 0, 0, (int) date('m'), (int) date('d'), (int) date('Y')),
27
-            mktime(23, 59, 59, (int) date('m'), (int) date('d'), (int) date('Y')),
26
+            mktime(0, 0, 0, (int)date('m'), (int)date('d'), (int)date('Y')),
27
+            mktime(23, 59, 59, (int)date('m'), (int)date('d'), (int)date('Y')),
28 28
         ];
29 29
     }
30 30
 
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public static function yesterday()
37 37
     {
38
-        $yesterday = (int) date('d') - 1;
38
+        $yesterday = (int)date('d') - 1;
39 39
         return [
40
-            mktime(0, 0, 0, (int) date('m'), $yesterday, (int) date('Y')),
41
-            mktime(23, 59, 59, (int) date('m'), $yesterday, (int) date('Y')),
40
+            mktime(0, 0, 0, (int)date('m'), $yesterday, (int)date('Y')),
41
+            mktime(23, 59, 59, (int)date('m'), $yesterday, (int)date('Y')),
42 42
         ];
43 43
     }
44 44
 
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public static function tomorrow()
51 51
     {
52
-        $tomorrow = (int) date('d') + 1;
52
+        $tomorrow = (int)date('d') + 1;
53 53
         return [
54
-            mktime(0, 0, 0, (int) date('m'), $tomorrow, (int) date('Y')),
55
-            mktime(23, 59, 59, (int) date('m'), $tomorrow, (int) date('Y')),
54
+            mktime(0, 0, 0, (int)date('m'), $tomorrow, (int)date('Y')),
55
+            mktime(23, 59, 59, (int)date('m'), $tomorrow, (int)date('Y')),
56 56
         ];
57 57
     }
58 58
 
@@ -106,8 +106,8 @@  discard block
 block discarded – undo
106 106
     public static function month()
107 107
     {
108 108
         return [
109
-            mktime(0, 0, 0, (int) date('m'), 1, (int) date('Y')),
110
-            mktime(23, 59, 59, (int) date('m'), (int) date('t'), (int) date('Y')),
109
+            mktime(0, 0, 0, (int)date('m'), 1, (int)date('Y')),
110
+            mktime(23, 59, 59, (int)date('m'), (int)date('t'), (int)date('Y')),
111 111
         ];
112 112
     }
113 113
 
@@ -118,8 +118,8 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public static function lastMonth()
120 120
     {
121
-        $begin = mktime(0, 0, 0, (int) date('m') - 1, 1, (int) date('Y'));
122
-        $end = mktime(23, 59, 59, (int) date('m') - 1, (int) date('t', $begin), (int) date('Y'));
121
+        $begin = mktime(0, 0, 0, (int)date('m') - 1, 1, (int)date('Y'));
122
+        $end = mktime(23, 59, 59, (int)date('m') - 1, (int)date('t', $begin), (int)date('Y'));
123 123
 
124 124
         return [$begin, $end];
125 125
     }
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
      */
132 132
     public static function nextMonth()
133 133
     {
134
-        $begin = mktime(0, 0, 0, (int) date('m') + 1, 1, (int) date('Y'));
135
-        $end = mktime(23, 59, 59, (int) date('m') + 1, (int) date('t', $begin), (int) date('Y'));
134
+        $begin = mktime(0, 0, 0, (int)date('m') + 1, 1, (int)date('Y'));
135
+        $end = mktime(23, 59, 59, (int)date('m') + 1, (int)date('t', $begin), (int)date('Y'));
136 136
 
137 137
         return [$begin, $end];
138 138
     }
@@ -145,8 +145,8 @@  discard block
 block discarded – undo
145 145
     public static function year()
146 146
     {
147 147
         return [
148
-            mktime(0, 0, 0, 1, 1, (int) date('Y')),
149
-            mktime(23, 59, 59, 12, 31, (int) date('Y')),
148
+            mktime(0, 0, 0, 1, 1, (int)date('Y')),
149
+            mktime(23, 59, 59, 12, 31, (int)date('Y')),
150 150
         ];
151 151
     }
152 152
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public static function lastYear()
159 159
     {
160
-        $year = (int) date('Y') - 1;
160
+        $year = (int)date('Y') - 1;
161 161
         return [
162 162
             mktime(0, 0, 0, 1, 1, $year),
163 163
             mktime(23, 59, 59, 12, 31, $year),
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
      */
172 172
     public static function nextYear()
173 173
     {
174
-        $year = (int) date('Y') + 1;
174
+        $year = (int)date('Y') + 1;
175 175
         return [
176 176
             mktime(0, 0, 0, 1, 1, $year),
177 177
             mktime(23, 59, 59, 12, 31, $year),
Please login to merge, or discard this patch.
src/ihelpers/Crypto.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -486,6 +486,6 @@
 block discarded – undo
486 486
         if (null === $this->_pemPublic) {
487 487
             throw new Exception("请使用 setPair 提供公钥");
488 488
         }
489
-        return (boolean) openssl_verify($data, $signature, $this->_pemPublic, $signType);
489
+        return (boolean)openssl_verify($data, $signature, $this->_pemPublic, $signType);
490 490
     }
491 491
 }
Please login to merge, or discard this patch.
src/ihelpers/Image.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function __construct($image)
28 28
     {
29 29
         $attributes = $this->__parseImage($image);
30
-        array_map(function ($value, $key) {
30
+        array_map(function($value, $key) {
31 31
             $this->_attributes[$key] = $value;
32 32
         }, array_values($attributes), array_keys($attributes));
33 33
         $this->_imageIn = $this->_attributes['object'];
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $zoomWidth *= $this->_attributes['width'];
151 151
             $zoomHeight *= $this->_attributes['height'];
152 152
         } else {
153
-            $zoom = (int) $zoom;
153
+            $zoom = (int)$zoom;
154 154
             $zoomWidth = $zoom * $this->_attributes['width'];
155 155
             $zoomHeight = $zoom * $this->_attributes['height'];
156 156
         }
@@ -252,7 +252,7 @@  discard block
 block discarded – undo
252 252
      */
253 253
     public function turnY()
254 254
     {
255
-        if($out =imagecreatetruecolor($this->_attributes['width'], $this->_attributes['height']) ){
255
+        if ($out = imagecreatetruecolor($this->_attributes['width'], $this->_attributes['height'])) {
256 256
             $this->_imageOut = $out;
257 257
             for ($x = 0; $x < $this->_attributes['width']; $x++) {
258 258
                 imagecopy($this->_imageOut, $this->_imageIn, $this->_attributes['width'] - $x - 1, 0, $x, 0, 1, $this->_attributes['height']);
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
      */
270 270
     public function turnX()
271 271
     {
272
-        if($out = imagecreatetruecolor($this->_attributes['width'], $this->_attributes['height'])){
272
+        if ($out = imagecreatetruecolor($this->_attributes['width'], $this->_attributes['height'])) {
273 273
             $this->_imageOut = $out;
274 274
             for ($y = 0; $y < $this->_attributes['height']; $y++) {
275 275
                 imagecopy($this->_imageOut, $this->_imageIn, 0, $this->_attributes['height'] - $y - 1, 0, $y, $this->_attributes['width'], 1);
Please login to merge, or discard this patch.