@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * {@inheritdoc} |
21 | 21 | */ |
22 | - public function __construct($filePath) |
|
22 | + public function __construct ($filePath) |
|
23 | 23 | { |
24 | 24 | parent::__construct($filePath); |
25 | 25 |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * {@inheritdoc} |
21 | 21 | */ |
22 | - public function __construct($filePath) |
|
22 | + public function __construct ($filePath) |
|
23 | 23 | { |
24 | 24 | parent::__construct($filePath); |
25 | 25 |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | $this->bodyContentEvaluated = true; |
59 | 59 | } |
60 | 60 | |
61 | - return (string)$this->bodyContent; |
|
61 | + return (string) $this->bodyContent; |
|
62 | 62 | } |
63 | 63 | |
64 | 64 | /** |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | /** |
104 | 104 | * @return PageView |
105 | 105 | */ |
106 | - public function &getPageView () |
|
106 | + public function &getPageView() |
|
107 | 107 | { |
108 | 108 | return $this->parentPageView; |
109 | 109 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | /** |
127 | 127 | * {@inheritdoc} |
128 | 128 | */ |
129 | - public function jsonSerialize() |
|
129 | + public function jsonSerialize () |
|
130 | 130 | { |
131 | 131 | return array_merge($this->getFrontMatter(), array( |
132 | 132 | 'content' => $this->getContent(), |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | /** |
41 | 41 | * {@inheritdoc} |
42 | 42 | */ |
43 | - public function __construct($filePath) |
|
43 | + public function __construct ($filePath) |
|
44 | 44 | { |
45 | 45 | parent::__construct($filePath); |
46 | 46 | |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * |
87 | 87 | * @return PageView[] |
88 | 88 | */ |
89 | - public function &getChildren () |
|
89 | + public function &getChildren() |
|
90 | 90 | { |
91 | 91 | return $this->children; |
92 | 92 | } |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | self::$fileSys = new Filesystem(); |
170 | 170 | } |
171 | 171 | |
172 | - $frontMatter = array( |
|
172 | + $frontMatter = array( |
|
173 | 173 | 'permalink' => $redirectFrom, |
174 | 174 | 'redirect' => $redirectTo, |
175 | 175 | 'menu' => false |
@@ -9,7 +9,9 @@ |
||
9 | 9 | foreach ($array as $element) |
10 | 10 | { |
11 | 11 | if (is_array($element)) |
12 | - return true; |
|
12 | + { |
|
13 | + return true; |
|
14 | + } |
|
13 | 15 | } |
14 | 16 | |
15 | 17 | return false; |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $this->highlighter = new Highlighter(); |
14 | 14 | } |
15 | 15 | |
16 | - protected function blockHeader($line) |
|
16 | + protected function blockHeader ($line) |
|
17 | 17 | { |
18 | 18 | $Block = parent::blockHeader($line); |
19 | 19 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | |
10 | 10 | class PlainTextEngine implements ParsingEngine |
11 | 11 | { |
12 | - public function parse($context) |
|
12 | + public function parse ($context) |
|
13 | 13 | { |
14 | 14 | return $context; |
15 | 15 | } |
@@ -4,5 +4,5 @@ |
||
4 | 4 | |
5 | 5 | interface ParsingEngine |
6 | 6 | { |
7 | - public function parse($context); |
|
7 | + public function parse ($context); |
|
8 | 8 | } |
9 | 9 | \ No newline at end of file |
@@ -171,9 +171,9 @@ |
||
171 | 171 | public function removeExtension ($filename) |
172 | 172 | { |
173 | 173 | return $this->appendPath( |
174 | - $this->getFolderPath($filename), |
|
175 | - $this->getBaseName($filename) |
|
176 | - ); |
|
174 | + $this->getFolderPath($filename), |
|
175 | + $this->getBaseName($filename) |
|
176 | + ); |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | /** |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * @throws FileNotFoundException When originFile doesn't exist |
63 | 63 | * @throws IOException When copy fails |
64 | 64 | */ |
65 | - public function copy($originFile, $targetFile, $overwriteNewerFiles = false) |
|
65 | + public function copy ($originFile, $targetFile, $overwriteNewerFiles = false) |
|
66 | 66 | { |
67 | 67 | if ($this->isDir($originFile)) |
68 | 68 | { |
@@ -76,7 +76,9 @@ |
||
76 | 76 | while (false !== $entry = $dir->read()) |
77 | 77 | { |
78 | 78 | // Skip pointers |
79 | - if ($entry == '.' || $entry == '..') { continue; } |
|
79 | + if ($entry == '.' || $entry == '..') |
|
80 | + { |
|
81 | +continue; } |
|
80 | 82 | |
81 | 83 | $this->copy("$originFile/$entry", "$targetFile/$entry", true); |
82 | 84 | } |