We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 206-227 (lines=22) @@ | ||
| 203 | return $this->add('updateFields', $field); |
|
| 204 | } |
|
| 205 | ||
| 206 | public function fields() |
|
| 207 | { |
|
| 208 | if (!$this->item && !empty($this->createFields)) |
|
| 209 | { |
|
| 210 | $this->syncRelations('createFields'); |
|
| 211 | ||
| 212 | return $this->createFields; |
|
| 213 | } |
|
| 214 | ||
| 215 | if ($this->item && !empty($this->updateFields)) |
|
| 216 | { |
|
| 217 | $this->syncRelations('updateFields'); |
|
| 218 | $this->addFieldsValue(); |
|
| 219 | ||
| 220 | return $this->updateFields; |
|
| 221 | } |
|
| 222 | ||
| 223 | $this->syncRelations('fields'); |
|
| 224 | $this->addFieldsValue(); |
|
| 225 | ||
| 226 | return $this->sort('fields'); |
|
| 227 | } |
|
| 228 | ||
| 229 | public function orderFields($order) |
|
| 230 | { |
|
| @@ 1226-1247 (lines=22) @@ | ||
| 1223 | return $this->add('update_fields', $field); |
|
| 1224 | } |
|
| 1225 | ||
| 1226 | public function fields() |
|
| 1227 | { |
|
| 1228 | if (!$this->entry && !empty($this->create_fields)) |
|
| 1229 | { |
|
| 1230 | $this->syncRelations('create_fields'); |
|
| 1231 | ||
| 1232 | return $this->create_fields; |
|
| 1233 | } |
|
| 1234 | ||
| 1235 | if ($this->entry && !empty($this->update_fields)) |
|
| 1236 | { |
|
| 1237 | $this->syncRelations('update_fields'); |
|
| 1238 | $this->addFieldsValue(); |
|
| 1239 | ||
| 1240 | return $this->update_fields; |
|
| 1241 | } |
|
| 1242 | ||
| 1243 | $this->syncRelations('fields'); |
|
| 1244 | $this->addFieldsValue(); |
|
| 1245 | ||
| 1246 | return $this->sort('fields'); |
|
| 1247 | } |
|
| 1248 | ||
| 1249 | public function orderFields($order) |
|
| 1250 | { |
|