| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function scanAction() |
||
| 16 | { |
||
| 17 | $pages = $this->getDoctrine() |
||
| 18 | ->getRepository($this->container->getParameter('app.entity_page')) |
||
| 19 | ->findAll(); |
||
| 20 | |||
| 21 | $errors = []; |
||
| 22 | |||
| 23 | foreach ($pages as $page) { |
||
| 24 | // todo import scanner via setScanner + services.yaml |
||
| 25 | $scan = $this->scanner->scan($page); |
||
| 26 | if (true !== $scan) { |
||
| 27 | $errors = array_merge($errors, $scan); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | |||
| 31 | return $this->render('@PiedWebCMS/admin/scanView.html.twig', [ |
||
| 32 | 'errors' => $errors, |
||
| 33 | ]); |
||
| 36 |