@@ -11,7 +11,7 @@ |
||
11 | 11 | * |
12 | 12 | * @param \SimpleSAML\XHTML\Template &$template The template that we should alter in this hook. |
13 | 13 | */ |
14 | -function logpeek_hook_configpage(Template &$template): void |
|
14 | +function logpeek_hook_configpage(Template & $template): void |
|
15 | 15 | { |
16 | 16 | $template->data['links'][] = [ |
17 | 17 | 'href' => Module::getModuleURL('logpeek/'), |
@@ -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 | } |
@@ -133,7 +133,7 @@ |
||
133 | 133 | |
134 | 134 | if ($eolPos === false) { |
135 | 135 | // No eol found. Make buffer head of remainder and empty buffer. |
136 | - $this->remainder = $buff . $this->remainder; |
|
136 | + $this->remainder = $buff.$this->remainder; |
|
137 | 137 | $buff = ''; |
138 | 138 | } elseif ($eolPos !== 0) { |
139 | 139 | // eol found. |