Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
37 | 256 | public function build() |
|
38 | { |
||
39 | /** @var Buildable[] $queued */ |
||
40 | 256 | $queued = $this->getQueued(); |
|
41 | |||
42 | 256 | usort($queued, function (Buildable $buildable) { |
|
43 | 81 | return $buildable instanceof Delay ? 1 : 0; |
|
44 | 256 | }); |
|
45 | |||
46 | 256 | foreach ($queued as $buildable) { |
|
47 | 113 | $buildable->build(); |
|
48 | 256 | } |
|
49 | 256 | } |
|
50 | |||
74 |