Passed
Push — master ( 1a00b5...984447 )
by y
03:02
created
src/Base/AbstractEntity.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@  discard block
 block discarded – undo
68 68
             $this->data[$key] = array_values(array_unique($this->data[$key]));
69 69
             if ($force) {
70 70
                 $this->diff[$key] = true;
71
-            }
72
-            else {
71
+            } else {
73 72
                 $this->api->getCache()->add($this);
74 73
             }
75 74
         }
@@ -117,8 +116,7 @@  discard block
 block discarded – undo
117 116
         if (isset($key)) {
118 117
             $value = $this->api->get($this, [], ['fields' => static::$optFields[$key] ?? $key])[$key] ?? null;
119 118
             $this->_setMapped($key, $value);
120
-        }
121
-        else {
119
+        } else {
122 120
             $this->_setData($this->api->get($this, [], ['expand' => 'this']));
123 121
         }
124 122
         $this->api->getCache()->add($this);
Please login to merge, or discard this patch.