| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function versionAction(Request $request) |
||
| 25 | { |
||
| 26 | $fileSystem = new Filesystem(); |
||
| 27 | $buildFile = $this->get('kernel')->getRootDir() . '/../build.json'; |
||
| 28 | if ($fileSystem->exists($buildFile)) { |
||
| 29 | $versionInfo = json_decode(file_get_contents($buildFile)); |
||
| 30 | } |
||
| 31 | return $this->render('home/version.html.twig', [ |
||
| 32 | 'versionInfo' => isset($versionInfo) ? $versionInfo : null, |
||
| 33 | ]); |
||
| 37 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.