Passed
Branch master (71d825)
by Bence
03:42
created
Category
src/TempFiles/TempFile.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,21 +27,21 @@
 block discarded – undo
27 27
     public function getLastLines(int $lines = 10, $buffer = 4096) : string {
28 28
         $f = fopen($this->full_path, "rb");
29 29
         fseek($f, -1, SEEK_END);
30
-        if(fread($f, 1) != "\n") {
30
+        if (fread($f, 1) != "\n") {
31 31
             $lines -= 1;
32 32
         }
33 33
         $output = '';
34 34
         $chunk = '';
35 35
 
36
-        while(ftell($f) > 0 && $lines >= 0) {
36
+        while (ftell($f) > 0 && $lines >= 0) {
37 37
             $seek = min(ftell($f), $buffer);
38 38
             fseek($f, -$seek, SEEK_CUR);
39
-            $output = ($chunk = fread($f, $seek)).$output;
39
+            $output = ($chunk = fread($f, $seek)) . $output;
40 40
             fseek($f, -mb_strlen($chunk, '8bit'), SEEK_CUR);
41 41
             $lines -= substr_count($chunk, "\n");
42 42
         }
43 43
 
44
-        while($lines++ < 0) {
44
+        while ($lines++ < 0) {
45 45
             $output = substr($output, strpos($output, "\n") + 1);
46 46
         }
47 47
     
Please login to merge, or discard this patch.