We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 552-562 (lines=11) @@ | ||
| 549 | } |
|
| 550 | } |
|
| 551 | ||
| 552 | private function getRelationValues($model, $field, $where = [], $order = []) |
|
| 553 | { |
|
| 554 | $order = (array)$order; |
|
| 555 | $values = $model->select('*'); |
|
| 556 | ||
| 557 | if (!empty($where)) call_user_func_array([$values, $where[0]], array_slice($where, 1)); |
|
| 558 | ||
| 559 | if (!empty($order)) call_user_func_array([$values, 'orderBy'], $order); |
|
| 560 | ||
| 561 | return $values->get()->lists($field, $model->getKeyName())->toArray(); |
|
| 562 | } |
|
| 563 | ||
| 564 | private function syncRelations($entity) |
|
| 565 | { |
|
| @@ 1337-1347 (lines=11) @@ | ||
| 1334 | ||
| 1335 | ||
| 1336 | // cred ca ia valorile din tabela de legatura ca sa ti le afiseze in select |
|
| 1337 | public function getRelationValues($model, $field, $where = [], $order = []) |
|
| 1338 | { |
|
| 1339 | $order = (array)$order; |
|
| 1340 | $values = $model->select('*'); |
|
| 1341 | ||
| 1342 | if (!empty($where)) call_user_func_array([$values, $where[0]], array_slice($where, 1)); |
|
| 1343 | ||
| 1344 | if (!empty($order)) call_user_func_array([$values, 'orderBy'], $order); |
|
| 1345 | ||
| 1346 | return $values->get()->lists($field, $model->getKeyName())->toArray(); |
|
| 1347 | } |
|
| 1348 | ||
| 1349 | // face un fel de merge intre ce ii dai si ce e in CRUD |
|
| 1350 | public function syncRelations($entity) |
|