@@ -133,13 +133,13 @@ |
||
133 | 133 | $results = []; |
134 | 134 | $line = $objFile->getPreviousLine(); |
135 | 135 | while ($line !== false && ($i++ < $cut)) { |
136 | - if (strstr($line, '[' . $tag . ']')) { |
|
136 | + if (strstr($line, '['.$tag.']')) { |
|
137 | 137 | $results[] = $line; |
138 | 138 | } |
139 | 139 | $line = $objFile->getPreviousLine(); |
140 | 140 | } |
141 | 141 | |
142 | - $results[] = 'Searched ' . $i . ' lines backward. ' . count($results) . ' lines found.'; |
|
142 | + $results[] = 'Searched '.$i.' lines backward. '.count($results).' lines found.'; |
|
143 | 143 | $results = array_reverse($results); |
144 | 144 | return $results; |
145 | 145 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $this->fileSize = $this->blockStart = $fileInfo['size']; |
83 | 83 | $this->fileMtime = $fileInfo['mtime']; |
84 | 84 | |
85 | - if ($this->fileSize > 0){ |
|
85 | + if ($this->fileSize > 0) { |
|
86 | 86 | $this->fileHandle = fopen($fileUrl, 'rb'); |
87 | 87 | if (!$this->fileHandle) { |
88 | 88 | throw new Exception("Cannot open file '$fileUrl'"); |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | if ($eolPos === false) { |
161 | 161 | // No eol found. Make buffer head of remainder and empty buffer. |
162 | - $this->remainder = $buff . $this->remainder; |
|
162 | + $this->remainder = $buff.$this->remainder; |
|
163 | 163 | $buff = ''; |
164 | 164 | } elseif ($eolPos !== 0) { |
165 | 165 | // eol found. |