@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | if ($this->config()->get('add_prefetch') === true) { |
150 | 150 | $prefetchTag = $this->getPrefetchTag(); |
151 | - $body = str_replace('<head>', "<head>".$prefetchTag, $body); |
|
151 | + $body = str_replace('<head>', "<head>" . $prefetchTag, $body); |
|
152 | 152 | if ($this->config()->get('add_debug_headers') == true) { |
153 | 153 | $response->addHeader('X-CDN-Prefetch', 'Enabled'); |
154 | 154 | } |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | private function getIsAdmin(HTTPRequest $request) |
210 | 210 | { |
211 | 211 | $adminPaths = static::config()->get('admin_url_paths'); |
212 | - $adminPaths[] = AdminRootController::config()->get('url_base') . '/'; |
|
212 | + $adminPaths[ ] = AdminRootController::config()->get('url_base') . '/'; |
|
213 | 213 | $currentPath = rtrim($request->getURL(), '/') . '/'; |
214 | 214 | foreach ($adminPaths as $adminPath) { |
215 | 215 | if (substr($currentPath, 0, strlen($adminPath)) === $adminPath) { |