We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 1269-1284 (lines=16) @@ | ||
1266 | $this->sort[$items] = $order; |
|
1267 | } |
|
1268 | ||
1269 | public function sort($items) |
|
1270 | { |
|
1271 | if (array_key_exists($items, $this->sort)) |
|
1272 | { |
|
1273 | $elements = []; |
|
1274 | ||
1275 | foreach ($this->sort[$items] as $item) |
|
1276 | { |
|
1277 | if (is_numeric($key = array_search($item, array_column($this->{$items}, 'name')))) $elements[] = $this->{$items}[$key]; |
|
1278 | } |
|
1279 | ||
1280 | return $this->{$items} = array_merge($elements, array_filter($this->{$items}, function($item) use($items) {return !in_array($item['name'], $this->sort[$items]);})); |
|
1281 | } |
|
1282 | ||
1283 | return $this->{$items}; |
|
1284 | } |
|
1285 | ||
1286 | ||
1287 |
@@ 519-534 (lines=16) @@ | ||
516 | $this->sort[$items] = $order; |
|
517 | } |
|
518 | ||
519 | private function sort($items) |
|
520 | { |
|
521 | if (array_key_exists($items, $this->sort)) |
|
522 | { |
|
523 | $elements = []; |
|
524 | ||
525 | foreach ($this->sort[$items] as $item) |
|
526 | { |
|
527 | if (is_numeric($key = array_search($item, array_column($this->{$items}, 'name')))) $elements[] = $this->{$items}[$key]; |
|
528 | } |
|
529 | ||
530 | return $this->{$items} = array_merge($elements, array_filter($this->{$items}, function($item) use($items) {return !in_array($item['name'], $this->sort[$items]);})); |
|
531 | } |
|
532 | ||
533 | return $this->{$items}; |
|
534 | } |
|
535 | ||
536 | private function syncPivot($model, $data) |
|
537 | { |