@@ -37,21 +37,21 @@ |
||
37 | 37 | } |
38 | 38 | |
39 | 39 | fseek($f, -1, SEEK_END); |
40 | - if(fread($f, 1) != "\n") { |
|
40 | + if (fread($f, 1) != "\n") { |
|
41 | 41 | $lines -= 1; |
42 | 42 | } |
43 | 43 | $output = ''; |
44 | 44 | $chunk = ''; |
45 | 45 | |
46 | - while(ftell($f) > 0 && $lines >= 0) { |
|
46 | + while (ftell($f) > 0 && $lines >= 0) { |
|
47 | 47 | $seek = min(ftell($f), $buffer); |
48 | 48 | fseek($f, -$seek, SEEK_CUR); |
49 | - $output = ($chunk = fread($f, $seek)).$output; |
|
49 | + $output = ($chunk = fread($f, $seek)) . $output; |
|
50 | 50 | fseek($f, -mb_strlen($chunk, '8bit'), SEEK_CUR); |
51 | 51 | $lines -= substr_count($chunk, "\n"); |
52 | 52 | } |
53 | 53 | |
54 | - while($lines++ < 0) { |
|
54 | + while ($lines++ < 0) { |
|
55 | 55 | $output = substr($output, strpos($output, "\n") + 1); |
56 | 56 | } |
57 | 57 |