Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | 2 | public function __invoke(RootPage $root) |
|
21 | { |
||
22 | 2 | $this->logger->info("Processing content."); |
|
23 | 2 | foreach ($this->processes as $process) { |
|
24 | 2 | $this->logger->info(" Applying " . get_class($process)); |
|
25 | 2 | $page = $root; |
|
26 | 2 | while ($page) { |
|
27 | 2 | $process($page); |
|
28 | 2 | $page = $page->getNext(); |
|
29 | 2 | } |
|
30 | 2 | } |
|
31 | 2 | } |
|
32 | } |
||
33 |