Completed
Branch master (8ce842)
by Tim
58s
created
Category
src/AmpPagesControllerExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
         $this->addAmpStyles();
17 17
         $controller = Controller::curr();
18 18
         $class = $controller->ClassName;
19
-        return $this->owner->renderWith([$class . "_amp", "Amp"]);
19
+        return $this->owner->renderWith([$class."_amp", "Amp"]);
20 20
     }
21 21
 
22 22
     private function addAmpStyles()
@@ -24,12 +24,12 @@  discard block
 block discarded – undo
24 24
         $css = null;
25 25
         $cssFiles = AmpPagesRequirementsExtension::getAmpCSSFiles();
26 26
         foreach ($cssFiles as $themeCSSPath) {
27
-            $fullCSSPath = BASE_PATH . DIRECTORY_SEPARATOR . $themeCSSPath;
27
+            $fullCSSPath = BASE_PATH.DIRECTORY_SEPARATOR.$themeCSSPath;
28 28
             if (is_file($fullCSSPath)) {
29 29
                 $css .= file_get_contents($fullCSSPath);
30 30
             }
31 31
         }
32
-        $tag = '<style amp-custom>' . $css . '</style>';
32
+        $tag = '<style amp-custom>'.$css.'</style>';
33 33
         Requirements::insertHeadTags($tag);
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/AmpPagesSiteTreeExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,11 +9,11 @@
 block discarded – undo
9 9
 
10 10
     public function MetaTags(&$tags)
11 11
     {
12
-        $ampLink = $this->owner->AbsoluteLink() . "amp.html";
12
+        $ampLink = $this->owner->AbsoluteLink()."amp.html";
13 13
         $atts = [
14 14
             'rel' => 'amphtml',
15 15
             'href' => $ampLink
16 16
         ];
17
-        $tags .= "\n" . HTML::createTag('link', $atts) . "\n";
17
+        $tags .= "\n".HTML::createTag('link', $atts)."\n";
18 18
     }
19 19
 }
Please login to merge, or discard this patch.