We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 473-485 (lines=13) @@ | ||
470 | }, $this->getColumns()); |
|
471 | } |
|
472 | ||
473 | private function addFieldsValue() |
|
474 | { |
|
475 | if ($this->item) |
|
476 | { |
|
477 | $fields = !empty($this->updateFields) ? 'updateFields' : 'fields'; |
|
478 | ||
479 | foreach ($this->{$fields} as $key => $field) |
|
480 | { |
|
481 | if (array_key_exists($field['name'], $this->relations) && $this->relations[$field['name']]['pivot']) $this->{$fields}[$key]['value'] = $this->item->{$this->relations[$field['name']]['name']}()->lists($this->relations[$field['name']]['model']->getKeyName())->toArray(); |
|
482 | else $this->{$fields}[$key]['value'] = $this->item->{$field['name']}; |
|
483 | } |
|
484 | } |
|
485 | } |
|
486 | ||
487 | private function add($entity, $field) |
|
488 | { |
@@ 1267-1279 (lines=13) @@ | ||
1264 | ||
1265 | ||
1266 | // iti pune valorile pe field-uri la EDIT |
|
1267 | public function addFieldsValue() |
|
1268 | { |
|
1269 | if ($this->entry) |
|
1270 | { |
|
1271 | $fields = !empty($this->update_fields) ? 'update_fields' : 'fields'; |
|
1272 | ||
1273 | foreach ($this->{$fields} as $key => $field) |
|
1274 | { |
|
1275 | if (array_key_exists($field['name'], $this->relations) && $this->relations[$field['name']]['pivot']) $this->{$fields}[$key]['value'] = $this->entry->{$this->relations[$field['name']]['name']}()->lists($this->relations[$field['name']]['model']->getKeyName())->toArray(); |
|
1276 | else $this->{$fields}[$key]['value'] = $this->entry->{$field['name']}; |
|
1277 | } |
|
1278 | } |
|
1279 | } |
|
1280 | ||
1281 | public function add($entity, $field) |
|
1282 | { |