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 ( ba3c37...c752e6 )
by cao
11:15
created
src/Utils/SafeFileWriter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,15 +16,15 @@
 block discarded – undo
16 16
      * @param boolean $overwrite 是否覆盖已有文件
17 17
      * @return boolean
18 18
      */
19
-    static public function write($path, $data, $overwrite = true){
19
+    static public function write($path, $data, $overwrite = true) {
20 20
         $path = str_replace('\\', '/', $path);
21 21
         $fileDir = dirname($path);
22 22
         $tmpFile = tempnam($fileDir, 'safe_writer_');
23 23
         false !== @file_put_contents($tmpFile, $data) or \PhpBoot\abort("write to file: $tmpFile failed");
24
-        if($overwrite){
24
+        if ($overwrite) {
25 25
             @unlink($path); //删除原始文件
26 26
         }
27
-        if(!rename($tmpFile, $path)){
27
+        if (!rename($tmpFile, $path)) {
28 28
             @unlink($tmpFile); //删除原始文件
29 29
             \PhpBoot\abort("write to file: $tmpFile failed");
30 30
             return false;
Please login to merge, or discard this patch.
src/Lock/FileLock.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
     public function lock($key, $ttl)
10 10
     {
11 11
         $path = sys_get_temp_dir().'/lock_252a8fdc9b944af99a9bc53d2aea08f1_'.$key;
12
-        if(SafeFileWriter::write($path, json_encode(['time'=>time(), 'ttl'=>$ttl]), false)){
12
+        if (SafeFileWriter::write($path, json_encode(['time'=>time(), 'ttl'=>$ttl]), false)) {
13 13
             $this->locked = true;
14 14
             return true;
15
-        }else{
15
+        }else {
16 16
             return false;
17 17
         }
18 18
     }
Please login to merge, or discard this patch.