Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | private function endOfClass($file) |
||
39 | { |
||
40 | $lines = explode(PHP_EOL, file_get_contents($file)); |
||
41 | $lastOccurrence = null; |
||
42 | |||
43 | foreach ($lines as $index => $line) { |
||
44 | if (strpos(trim($line), '}') !== false) { |
||
45 | $lastOccurrence = $index + 1; |
||
46 | } |
||
47 | } |
||
48 | |||
49 | return $lastOccurrence; |
||
50 | } |
||
51 | } |
||
52 |