Conditions | 4 |
Paths | 6 |
Total Lines | 17 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
39 | public function build() |
||
40 | { |
||
41 | $delayed = []; |
||
42 | foreach ($this->getQueued() as $buildable) { |
||
43 | if ($buildable instanceof Delay) { |
||
44 | $delayed[] = $buildable; |
||
45 | } else { |
||
46 | $buildable->build(); |
||
47 | } |
||
48 | } |
||
49 | |||
50 | // We will delay some of the builds, because they |
||
51 | // depend on the executing of the other builds |
||
52 | foreach ($delayed as $buildable) { |
||
53 | $buildable->build(); |
||
54 | } |
||
55 | } |
||
56 | |||
65 |