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
Pull Request — master (#188)
by Herbert
12:59
created
src/AuditTrailBehavior.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -189,12 +189,12 @@  discard block
 block discarded – undo
189 189
      */
190 190
     protected function cleanAttributesOverride($attributes)
191 191
     {
192
-        if (sizeof($this->override) > 0 && sizeof($attributes) >0) {
192
+        if (sizeof($this->override) > 0 && sizeof($attributes) > 0) {
193 193
             foreach ($this->override as $field => $queryParams) {
194 194
                 $newOverrideValues = $this->getNewOverrideValues($attributes[$field], $queryParams);
195 195
                 $saveField = \yii\helpers\ArrayHelper::getValue($queryParams, 'saveField', $field);
196 196
 
197
-                if (count($newOverrideValues) >1) {
197
+                if (count($newOverrideValues) > 1) {
198 198
                     $attributes[$saveField] = implode(', ',
199 199
                                         \yii\helpers\ArrayHelper::map($newOverrideValues, $queryParams['returnField'], $queryParams['returnField'])
200 200
                     );
@@ -236,12 +236,12 @@  discard block
 block discarded – undo
236 236
         $oldAttributes = $this->cleanAttributes($this->getOldAttributes());
237 237
 
238 238
         // ensure to handle serialized attributes properly
239
-        foreach($newAttributes as $key => $value)
240
-            if(is_array($newAttributes[$key]))
239
+        foreach ($newAttributes as $key => $value)
240
+            if (is_array($newAttributes[$key]))
241 241
                 $newAttributes[$key] = implode(',', $newAttributes[$key]);
242 242
 
243
-        foreach($oldAttributes as $key => $value)
244
-            if(is_array($oldAttributes[$key]))
243
+        foreach ($oldAttributes as $key => $value)
244
+            if (is_array($oldAttributes[$key]))
245 245
                 $oldAttributes[$key] = implode(',', $oldAttributes[$key]);
246 246
 
247 247
         // If no difference then get out of here
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -236,13 +236,15 @@
 block discarded – undo
236 236
         $oldAttributes = $this->cleanAttributes($this->getOldAttributes());
237 237
 
238 238
         // ensure to handle serialized attributes properly
239
-        foreach($newAttributes as $key => $value)
240
-            if(is_array($newAttributes[$key]))
239
+        foreach($newAttributes as $key => $value) {
240
+                    if(is_array($newAttributes[$key]))
241 241
                 $newAttributes[$key] = implode(',', $newAttributes[$key]);
242
+        }
242 243
 
243
-        foreach($oldAttributes as $key => $value)
244
-            if(is_array($oldAttributes[$key]))
244
+        foreach($oldAttributes as $key => $value) {
245
+                    if(is_array($oldAttributes[$key]))
245 246
                 $oldAttributes[$key] = implode(',', $oldAttributes[$key]);
247
+        }
246 248
 
247 249
         // If no difference then get out of here
248 250
         if (count(array_diff_assoc($newAttributes, $oldAttributes)) <= 0) {
Please login to merge, or discard this patch.