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 ( 24ae15...d40ff0 )
by t
05:40 queued 03:33
created
src/ihelpers/Strings.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
      */
113 113
     public static function toCamel($string)
114 114
     {
115
-        return lcfirst(preg_replace_callback('/_+([a-z0-9_\x7f-\xff])/', function ($matches) {
115
+        return lcfirst(preg_replace_callback('/_+([a-z0-9_\x7f-\xff])/', function($matches) {
116 116
             return ucfirst($matches[1]);
117 117
         }, strtolower($string)));
118 118
     }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public static function isStartsWith($string, $search)
145 145
     {
146
-        return (string) $search !== "" && mb_strpos($string, $search) === 0;
146
+        return (string)$search !== "" && mb_strpos($string, $search) === 0;
147 147
     }
148 148
 
149 149
     /**
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      */
159 159
     public static function isEndsWith($string, $search)
160 160
     {
161
-        return (string) $search !== "" && mb_substr($string, -static::length($search)) === $search;
161
+        return (string)$search !== "" && mb_substr($string, -static::length($search)) === $search;
162 162
     }
163 163
 
164 164
     /**
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public static function isContains($string, $search, &$pos = null)
176 176
     {
177
-        return (string) $search !== "" && ($pos = mb_strpos($string, $search)) !== false;
177
+        return (string)$search !== "" && ($pos = mb_strpos($string, $search)) !== false;
178 178
     }
179 179
 
180 180
     /**
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
      */
296 296
     public static function toNumber($string)
297 297
     {
298
-        return (double) $string;
298
+        return (double)$string;
299 299
     }
300 300
 
301 301
     /**
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
         $salt = sprintf('$2y$%02d$', $cost);
352 352
         $salt .= str_replace('+', '.', substr(base64_encode(self::random(20)), 0, 22));
353 353
         $hash = crypt($password, $salt);
354
-        C::assertNotTrue(!is_string($hash) || strlen($hash) !== 60 , '未知错误');
354
+        C::assertNotTrue(!is_string($hash) || strlen($hash) !== 60, '未知错误');
355 355
         return $hash;
356 356
     }
357 357
 
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
      */
466 466
     public static function looksLike($string1, $string2, $array = ['0oO', 'yv', 'ij', '1lI'])
467 467
     {
468
-        if(self::length($string1) !== self::length($string2)){
468
+        if (self::length($string1) !== self::length($string2)) {
469 469
             return false;
470 470
         }
471 471
         $array1 = self::split($string1);
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
         } elseif (false === $returnArray) {
536 536
             return implode('', $result);
537 537
         } else {
538
-            return implode((string) $returnArray, $result);
538
+            return implode((string)$returnArray, $result);
539 539
         }
540 540
     }
541 541
 
@@ -550,7 +550,7 @@  discard block
 block discarded – undo
550 550
     public static function toPinyinFirst($text, $returnArray = false)
551 551
     {
552 552
         $array = self::toPinyin($text, true);
553
-        $result = array_map(function ($row) {
553
+        $result = array_map(function($row) {
554 554
             return self::sub($row, 0, 1);
555 555
         }, $array);
556 556
         if (true === $returnArray) {
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
         } elseif (false === $returnArray) {
559 559
             return implode('', $result);
560 560
         } else {
561
-            return implode((string) $returnArray, $result);
561
+            return implode((string)$returnArray, $result);
562 562
         }
563 563
     }
564 564
 
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
             return $string;
584 584
         }
585 585
         if (3 === Arrays::count($modeArray)) {
586
-            C::assertTrue('?' === $modeArray[1] , '模式错误,三段时,? 符必须在中间,例如:3?4');
586
+            C::assertTrue('?' === $modeArray[1], '模式错误,三段时,? 符必须在中间,例如:3?4');
587 587
             return self::sub($string, 0, $modeArray[0]) . $hideChar . self::sub($string, $length - $modeArray[2], $modeArray[2]);
588 588
         } elseif (2 === $modeCount) {
589 589
             if ('?' === $modeArray[0]) {
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
@@ -480,6 +480,6 @@
 block discarded – undo
480 480
     public function isVerify($data, $signature, $signType = OPENSSL_ALGO_SHA256)
481 481
     {
482 482
         C::assertNotTrue(null === $this->_pemPublic, '请使用 setPair 提供公钥');
483
-        return (boolean) openssl_verify($data, $signature, $this->_pemPublic, $signType);
483
+        return (boolean)openssl_verify($data, $signature, $this->_pemPublic, $signType);
484 484
     }
485 485
 }
Please login to merge, or discard this patch.
src/ihelpers/Json.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
         if (false === self::isJson($json)) {
92 92
             $json = '[]';
93 93
         }
94
-        echo $json;die;
94
+        echo $json; die;
95 95
     }
96 96
 
97 97
     /**
Please login to merge, or discard this patch.
src/ihelpers/Color.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
                 // 接收十六进制(如:0xFF0000和'FF0000')和颜色名字
309 309
                 $hex = I::get(self::$_names, $color, $color);
310 310
                 if ($hex) {
311
-                    C::assertNotTrue($hex > 0xFFFFFF || $hex < 0 || hexdec($hex) === 0 && $hex !== '000000' && $hex !== '#000000' , '错误的颜色值:' . $color);
311
+                    C::assertNotTrue($hex > 0xFFFFFF || $hex < 0 || hexdec($hex) === 0 && $hex !== '000000' && $hex !== '#000000', '错误的颜色值:' . $color);
312 312
                 }
313 313
                 // 如果是字符形式的十六进制数,则先转成十进制再作后续运算
314 314
                 if (is_string($hex)) {
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
     {
334 334
         $type = $this->_type;
335 335
         if (self::TYPE_RGB === $type) {
336
-            $this->_color = array_map(function ($i) {
336
+            $this->_color = array_map(function($i) {
337 337
                 return (0.5 + $i) | 0;
338 338
             }, $this->_color);
339 339
         } elseif (self::TYPE_HEX === $type) {
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
     {
387 387
         $type = $this->_type;
388 388
         if (self::TYPE_CMYK === $type) {
389
-            $this->_color = array_map(function ($i) {
389
+            $this->_color = array_map(function($i) {
390 390
                 return sprintf('%01.4f', $i);
391 391
             }, $this->_color);
392 392
             $this->_type = self::TYPE_CMYK;
Please login to merge, or discard this patch.
src/icomponents/file/LocalFile.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     {
51 51
         setlocale(LC_ALL, $locale);
52 52
         clearstatcache();
53
-        $this->_functions['loader'] = function ($fileName) {
53
+        $this->_functions['loader'] = function($fileName) {
54 54
             $hashName = $this->__hash($fileName);
55 55
             $this->_attributes[$hashName] = I::get($this->_attributes, $hashName, [
56 56
                 'isCached' => false,
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
                         }
84 84
                     }
85 85
                     curl_close($curl);
86
-                } elseif ((bool) ini_get('allow_url_fopen')) {
87
-                    $headArray = (array) get_headers($fileName, 1);
86
+                } elseif ((bool)ini_get('allow_url_fopen')) {
87
+                    $headArray = (array)get_headers($fileName, 1);
88 88
                     if (preg_match('/200/', $headArray[0])) {
89 89
                         $this->_attributes[$hashName]['isExists'] = true;
90 90
                         $this->_attributes[$hashName]['fileSize'] = $headArray['Content-Length'];
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
                 } else {
93 93
                     $url = parse_url($fileName);
94 94
                     $host = $url['host'];
95
-                    $path = (string) I::get($url, 'path', '/');
96
-                    $port = (int) I::get($url, 'port', 80);
95
+                    $path = (string)I::get($url, 'path', '/');
96
+                    $port = (int)I::get($url, 'port', 80);
97 97
                     $fp = fsockopen($host, $port);
98 98
                     if (is_resource($fp)) {
99 99
                         $header = [
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
      */
147 147
     private function __file($file)
148 148
     {
149
-        return (string) I::getAlias($file);
149
+        return (string)I::getAlias($file);
150 150
     }
151 151
 
152 152
     /**
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
      */
331 331
     public function getFilesize($fileName)
332 332
     {
333
-        return (int) $this->attribute($fileName, 'fileSize');
333
+        return (int)$this->attribute($fileName, 'fileSize');
334 334
     }
335 335
 
336 336
     /**
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
      */
363 363
     public function isFile($file)
364 364
     {
365
-        return (bool) $this->attribute($file, 'isExists');
365
+        return (bool)$this->attribute($file, 'isExists');
366 366
     }
367 367
 
368 368
     /**
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
                 chmod($subFile, $mode);
559 559
             }
560 560
         }
561
-        return (bool) chmod($file, $mode);
561
+        return (bool)chmod($file, $mode);
562 562
     }
563 563
 
564 564
     /**
Please login to merge, or discard this patch.