@@ -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 |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | private $lineNumber; |
| 18 | 18 | private $filePath; |
| 19 | 19 | |
| 20 | - public function __construct($message = "", $code = 0, \Exception $previous = null, $path = "", $line = -1) |
|
| 20 | + public function __construct ($message = "", $code = 0, \Exception $previous = null, $path = "", $line = -1) |
|
| 21 | 21 | { |
| 22 | 22 | parent::__construct($message, $code, $previous); |
| 23 | 23 | |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | * |
| 141 | 141 | * @return string |
| 142 | 142 | */ |
| 143 | - private function interpolate($message, array $context) |
|
| 143 | + private function interpolate ($message, array $context) |
|
| 144 | 144 | { |
| 145 | 145 | // build a replacement array with braces around the context keys |
| 146 | 146 | $replace = array(); |
@@ -93,7 +93,8 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | public function log ($level, $message, array $context = array()) |
| 95 | 95 | { |
| 96 | - if (!isset($this->verbosityLevelMap[$level])) { |
|
| 96 | + if (!isset($this->verbosityLevelMap[$level])) |
|
| 97 | + { |
|
| 97 | 98 | throw new InvalidArgumentException(sprintf('The log level "%s" does not exist.', $level)); |
| 98 | 99 | } |
| 99 | 100 | |
@@ -144,8 +145,10 @@ discard block |
||
| 144 | 145 | { |
| 145 | 146 | // build a replacement array with braces around the context keys |
| 146 | 147 | $replace = array(); |
| 147 | - foreach ($context as $key => $val) { |
|
| 148 | - if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) { |
|
| 148 | + foreach ($context as $key => $val) |
|
| 149 | + { |
|
| 150 | + if (!is_array($val) && (!is_object($val) || method_exists($val, '__toString'))) |
|
| 151 | + { |
|
| 149 | 152 | $replace[sprintf('{%s}', $key)] = $val; |
| 150 | 153 | } |
| 151 | 154 | } |
@@ -10,7 +10,9 @@ |
||
| 10 | 10 | |
| 11 | 11 | foreach ($array as $key => $item) |
| 12 | 12 | { |
| 13 | - if (!isset($item[$sortKey])) { continue; } |
|
| 13 | + if (!isset($item[$sortKey])) |
|
| 14 | + { |
|
| 15 | +continue; } |
|
| 14 | 16 | |
| 15 | 17 | $groupBy = $item[$sortKey]; |
| 16 | 18 | |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | |
| 137 | 137 | if ($array->coreInstanceOf(FrontMatterObject::class) && !isset($array[$key])) |
| 138 | 138 | { |
| 139 | - if ($comparison == '==' && is_null($value)) { return true; } |
|
| 139 | + if ($comparison == '==' && is_null($value)) { return true; } |
|
| 140 | 140 | if ($comparison == '!=' && !is_null($value)) { return true; } |
| 141 | 141 | } |
| 142 | 142 | |
@@ -136,8 +136,12 @@ |
||
| 136 | 136 | |
| 137 | 137 | if ($array->coreInstanceOf(FrontMatterObject::class) && !isset($array[$key])) |
| 138 | 138 | { |
| 139 | - if ($comparison == '==' && is_null($value)) { return true; } |
|
| 140 | - if ($comparison == '!=' && !is_null($value)) { return true; } |
|
| 139 | + if ($comparison == '==' && is_null($value)) |
|
| 140 | + { |
|
| 141 | +return true; } |
|
| 142 | + if ($comparison == '!=' && !is_null($value)) |
|
| 143 | + { |
|
| 144 | +return true; } |
|
| 141 | 145 | } |
| 142 | 146 | |
| 143 | 147 | return false; |