| Conditions | 1 |
| Paths | 1 |
| Total Lines | 25 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <? |
||
| 34 | protected function get_direct_array() |
||
| 35 | { |
||
| 36 | $paths = [ |
||
| 37 | [ |
||
| 38 | 'match' => '/', |
||
| 39 | 'controller' => 'AboutController', |
||
| 40 | ], |
||
| 41 | [ |
||
| 42 | 'match' => '/contact/', |
||
| 43 | 'controller' => 'ContactController', |
||
| 44 | ], |
||
| 45 | [ |
||
| 46 | 'match' => '/projects/', |
||
| 47 | 'controller' => 'ProjectsController', |
||
| 48 | ], |
||
| 49 | [ |
||
| 50 | 'match' => '/resume/', |
||
| 51 | 'controller' => 'ResumeController', |
||
| 52 | ], |
||
| 53 | ]; |
||
| 54 | |||
| 55 | return array_map(function ($row) { |
||
| 56 | return (object) $row; |
||
| 57 | }, $paths); |
||
| 58 | } |
||
| 59 | |||
| 61 |
Short opening tags are disabled in PHP’s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.
As a precaution to avoid these problems better use the long opening tag
<?php.