| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <? |
||
| 20 | public function getCollection(FileInfo $fileInfo) { |
||
| 21 | $key = $fileInfo->getPath(); |
||
| 22 | if (!isset($this->collections[$key])) { |
||
| 23 | $this->collections[$key] = \Funivan\PhpTokenizer\Collection::createFromString($fileInfo->getContent()->get()); |
||
| 24 | } |
||
| 25 | |||
| 26 | return $this->collections[$key]; |
||
| 27 | } |
||
| 28 | |||
| 29 | } |
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.