| Conditions | 3 |
| Paths | 3 |
| Total Lines | 21 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 23 | public function parseLine($line) |
||
| 24 | { |
||
| 25 | if($this->isACommentLine($line)) |
||
| 26 | { |
||
| 27 | return true; |
||
| 28 | } |
||
| 29 | |||
| 30 | $file = trim($line); |
||
| 31 | |||
| 32 | $found = false; |
||
| 33 | if($this->parser->getFileSystem()->has($file)) |
||
| 34 | { |
||
| 35 | $found = true; |
||
| 36 | $this->variables = $this->parser->parse($file); |
||
| 37 | } |
||
| 38 | |||
| 39 | $this->filesStatus[$file] = array( |
||
| 40 | 'found' => $found, |
||
| 41 | 'referencedFrom' => $this->currentFilePath, |
||
| 42 | ); |
||
| 43 | } |
||
| 44 | |||
| 54 | } |
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.