Passed
Branch master (0f341a)
by Tim
11:11
created
src/CDNMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.