Conditions | 2 |
Paths | 2 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
10 | public function process($page, array $context = array()) |
||
11 | { |
||
12 | /** @var ComponentLocationRepository $repository */ |
||
13 | $repository = $this->container->get(ComponentLocationRepository::class); |
||
14 | $locations = $repository->findByDynamicPage($page); |
||
15 | if (!empty($locations)) { |
||
16 | $page->setComponentLocations($locations); |
||
17 | } |
||
32 |