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 ( c752e6...86709a )
by cao
17:38
created
src/Controller/Annotations/ParamAnnotationHandler.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
             $params = new AnnotationParams($text, 2);
26 26
             $paramName = substr($params->getParam(0), 1);
27 27
             $paramDoc = $params->getRawParam(1, '');
28
-        }else{
28
+        } else{
29 29
             $params = new AnnotationParams($text, 3);
30 30
             if ($params->count() >=2 && substr($params->getParam(1), 0, 1) == '$'){
31 31
                 $paramType = $params->getParam(0); //TODO 检测类型是否合法
32 32
                 $paramName = substr($params->getParam(1), 1);
33 33
                 $paramDoc = $params->getRawParam(2, '');
34
-            }else{
34
+            } else{
35 35
                 \PhpBoot\abort(new AnnotationSyntaxException("@param $text syntax error"));
36 36
             }
37 37
         }
Please login to merge, or discard this patch.
src/Controller/Annotations/BindAnnotationHandler.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
                 $handler->setMapping($params[0], $return);
45 45
             }
46 46
 
47
-        }elseif($ann->parent->name == 'param'){
47
+        } elseif($ann->parent->name == 'param'){
48 48
             list($paramType, $paramName, $paramDoc) = ParamAnnotationHandler::getParamInfo($ann->parent->description);
49 49
 
50 50
             $paramMeta = $route->getRequestHandler()->getParamMeta($paramName);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
                         ContainerFactory::create($entityBuilder, $paramMeta->type)
60 60
                     )
61 61
                 );
62
-            }else{
62
+            } else{
63 63
                 $paramMeta->source = $params[0];
64 64
             }
65 65
         }
Please login to merge, or discard this patch.
src/Controller/Annotations/ValidateAnnotationHandler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             $paramMeta = $route->getRequestHandler()->getParamMeta($paramName);
39 39
             if($params->count()>1){
40 40
                 $paramMeta->validation = [$params[0], $params[1]];
41
-            }else{
41
+            } else{
42 42
                 $paramMeta->validation = $params[0];
43 43
                 if($paramMeta->validation) {
44 44
                     $v = new Validator();
Please login to merge, or discard this patch.
src/Cache/CheckableCache.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
                     }
64 64
                     
65 65
                 }
66
-            }else if ($ttl != 0 && ($createdTime + $ttl < time())) {
66
+            } else if ($ttl != 0 && ($createdTime + $ttl < time())) {
67 67
                 $this->impl->delete($name);
68 68
                 return $default;
69 69
             }
Please login to merge, or discard this patch.
src/Cache/FileModifiedChecker.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,14 +14,14 @@
 block discarded – undo
14 14
         $fileNames = array();
15 15
         if(is_string($fileName)){
16 16
             $fileNames[]=$fileName;
17
-        }else{
17
+        } else{
18 18
             is_array($fileName) or \PhpBoot\abort(new \InvalidArgumentException("string or array is required by param 0"));
19 19
             $fileNames = $fileName;
20 20
         }
21 21
         foreach ($fileNames as $fileName){
22 22
             if(is_file($fileName)){
23 23
                 $this->fileName[$fileName] = @filemtime($fileName);
24
-            }else {
24
+            } else {
25 25
                 $this->fileName[$fileName] = @filemtime($fileName);
26 26
                 if(!is_dir($fileName)){
27 27
                     continue;
Please login to merge, or discard this patch.
src/Application.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             $default += [
88 88
                 Cache::class => \DI\object(ApcCache::class)
89 89
             ];
90
-        }else{
90
+        } else{
91 91
             $default += [
92 92
                 Cache::class => \DI\object(FilesystemCache::class)
93 93
                     ->constructorParameter('directory', sys_get_temp_dir())
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
                     }
271 271
                     return $next($request);
272 272
 
273
-                }elseif ($res[0] == Dispatcher::NOT_FOUND) {
273
+                } elseif ($res[0] == Dispatcher::NOT_FOUND) {
274 274
                     \PhpBoot\abort(new NotFoundHttpException(), [$request->getMethod(), $uri]);
275 275
                 } elseif ($res[0] == Dispatcher::METHOD_NOT_ALLOWED) {
276 276
                     \PhpBoot\abort(new MethodNotAllowedHttpException($res[1]), [$request->getMethod(), $uri]);
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
             }
295 295
             return $response;
296 296
 
297
-        }catch (\Exception $e){
297
+        } catch (\Exception $e){
298 298
             $renderer->render($e);
299 299
         }
300 300
 
Please login to merge, or discard this patch.
src/functions.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
         if($error instanceof \Exception){
22 22
             $e = $error;
23 23
             $message = "exception '".get_class($error)."' with message {$error->getMessage()}";
24
-        }else{
24
+        } else{
25 25
             $e = new \RuntimeException($error);
26 26
             $message = $error;
27 27
         }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
         if($e->getFile() == __FILE__){
31 31
             $file = $trace[0]['file'];
32 32
             $line = $trace[0]['line'];
33
-        }else{
33
+        } else{
34 34
             $file = $e->getFile();
35 35
             $line = $e->getLine();
36 36
         }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         if(is_object($entity)){
55 55
             return $db->getApp()->make(ModelWithObject::class, ['db'=>$db, 'entity'=>$entity]);
56
-        }else{
56
+        } else{
57 57
             return $db->getApp()->make(ModelWithClass::class, ['db'=>$db, 'entityName'=>$entity]);
58 58
         }
59 59
     }
Please login to merge, or discard this patch.
src/DB/Context.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
     public function appendSql($sql, $addSpace=true){
18 18
         if($this->sql == ''){
19 19
             $this->sql = $sql;
20
-        }else{
20
+        } else{
21 21
             if($addSpace){
22 22
                 $this->sql = $this->sql.' '.$sql;
23
-            }else{
23
+            } else{
24 24
                 $this->sql = $this->sql.$sql;
25 25
             }
26 26
         }
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     {
38 38
         if($resultHandler = $this->resultHandler){
39 39
             return $resultHandler($result);
40
-        }else{
40
+        } else{
41 41
             return $result;
42 42
         }
43 43
     }
Please login to merge, or discard this patch.
src/DB/NestedStringCut.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         if($pos !== false){
64 64
             $this->snippets[$ori] = substr($str, $ori, $pos-$ori);
65 65
             $pos ++;
66
-        }else{
66
+        } else{
67 67
             $this->snippets[$ori] = substr($str, $ori);
68 68
         }
69 69
         return $pos;
Please login to merge, or discard this patch.