@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * {@inheritdoc} |
52 | 52 | */ |
53 | - public function __construct($filePath) |
|
53 | + public function __construct ($filePath) |
|
54 | 54 | { |
55 | 55 | parent::__construct($filePath); |
56 | 56 | |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * {@inheritdoc} |
67 | 67 | */ |
68 | - public function createJail() |
|
68 | + public function createJail () |
|
69 | 69 | { |
70 | 70 | if (is_null($this->jailInstance)) |
71 | 71 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | return $this->jailInstance; |
78 | 78 | } |
79 | 79 | |
80 | - public function getJailedChildren() |
|
80 | + public function getJailedChildren () |
|
81 | 81 | { |
82 | 82 | $children = $this->children; |
83 | 83 | |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | /** |
110 | 110 | * @return string Twig body |
111 | 111 | */ |
112 | - public function getContent() |
|
112 | + public function getContent () |
|
113 | 113 | { |
114 | 114 | return $this->bodyContent; |
115 | 115 | } |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | * |
120 | 120 | * @return string |
121 | 121 | */ |
122 | - public function getType() |
|
122 | + public function getType () |
|
123 | 123 | { |
124 | 124 | return $this->type; |
125 | 125 | } |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | * |
132 | 132 | * @todo Remove this in the next major release |
133 | 133 | */ |
134 | - public function getUrl() |
|
134 | + public function getUrl () |
|
135 | 135 | { |
136 | 136 | return $this->getPermalink(); |
137 | 137 | } |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | * |
148 | 148 | * @return DynamicPageView|PageView|RepeaterPageView |
149 | 149 | */ |
150 | - public static function create($filePath) |
|
150 | + public static function create ($filePath) |
|
151 | 151 | { |
152 | 152 | $instance = new self($filePath); |
153 | 153 | |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | * |
179 | 179 | * @return PageView |
180 | 180 | */ |
181 | - public static function createVirtual($frontMatter, $body) |
|
181 | + public static function createVirtual ($frontMatter, $body) |
|
182 | 182 | { |
183 | 183 | if (vfsStreamWrapper::getRoot() == null) |
184 | 184 | { |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | * |
205 | 205 | * @return PageView A virtual PageView with the redirection template |
206 | 206 | */ |
207 | - public static function createRedirect($redirectFrom, $redirectTo, $redirectTemplate = false) |
|
207 | + public static function createRedirect ($redirectFrom, $redirectTo, $redirectTemplate = false) |
|
208 | 208 | { |
209 | 209 | if (is_null(self::$fileSys)) |
210 | 210 | { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | /** @var Twig_Environment */ |
43 | 43 | private $twig; |
44 | 44 | |
45 | - public function __construct() |
|
45 | + public function __construct () |
|
46 | 46 | { |
47 | 47 | parent::__construct(); |
48 | 48 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | /** |
53 | 53 | * @param string|false $template |
54 | 54 | */ |
55 | - public function setRedirectTemplate($template) |
|
55 | + public function setRedirectTemplate ($template) |
|
56 | 56 | { |
57 | 57 | $this->redirectTemplate = $template; |
58 | 58 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | /** |
61 | 61 | * @param Folder $folder |
62 | 62 | */ |
63 | - public function setTargetFolder(Folder $folder) |
|
63 | + public function setTargetFolder (Folder $folder) |
|
64 | 64 | { |
65 | 65 | $this->folder = $folder; |
66 | 66 | } |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * @param PageView[] $pageViews |
70 | 70 | */ |
71 | - public function setPageViews(array &$pageViews) |
|
71 | + public function setPageViews (array &$pageViews) |
|
72 | 72 | { |
73 | 73 | $this->pageViews = &$pageViews; |
74 | 74 | } |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | * |
83 | 83 | * @since 0.1.0 |
84 | 84 | */ |
85 | - public function compileAll() |
|
85 | + public function compileAll () |
|
86 | 86 | { |
87 | 87 | $pageViews = array(PageView::REPEATER_TYPE, PageView::DYNAMIC_TYPE, PageView::STATIC_TYPE); |
88 | 88 | |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | * |
106 | 106 | * @since 0.1.1 |
107 | 107 | */ |
108 | - private function compilePageView(&$pageView) |
|
108 | + private function compilePageView (&$pageView) |
|
109 | 109 | { |
110 | 110 | switch ($pageView->getType()) |
111 | 111 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | * |
134 | 134 | * @since 0.1.1 |
135 | 135 | */ |
136 | - private function compileStaticPageView(&$pageView) |
|
136 | + private function compileStaticPageView (&$pageView) |
|
137 | 137 | { |
138 | 138 | $targetFile = $pageView->getTargetFile(); |
139 | 139 | $output = $this->renderStaticPageView($pageView); |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * |
150 | 150 | * @since 0.1.1 |
151 | 151 | */ |
152 | - private function compileDynamicPageViews(&$pageView) |
|
152 | + private function compileDynamicPageViews (&$pageView) |
|
153 | 153 | { |
154 | 154 | $contentItems = $pageView->getContentItems(); |
155 | 155 | $template = $this->createTwigTemplate($pageView); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * |
172 | 172 | * @since 0.1.1 |
173 | 173 | */ |
174 | - private function compileRepeaterPageViews(&$pageView) |
|
174 | + private function compileRepeaterPageViews (&$pageView) |
|
175 | 175 | { |
176 | 176 | $pageView->rewindPermalink(); |
177 | 177 | |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | * |
201 | 201 | * @since 0.1.1 |
202 | 202 | */ |
203 | - private function compileStandardRedirects(&$pageView) |
|
203 | + private function compileStandardRedirects (&$pageView) |
|
204 | 204 | { |
205 | 205 | $redirects = $pageView->getRedirects(); |
206 | 206 | |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | * |
224 | 224 | * @since 0.1.1 |
225 | 225 | */ |
226 | - private function compileExpandedRedirects(&$pageView) |
|
226 | + private function compileExpandedRedirects (&$pageView) |
|
227 | 227 | { |
228 | 228 | $permalinks = $pageView->getRepeaterPermalinks(); |
229 | 229 | |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | * |
262 | 262 | * @return string |
263 | 263 | */ |
264 | - private function renderRepeaterPageView(&$template, &$pageView, &$expandedValue) |
|
264 | + private function renderRepeaterPageView (&$template, &$pageView, &$expandedValue) |
|
265 | 265 | { |
266 | 266 | $this->twig->addGlobal('__currentTemplate', $pageView->getFilePath()); |
267 | 267 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | * |
288 | 288 | * @return string |
289 | 289 | */ |
290 | - private function renderDynamicPageView(&$template, &$pageView, &$contentItem) |
|
290 | + private function renderDynamicPageView (&$template, &$pageView, &$contentItem) |
|
291 | 291 | { |
292 | 292 | $this->twig->addGlobal('__currentTemplate', $pageView->getFilePath()); |
293 | 293 | |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | * |
311 | 311 | * @return string |
312 | 312 | */ |
313 | - private function renderStaticPageView(&$pageView) |
|
313 | + private function renderStaticPageView (&$pageView) |
|
314 | 314 | { |
315 | 315 | $this->twig->addGlobal('__currentTemplate', $pageView->getFilePath()); |
316 | 316 | |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | * |
335 | 335 | * @return Twig_Template |
336 | 336 | */ |
337 | - private function createTwigTemplate(&$pageView) |
|
337 | + private function createTwigTemplate (&$pageView) |
|
338 | 338 | { |
339 | 339 | try |
340 | 340 | { |