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/Lock/ApcLock.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
         if(apc_add($key, 1, $ttl)){
10 10
             $this->locked = true;
11 11
             return true;
12
-        }else{
12
+        } else{
13 13
             return false;
14 14
         }
15 15
     }
Please login to merge, or discard this patch.
src/Entity/EntityContainer.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
                     || $p->container instanceof ArrayContainer){
29 29
                     if(!$var){
30 30
                         $var = [];
31
-                    }elseif(is_string($var)){
31
+                    } elseif(is_string($var)){
32 32
                         $var = json_decode($var, true);
33 33
                         !json_last_error() or \PhpBoot\abort(new \InvalidArgumentException(__METHOD__.' failed while json_decode with '.json_last_error_msg()));
34 34
                     }
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             if($p->validation){
40 40
                 if(is_array($p->validation)){
41 41
                     $vld->rule($p->validation[0], $p->name.'.'.$p->validation[1]);
42
-                }else{
42
+                } else{
43 43
                     $vld->rule($p->validation, $p->name);
44 44
                 }
45 45
             }
@@ -75,10 +75,10 @@  discard block
 block discarded – undo
75 75
         foreach ($this->properties as $p){
76 76
             if($p->isOptional){
77 77
                 $obj->{$p->name} = $p->default;
78
-            }elseif($p->container){
78
+            } elseif($p->container){
79 79
                 $var = $p->container->makeExample();
80 80
                 $obj->{$p->name} = $var;
81
-            }else{
81
+            } else{
82 82
                 $obj->{$p->name} = null;
83 83
             }
84 84
 
Please login to merge, or discard this patch.
src/Entity/EntityContainerBuilder.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     {
37 37
         if($annotations){
38 38
             parent::__construct($annotations, $cache);
39
-        }else{
39
+        } else{
40 40
             parent::__construct(self::$DEFAULT_ANNOTATIONS, $cache);
41 41
         }
42 42
         $this->factory = $factory;
Please login to merge, or discard this patch.
src/Entity/ContainerFactory.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,15 +13,15 @@
 block discarded – undo
13 13
         $getter = function($type)use($builder){
14 14
             if(!$type || $type == 'mixed'){
15 15
                 return new MixedTypeContainer();
16
-            }elseif (TypeHint::isScalarType($type)){
16
+            } elseif (TypeHint::isScalarType($type)){
17 17
                 return new ScalarTypeContainer($type);
18
-            }else{
18
+            } else{
19 19
                 return $builder->build($type);
20 20
             }
21 21
         };
22 22
         if(TypeHint::isArray($type)){
23 23
             $container = ArrayContainer::create($type, $getter);
24
-        }else{
24
+        } else{
25 25
             $container = $getter($type);
26 26
         }
27 27
         return $container;
Please login to merge, or discard this patch.
src/Entity/Annotations/ValidateAnnotationHandler.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
             $property or \PhpBoot\abort($container->getClassName()." property $target not exist ");
27 27
             if($params->count()>1){
28 28
                 $property->validation = [$params->getParam(0), $params->getParam(1)];
29
-            }else{
29
+            } else{
30 30
                 $property->validation = $params->getParam(0);
31 31
                 if($property->validation){
32 32
                     $v = new Validator();
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
                 }
38 38
             }
39 39
 
40
-        }else{
40
+        } else{
41 41
             \PhpBoot\abort(new AnnotationSyntaxException(
42 42
                 "The annotation \"@{$ann->name} {$ann->description}\" of {$container->getClassName()}::{$ann->parent->name} require 1 param, 0 given"
43 43
             ));
Please login to merge, or discard this patch.
src/Entity/Annotations/VarAnnotationHandler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
                 // TODO 防止递归死循环
38 38
                 $property->container = ContainerFactory::create($builder, $property->type);
39 39
             }
40
-        }else{
40
+        } else{
41 41
             \PhpBoot\abort(new AnnotationSyntaxException(
42 42
                 "The annotation \"@{$ann->name} {$ann->description}\" of {$container->getClassName()}::{$ann->parent->name} require 1 param, 0 given"
43 43
             ));
Please login to merge, or discard this patch.
src/DI/AnnotationReader.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             $context = $this->loader->build($name);
27 27
             /**@var $context ObjectDefinitionContext */
28 28
             $definition = $context->definition;
29
-        }else{
29
+        } else{
30 30
             $definition = new ObjectDefinition($name);
31 31
         }
32 32
 
Please login to merge, or discard this patch.
src/DI/Annotations/InjectAnnotationHandler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                 Logger::debug("The annotation \"@{$ann->name} {$ann->description}\" of $className should be used with a param or @var");
33 33
             }
34 34
             $entryName = $context->vars[$target];
35
-        }else{
35
+        } else{
36 36
             $entryName = $params[0];
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/ORM/ModelWithObject.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
             if(isset($this->object->$column)){
29 29
                 if(is_array($this->object->$column) || is_object($this->object->$column)){
30 30
                     $data[$column] = json_encode($this->object->$column);
31
-                }else{
31
+                } else{
32 32
                     $data[$column] = $this->object->$column;
33 33
                 }
34 34
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             if($pk != $column && isset($this->object->$column)){
50 50
                 if(is_array($this->object->$column) || is_object($this->object->$column)){
51 51
                     $data[$column] = json_encode($this->object->$column);
52
-                }else{
52
+                } else{
53 53
                     $data[$column] = $this->object->$column;
54 54
                 }
55 55
             }
Please login to merge, or discard this patch.