Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
60 | private function endOfClass($file) |
||
61 | { |
||
62 | $lines = explode(PHP_EOL, file_get_contents($file)); |
||
63 | $lastOccurrence = null; |
||
64 | |||
65 | foreach ($lines as $index => $line) { |
||
66 | if (strpos(trim($line), '}') !== false) { |
||
67 | $lastOccurrence = $index + 1; |
||
68 | } |
||
69 | } |
||
70 | |||
71 | return $lastOccurrence; |
||
72 | } |
||
73 | } |
||
74 |