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 ( f34d5d...b9feb0 )
by Vadim
33:50
created
ActiveRecord.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 
9 9
 namespace sibds\components;
10 10
 
11
-use Yii;
12 11
 use yii\behaviors\TimestampBehavior;
13 12
 use sibds\behaviors\UserDataBehavior;
14 13
 use sibds\behaviors\TrashBehavior;
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -148,6 +148,9 @@
 block discarded – undo
148 148
         return ArrayHelper::map($query->all(), $keyField, $valueField);
149 149
     }
150 150
 
151
+    /**
152
+     * @param string $t
153
+     */
151 154
     public static function is_closure($t) {
152 155
         return is_object($t) && ($t instanceof Closure);
153 156
     }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -101,20 +101,20 @@  discard block
 block discarded – undo
101 101
             ];
102 102
         }
103 103
         
104
-        if($this->isNestedSet()){
104
+        if ($this->isNestedSet()) {
105 105
             $behaviors['tree'] = ArrayHelper::merge([
106 106
                 'class' => \creocoder\nestedsets\NestedSetsBehavior::className(),
107 107
                 'leftAttribute' => 'lft',
108 108
                 'rightAttribute' => 'rgt',
109 109
                 'depthAttribute' => 'depth',
110
-            ], ($this->hasAttribute('tree')?['treeAttribute' => 'tree']:[]));
110
+            ], ($this->hasAttribute('tree') ? ['treeAttribute' => 'tree'] : []));
111 111
         }
112 112
 
113 113
         return $behaviors;
114 114
     }
115 115
 
116
-    public function isNestedSet(){
117
-        return $this->hasAttribute('lft')&&$this->hasAttribute('rgt')&&$this->hasAttribute('depth');
116
+    public function isNestedSet() {
117
+        return $this->hasAttribute('lft') && $this->hasAttribute('rgt') && $this->hasAttribute('depth');
118 118
     }
119 119
 
120 120
     /**
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     public static function listAll($keyField = 'id', $valueField = 'name', $asArray = true)
142 142
     {
143 143
         $query = static::find();        
144
-        if ($asArray&&!self::is_closure($valueField)) {
144
+        if ($asArray && !self::is_closure($valueField)) {
145 145
             $query->select([$keyField, $valueField])->asArray();
146 146
         }
147 147
 
Please login to merge, or discard this patch.
BeforeQueryTrait.php 2 patches
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,11 +19,12 @@
 block discarded – undo
19 19
             }
20 20
         }
21 21
 
22
-        if ($obj->hasAttribute($obj->removedAttribute))
23
-            return (new DynamicQuery($obj))->findRemoved()->andFilterWhere($condition);
24
-        elseif ($obj->isNestedSet())
25
-            return (new DynamicQuery($obj))->andFilterWhere($condition);
26
-        else
27
-            return parent::find()->andFilterWhere($condition);
22
+        if ($obj->hasAttribute($obj->removedAttribute)) {
23
+                    return (new DynamicQuery($obj))->findRemoved()->andFilterWhere($condition);
24
+        } elseif ($obj->isNestedSet()) {
25
+                    return (new DynamicQuery($obj))->andFilterWhere($condition);
26
+        } else {
27
+                    return parent::find()->andFilterWhere($condition);
28
+        }
28 29
     }
29 30
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         foreach ($class->getProperties(\ReflectionProperty::IS_STATIC) as $property) {
17 17
             if (strpos($property->getName(), 'BEFORE_QUERY') !== false && is_array($property->getValue($obj))) {
18 18
                 $params = $property->getValue($obj);
19
-                foreach($params as $key => $value){
19
+                foreach ($params as $key => $value) {
20 20
                     $params[$obj::tableName().'.'.$key] = $value;
21 21
                     unset($params[$key]);
22 22
                 }
Please login to merge, or discard this patch.
DynamicQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             $behaviors[] = TrashQueryBehavior::className();
27 27
         }
28 28
 
29
-        if($model->hasAttribute('lft')&&$model->hasAttribute('rgt')&&$model->hasAttribute('depth')){
29
+        if ($model->hasAttribute('lft') && $model->hasAttribute('rgt') && $model->hasAttribute('depth')) {
30 30
             $behaviors[] = NestedSetsQueryBehavior::className();
31 31
         }
32 32
 
Please login to merge, or discard this patch.
LockedBehavior.php 2 patches
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,9 @@  discard block
 block discarded – undo
42 42
         $owner = $this->owner;
43 43
 
44 44
         $owner->{$this->lockedAttribute} = $this->valueLock;
45
-        if(!$owner->validate())
46
-            throw new \yii\db\Exception('Error saving model! Validating not comlete: ' . implode('; ', $owner->firstErrors));
45
+        if(!$owner->validate()) {
46
+                    throw new \yii\db\Exception('Error saving model! Validating not comlete: ' . implode('; ', $owner->firstErrors));
47
+        }
47 48
         $owner->save();
48 49
     }
49 50
 
@@ -53,8 +54,9 @@  discard block
 block discarded – undo
53 54
         $owner = $this->owner;
54 55
 
55 56
         $owner->{$this->lockedAttribute} = $this->valueUnlock;
56
-        if(!$owner->validate())
57
-            throw new \yii\db\Exception('Error saving model! Validating not comlete: ' . implode('; ', $owner->firstErrors));
57
+        if(!$owner->validate()) {
58
+                    throw new \yii\db\Exception('Error saving model! Validating not comlete: ' . implode('; ', $owner->firstErrors));
59
+        }
58 60
 
59 61
         $owner->save();
60 62
     }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
         $owner = $this->owner;
43 43
 
44 44
         $owner->{$this->lockedAttribute} = $this->valueLock;
45
-        if(!$owner->validate())
46
-            throw new \yii\db\Exception('Error saving model! Validating not comlete: ' . implode('; ', $owner->firstErrors));
45
+        if (!$owner->validate())
46
+            throw new \yii\db\Exception('Error saving model! Validating not comlete: '.implode('; ', $owner->firstErrors));
47 47
         $owner->save();
48 48
     }
49 49
 
@@ -53,8 +53,8 @@  discard block
 block discarded – undo
53 53
         $owner = $this->owner;
54 54
 
55 55
         $owner->{$this->lockedAttribute} = $this->valueUnlock;
56
-        if(!$owner->validate())
57
-            throw new \yii\db\Exception('Error saving model! Validating not comlete: ' . implode('; ', $owner->firstErrors));
56
+        if (!$owner->validate())
57
+            throw new \yii\db\Exception('Error saving model! Validating not comlete: '.implode('; ', $owner->firstErrors));
58 58
 
59 59
         $owner->save();
60 60
     }
Please login to merge, or discard this patch.
UserDataBehavior.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
-     * Created by PhpStorm.
4
-     * User: vadim
5
-     * Date: 26.05.15
6
-     * Time: 15:12
7
-     */
3
+ * Created by PhpStorm.
4
+ * User: vadim
5
+ * Date: 26.05.15
6
+ * Time: 15:12
7
+ */
8 8
 
9 9
 namespace sibds\behaviors;
10 10
 
Please login to merge, or discard this patch.