| Conditions | 3 |
| Paths | 3 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 86 | 1 | private function readUsesBlock(): string { |
|
| 87 | 1 | $file = fopen($this->getFileName(), 'r'); |
|
| 88 | 1 | $line = 0; |
|
| 89 | 1 | $source = ''; |
|
| 90 | |||
| 91 | 1 | while (!feof($file)) { |
|
| 92 | 1 | ++$line; |
|
| 93 | |||
| 94 | 1 | if ($line >= $this->getStartLine()) { |
|
| 95 | 1 | break; |
|
| 96 | } |
||
| 97 | |||
| 98 | 1 | $source .= fgets($file); |
|
| 99 | } |
||
| 100 | |||
| 101 | 1 | fclose($file); |
|
| 102 | |||
| 103 | 1 | return $source; |
|
| 104 | } |
||
| 105 | |||
| 106 | } |