We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ 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 | { |
@@ 1315-1330 (lines=16) @@ | ||
1312 | $this->sort[$items] = $order; |
|
1313 | } |
|
1314 | ||
1315 | public function sort($items) |
|
1316 | { |
|
1317 | if (array_key_exists($items, $this->sort)) |
|
1318 | { |
|
1319 | $elements = []; |
|
1320 | ||
1321 | foreach ($this->sort[$items] as $item) |
|
1322 | { |
|
1323 | if (is_numeric($key = array_search($item, array_column($this->{$items}, 'name')))) $elements[] = $this->{$items}[$key]; |
|
1324 | } |
|
1325 | ||
1326 | return $this->{$items} = array_merge($elements, array_filter($this->{$items}, function($item) use($items) {return !in_array($item['name'], $this->sort[$items]);})); |
|
1327 | } |
|
1328 | ||
1329 | return $this->{$items}; |
|
1330 | } |
|
1331 | ||
1332 | ||
1333 |