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 (5c3307)
by t
02:57
created
src/ihelpers/Strings.php 1 patch
Spacing   +10 added lines, -10 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
     /**
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
      */
241 241
     public static function split($string)
242 242
     {
243
-        return (array) preg_split('/(?<!^)(?!$)/u', $string);
243
+        return (array)preg_split('/(?<!^)(?!$)/u', $string);
244 244
     }
245 245
 
246 246
     /**
@@ -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
     /**
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
         } elseif (false === $returnArray) {
539 539
             return implode('', $result);
540 540
         } else {
541
-            return implode((string) $returnArray, $result);
541
+            return implode((string)$returnArray, $result);
542 542
         }
543 543
     }
544 544
 
@@ -552,8 +552,8 @@  discard block
 block discarded – undo
552 552
      */
553 553
     public static function toPinyinFirst($text, $returnArray = false)
554 554
     {
555
-        $array = (array) self::toPinyin($text, true);
556
-        $result = array_map(function ($row) {
555
+        $array = (array)self::toPinyin($text, true);
556
+        $result = array_map(function($row) {
557 557
             return self::sub($row, 0, 1);
558 558
         }, $array);
559 559
         if (true === $returnArray) {
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
         } elseif (false === $returnArray) {
562 562
             return implode('', $result);
563 563
         } else {
564
-            return implode((string) $returnArray, $result);
564
+            return implode((string)$returnArray, $result);
565 565
         }
566 566
     }
567 567
 
Please login to merge, or discard this patch.
src/icomponents/file/SftpFile.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,13 +44,13 @@
 block discarded – undo
44 44
         C::assertFunction('ssh2_connect', '请开启 ssh2 扩展');
45 45
         C::assertTrue(Arrays::keyExistsAll(['host', 'username', 'password'], $config, $diff), '缺少 ' . implode(',', $diff) . ' 参数');
46 46
         $this->_conn = ssh2_connect(
47
-            (string) I::get($config, 'host'),
48
-            (int) I::get($config, 'port', 22),
49
-            (array) I::get($config, 'methods', []),
50
-            (array) I::get($config, 'callback', [])
47
+            (string)I::get($config, 'host'),
48
+            (int)I::get($config, 'port', 22),
49
+            (array)I::get($config, 'methods', []),
50
+            (array)I::get($config, 'callback', [])
51 51
         );
52 52
         C::assertNotFalse($this->_conn, '连接失败');
53
-        C::assertNotFalse(ssh2_auth_password($this->_conn, (string) I::get($config, 'username'), (string) I::get($config, 'password')), '账号密码错误');
53
+        C::assertNotFalse(ssh2_auth_password($this->_conn, (string)I::get($config, 'username'), (string)I::get($config, 'password')), '账号密码错误');
54 54
         $this->_sftp = ssh2_sftp($this->_conn);
55 55
         C::assertNotFalse($this->_sftp, '初始化 sftp 失败');
56 56
     }
Please login to merge, or discard this patch.