@@ -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; |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @param array $rawFrontMatter |
| 63 | 63 | */ |
| 64 | - public function __construct(&$rawFrontMatter) |
|
| 64 | + public function __construct (&$rawFrontMatter) |
|
| 65 | 65 | { |
| 66 | 66 | $this->expansionUsed = false; |
| 67 | 67 | $this->nestingLevel = 0; |
@@ -218,7 +218,9 @@ |
||
| 218 | 218 | |
| 219 | 219 | if (is_array($value) || is_bool($value)) |
| 220 | 220 | { |
| 221 | - if ($ignoreArrays) { continue; } |
|
| 221 | + if ($ignoreArrays) |
|
| 222 | + { |
|
| 223 | +continue; } |
|
| 222 | 224 | |
| 223 | 225 | throw new YamlUnsupportedVariableException("Yaml variable `$variable` for `$key` is not a supported data type."); |
| 224 | 226 | } |
@@ -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 | |
@@ -34,6 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * {@inheritdoc} |
| 37 | + * @param string $filePath |
|
| 37 | 38 | */ |
| 38 | 39 | public function __construct($filePath) |
| 39 | 40 | { |
@@ -14,12 +14,12 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | private $iterators; |
| 16 | 16 | |
| 17 | - public function __construct($string) |
|
| 17 | + public function __construct ($string) |
|
| 18 | 18 | { |
| 19 | 19 | $this->evaluated = $string; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - public function __toString() |
|
| 22 | + public function __toString () |
|
| 23 | 23 | { |
| 24 | 24 | return $this->getEvaluated(); |
| 25 | 25 | } |