@@ -16,7 +16,7 @@ discard block |
||
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 |
||
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 | } |
@@ -9,11 +9,11 @@ |
||
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 | } |