@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @param string $string |
| 41 | 41 | */ |
| 42 | - public function __construct($string) |
|
| 42 | + public function __construct ($string) |
|
| 43 | 43 | { |
| 44 | 44 | $this->evaluated = $string; |
| 45 | 45 | } |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * @return string |
| 49 | 49 | */ |
| 50 | - public function __toString() |
|
| 50 | + public function __toString () |
|
| 51 | 51 | { |
| 52 | 52 | return $this->getEvaluated(); |
| 53 | 53 | } |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | protected $fs; |
| 33 | 33 | |
| 34 | - public function setUp() |
|
| 34 | + public function setUp () |
|
| 35 | 35 | { |
| 36 | 36 | $this->dummyFile = vfsStream::newFile('stakx.html.twig'); |
| 37 | 37 | $this->rootDir = vfsStream::setup(); |
@@ -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 | |
@@ -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 | |
@@ -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 |
@@ -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 | } |
@@ -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(), |
@@ -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; |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | * |
| 31 | 31 | * @return ContentItem[][] |
| 32 | 32 | */ |
| 33 | - public function &getCollections () |
|
| 33 | + public function &getCollections() |
|
| 34 | 34 | { |
| 35 | 35 | return $this->trackedItems; |
| 36 | 36 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | * |
| 45 | 45 | * @return ContentItem |
| 46 | 46 | */ |
| 47 | - public function &getContentItem ($filePath) |
|
| 47 | + public function &getContentItem($filePath) |
|
| 48 | 48 | { |
| 49 | 49 | if (!isset($this->trackedItemsFlattened[$filePath])) |
| 50 | 50 | { |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | /** |
| 120 | 120 | * {@inheritdoc} |
| 121 | 121 | */ |
| 122 | - public function createNewItem($filePath) |
|
| 122 | + public function createNewItem ($filePath) |
|
| 123 | 123 | { |
| 124 | 124 | $collection = $this->getTentativeCollectionName($filePath); |
| 125 | 125 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | /** |
| 132 | 132 | * {@inheritdoc} |
| 133 | 133 | */ |
| 134 | - public function refreshItem($filePath) |
|
| 134 | + public function refreshItem ($filePath) |
|
| 135 | 135 | { |
| 136 | 136 | return; |
| 137 | 137 | } |
@@ -139,7 +139,7 @@ discard block |
||
| 139 | 139 | /** |
| 140 | 140 | * {@inheritdoc} |
| 141 | 141 | */ |
| 142 | - protected function handleTrackableItem($filePath, $options = array()) |
|
| 142 | + protected function handleTrackableItem ($filePath, $options = array()) |
|
| 143 | 143 | { |
| 144 | 144 | $collectionName = $options['namespace']; |
| 145 | 145 | |