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 ( e28ef8...589b37 )
by cao
03:51
created
src/DI/DIMetaLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 
11 11
 class DIMetaLoader extends ContainerBuilder
12 12
 {
13
-    static $DEFAULT_ANNOTATIONS=[
13
+    static $DEFAULT_ANNOTATIONS = [
14 14
         [VarAnnotationHandler::class, "properties.*.children[?name=='var'][]"],
15 15
         [InjectAnnotationHandler::class, "properties.*.children[?name=='inject'][]"]
16 16
     ];
Please login to merge, or discard this patch.
src/DI/AnnotationReader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         $class = new \ReflectionClass($name);
25
-        if(isset($name::$__enableDIAnnotations__) && $name::$__enableDIAnnotations__){
25
+        if (isset($name::$__enableDIAnnotations__) && $name::$__enableDIAnnotations__) {
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
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,19 +20,19 @@
 block discarded – undo
20 20
     public function __invoke(ObjectDefinitionContext $context, $ann)
21 21
     {
22 22
         $className = $context->definition->getClassName();
23
-        if(!$ann->parent){
23
+        if (!$ann->parent) {
24 24
             Logger::debug("The annotation \"@{$ann->name} {$ann->description}\" of $className should be used with parent");
25 25
         }
26 26
         $target = $ann->parent->name;
27 27
         // @inject a.b.c
28 28
         $params = new AnnotationParams($ann->description, 3);
29
-        if(count($params) == 0){
29
+        if (count($params) == 0) {
30 30
             //查找@var 定义的变量
31
-            if(!isset($context->vars[$target])){
31
+            if (!isset($context->vars[$target])) {
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/DI/Annotations/VarAnnotationHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function __invoke(ObjectDefinitionContext $context, $ann)
24 24
     {
25 25
         $className = $context->definition->getClassName();
26
-        if(!$ann->parent){
26
+        if (!$ann->parent) {
27 27
             Logger::debug("The annotation \"@{$ann->name} {$ann->description}\" of $className should be used with parent");
28 28
         }
29 29
         $target = $ann->parent->name;
Please login to merge, or discard this patch.
src/ORM/ModelContainerBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
 class ModelContainerBuilder extends EntityContainerBuilder
18 18
 {
19
-    static $DEFAULT_ANNOTATIONS=[
19
+    static $DEFAULT_ANNOTATIONS = [
20 20
         [ClassAnnotationHandler::class, 'class'],
21 21
         [PKAnnotationHandler::class, "class.children[?name=='pk']"],
22 22
         [TableAnnotationHandler::class, "class.children[?name=='table']"],
Please login to merge, or discard this patch.
src/Metas/ParamMeta.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
  * @package Once\route
13 13
  * 函数参数元信息
14 14
  */
15
-class ParamMeta{
15
+class ParamMeta {
16 16
 
17 17
     /**
18 18
      * ParamMeta constructor.
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @param string $description
27 27
      * @param TypeContainerInterface|null $container
28 28
      */
29
-    public function __construct($name, $source, $type, $isOptional ,$default, $isPassedByReference,$validation, $description="", $container=null){
29
+    public function __construct($name, $source, $type, $isOptional, $default, $isPassedByReference, $validation, $description = "", $container = null) {
30 30
         $this->name = $name;
31 31
         $this->source = $source;
32 32
         $this->type = $type;
Please login to merge, or discard this patch.
src/Metas/PropertyMeta.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      * @param string $description
21 21
      * @param TypeContainerInterface|null $container
22 22
      */
23
-    public function __construct($name, $type=null, $isOptional=false,$default=null, $validation=null, $summary='', $description='', $container = null){
23
+    public function __construct($name, $type = null, $isOptional = false, $default = null, $validation = null, $summary = '', $description = '', $container = null) {
24 24
         $this->name = $name;
25 25
         $this->type = $type;
26 26
         $this->default = $default;
@@ -54,5 +54,5 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * @var string
56 56
      */
57
-    public $description='';
57
+    public $description = '';
58 58
 }
59 59
\ No newline at end of file
Please login to merge, or discard this patch.
src/Utils/SerializableFunc.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@  discard block
 block discarded – undo
7 7
  * @author caoym
8 8
  *
9 9
  */
10
-class SerializableFunc{
10
+class SerializableFunc {
11 11
     /**
12 12
      * 方法,绑定参数
13 13
      * 如
14 14
      * func,arg1,arg2
15 15
      * array('a','method1'), arg1,arg2
16 16
      */
17
-    public  function __construct(callable $func){
17
+    public  function __construct(callable $func) {
18 18
         $args = func_get_args();
19 19
         $this->func = $func;
20
-        $this->bind = array_slice($args,1);
20
+        $this->bind = array_slice($args, 1);
21 21
     }
22 22
     
23 23
     /**
@@ -25,15 +25,15 @@  discard block
 block discarded – undo
25 25
      * 调用时,将bind参数加在方法的最前面
26 26
      * @return mixed
27 27
      */
28
-    public function __invoke(){
28
+    public function __invoke() {
29 29
         $args = func_get_args();
30 30
         $params = $this->bind;
31
-        foreach ($args as $arg){
31
+        foreach ($args as $arg) {
32 32
             array_push($params, $arg);
33 33
         }
34 34
         $res = call_user_func_array($this->func, $params);
35
-        foreach ($this->next as $next){
36
-            call_user_func_array($next,$args);
35
+        foreach ($this->next as $next) {
36
+            call_user_func_array($next, $args);
37 37
         }
38 38
         return $res;
39 39
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * 串行调用
42 42
      * @var callable[]
43 43
      */
44
-    public $next=array();
44
+    public $next = array();
45 45
     private $bind;
46 46
     private $func;
47 47
 }
Please login to merge, or discard this patch.
src/Utils/ArrayHelper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,16 +15,16 @@
 block discarded – undo
15 15
         $keys = explode('.', $key);
16 16
         $keys = array_reverse($keys);
17 17
         $cur = &$arr;
18
-        while($p = array_pop($keys)){
18
+        while ($p = array_pop($keys)) {
19 19
             $cur instanceof \ArrayAccess || is_array($cur) or \PhpBoot\abort(new \InvalidArgumentException('array or object of ArrayAccess required'));
20
-            if(!isset($cur[$p])){
21
-                if(count($keys) == 0){
20
+            if (!isset($cur[$p])) {
21
+                if (count($keys) == 0) {
22 22
                     $cur[$p] = $val;
23
-                }else{
23
+                }else {
24 24
                     $cur[$p] = [];
25 25
                 }
26
-            }else{
27
-                if(count($keys) == 0){
26
+            }else {
27
+                if (count($keys) == 0) {
28 28
                     $cur[$p] = $val;
29 29
                 }
30 30
             }
Please login to merge, or discard this patch.