Passed
Push — master ( 02e6b9...8f2f39 )
by y
01:57
created
src/Task/FieldEntry.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,8 +160,7 @@
 block discarded – undo
160 160
             $this->caller->__set($this->data['gid'], true);
161 161
             if ($type === CustomField::TYPE_ENUM) {
162 162
                 $this->data['enum_value']['gid'] = $this->_toEnumOptionGid($value);
163
-            }
164
-            else {
163
+            } else {
165 164
                 $this->data["{$type}_value"] = $value;
166 165
             }
167 166
         }
Please login to merge, or discard this patch.
src/Base/AbstractEntity/PostMutatorTrait.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,7 @@
 block discarded – undo
36 36
     private function _removeWithPost (string $rmPath, array $data, string $field, $diff) {
37 37
         if ($this->hasGid()) {
38 38
             return $this->_setWithPost($rmPath, $data, $field);
39
-        }
40
-        elseif (is_array($diff)) {
39
+        } elseif (is_array($diff)) {
41 40
             return $this->_set($field, array_values(array_diff($this->data[$field] ?? [], $diff)));
42 41
         }
43 42
         return $this->_set($field, array_values(array_filter($this->data[$field] ?? [], $diff)));
Please login to merge, or discard this patch.