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
Push — master ( dccf06...ba3c37 )
by cao
05:12
created
src/Lock/LocalAutoLock.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         $key = 'lock:'.$key;
13 13
         if(function_exists('apc_add')){
14 14
             $lock = new ApcLock();
15
-        }else{
15
+        } else{
16 16
             $lock = new FileLock();
17 17
         }
18 18
         try{
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             }
30 30
             //嵌套加锁
31 31
             self::$currentLock[$key]++;
32
-        }catch (\Exception $e){
32
+        } catch (\Exception $e){
33 33
             if($error){
34 34
                 return $error();
35 35
             }
@@ -38,12 +38,12 @@  discard block
 block discarded – undo
38 38
         $res = null;
39 39
         try{
40 40
             $res = $success();
41
-        }catch (\Exception $e){
41
+        } catch (\Exception $e){
42 42
             self::$currentLock[$key]--;
43 43
             if(self::$currentLock[$key] == 0){
44 44
                 try{
45 45
                     $lock->unlock($key);
46
-                }catch (\Exception $e){
46
+                } catch (\Exception $e){
47 47
 
48 48
                 }
49 49
             }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         if(self::$currentLock[$key] == 0){
54 54
             try{
55 55
                 $lock->unlock($key);
56
-            }catch (\Exception $e){
56
+            } catch (\Exception $e){
57 57
 
58 58
             }
59 59
         }
Please login to merge, or discard this patch.
src/Lock/FileLock.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 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.