@@ -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 |
@@ -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 | } |