Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function check(UrlPath $urlPath, int $storeId) : array |
||
32 | { |
||
33 | $result = []; |
||
34 | |||
35 | $pageCollection = $this->cmsPageCollectionFactory->create() |
||
36 | ->addStoreFilter($storeId, true) |
||
37 | ->addFieldToFilter('identifier', $urlPath->getLastPart()); |
||
38 | |||
39 | foreach ($pageCollection as $page) { |
||
40 | $result[] = new EntityData('cms page', $page->getId()); |
||
|
|||
41 | } |
||
42 | |||
43 | return $result; |
||
44 | } |
||
45 | } |
||
46 |
This check looks for function calls that miss required arguments.