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