@@ -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; |
@@ -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 | |
@@ -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 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | /** |
| 59 | 59 | * PageManager constructor |
| 60 | 60 | */ |
| 61 | - public function __construct() |
|
| 61 | + public function __construct () |
|
| 62 | 62 | { |
| 63 | 63 | parent::__construct(); |
| 64 | 64 | |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | /** |
| 229 | 229 | * {@inheritdoc} |
| 230 | 230 | */ |
| 231 | - public function isTracked($filePath) |
|
| 231 | + public function isTracked ($filePath) |
|
| 232 | 232 | { |
| 233 | 233 | return (parent::isTracked($filePath) || isset($this->twigExtendsDeps[$filePath])); |
| 234 | 234 | } |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | /** |
| 237 | 237 | * {@inheritdoc} |
| 238 | 238 | */ |
| 239 | - public function refreshItem($filePath) |
|
| 239 | + public function refreshItem ($filePath) |
|
| 240 | 240 | { |
| 241 | 241 | if (parent::isTracked($filePath)) |
| 242 | 242 | { |
@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | /** |
| 257 | 257 | * {@inheritdoc} |
| 258 | 258 | */ |
| 259 | - protected function handleTrackableItem($filePath, $options = array()) |
|
| 259 | + protected function handleTrackableItem ($filePath, $options = array()) |
|
| 260 | 260 | { |
| 261 | 261 | $pageView = PageView::create($filePath); |
| 262 | 262 | $namespace = $pageView->getType(); |
@@ -534,7 +534,7 @@ discard block |
||
| 534 | 534 | { |
| 535 | 535 | $filePath = $this->fs->getRelativePath($parent->getSourceContext()->getPath()); |
| 536 | 536 | |
| 537 | - $this->twigExtendsDeps[$filePath][(string)$pageView->getFilePath()] = &$pageView; |
|
| 537 | + $this->twigExtendsDeps[$filePath][(string) $pageView->getFilePath()] = &$pageView; |
|
| 538 | 538 | $parent = $parent->getParent(array()); |
| 539 | 539 | } |
| 540 | 540 | } |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | /** |
| 104 | 104 | * {@inheritdoc} |
| 105 | 105 | */ |
| 106 | - public function offsetExists($offset) |
|
| 106 | + public function offsetExists ($offset) |
|
| 107 | 107 | { |
| 108 | 108 | return $this->object->offsetExists($offset); |
| 109 | 109 | } |
@@ -111,7 +111,7 @@ discard block |
||
| 111 | 111 | /** |
| 112 | 112 | * {@inheritdoc} |
| 113 | 113 | */ |
| 114 | - public function offsetGet($offset) |
|
| 114 | + public function offsetGet ($offset) |
|
| 115 | 115 | { |
| 116 | 116 | return $this->object->offsetGet($offset); |
| 117 | 117 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | /** |
| 120 | 120 | * {@inheritdoc} |
| 121 | 121 | */ |
| 122 | - public function offsetSet($offset, $value) |
|
| 122 | + public function offsetSet ($offset, $value) |
|
| 123 | 123 | { |
| 124 | 124 | return $this->object->offsetSet($offset, $value); |
| 125 | 125 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | /** |
| 128 | 128 | * {@inheritdoc} |
| 129 | 129 | */ |
| 130 | - public function offsetUnset($offset) |
|
| 130 | + public function offsetUnset ($offset) |
|
| 131 | 131 | { |
| 132 | 132 | return $this->object->offsetUnset($offset); |
| 133 | 133 | } |
@@ -139,11 +139,11 @@ discard block |
||
| 139 | 139 | $this->pm->configureTwig($this->getConfiguration(), array( |
| 140 | 140 | 'safe' => $this->safeMode, |
| 141 | 141 | 'globals' => array( |
| 142 | - array('name' => 'site', 'value' => $this->getConfiguration()->getConfiguration()), |
|
| 142 | + array('name' => 'site', 'value' => $this->getConfiguration()->getConfiguration()), |
|
| 143 | 143 | array('name' => 'collections', 'value' => $this->cm->getJailedCollections()), |
| 144 | - array('name' => 'menu', 'value' => $this->pm->getSiteMenu()), |
|
| 145 | - array('name' => 'pages', 'value' => $this->pm->getFlatPages()), |
|
| 146 | - array('name' => 'data', 'value' => $this->dm->getDataItems()) |
|
| 144 | + array('name' => 'menu', 'value' => $this->pm->getSiteMenu()), |
|
| 145 | + array('name' => 'pages', 'value' => $this->pm->getFlatPages()), |
|
| 146 | + array('name' => 'data', 'value' => $this->dm->getDataItems()) |
|
| 147 | 147 | ) |
| 148 | 148 | )); |
| 149 | 149 | $this->pm->compileAll(); |
@@ -309,7 +309,7 @@ discard block |
||
| 309 | 309 | /** |
| 310 | 310 | * @return boolean |
| 311 | 311 | */ |
| 312 | - public function isNoClean() |
|
| 312 | + public function isNoClean () |
|
| 313 | 313 | { |
| 314 | 314 | return $this->noClean; |
| 315 | 315 | } |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | /** |
| 318 | 318 | * @param boolean $noClean |
| 319 | 319 | */ |
| 320 | - public function setNoClean($noClean) |
|
| 320 | + public function setNoClean ($noClean) |
|
| 321 | 321 | { |
| 322 | 322 | $this->noClean = $noClean; |
| 323 | 323 | } |
@@ -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 | } |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @return ContentItem |
| 31 | 31 | */ |
| 32 | - public function &getContentItem ($filePath) |
|
| 32 | + public function &getContentItem($filePath) |
|
| 33 | 33 | { |
| 34 | 34 | return $this->trackedItemsFlattened[$filePath]; |
| 35 | 35 | } |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | * |
| 40 | 40 | * @return ContentItem[][] |
| 41 | 41 | */ |
| 42 | - public function &getCollections () |
|
| 42 | + public function &getCollections() |
|
| 43 | 43 | { |
| 44 | 44 | return $this->trackedItems; |
| 45 | 45 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * {@inheritdoc} |
| 131 | 131 | */ |
| 132 | - public function createNewItem($filePath) |
|
| 132 | + public function createNewItem ($filePath) |
|
| 133 | 133 | { |
| 134 | 134 | $collection = $this->getTentativeCollectionName($filePath); |
| 135 | 135 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * {@inheritdoc} |
| 143 | 143 | */ |
| 144 | - public function refreshItem($filePath) |
|
| 144 | + public function refreshItem ($filePath) |
|
| 145 | 145 | { |
| 146 | 146 | return; |
| 147 | 147 | } |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | /** |
| 150 | 150 | * {@inheritdoc} |
| 151 | 151 | */ |
| 152 | - protected function handleTrackableItem($filePath, $options = array()) |
|
| 152 | + protected function handleTrackableItem ($filePath, $options = array()) |
|
| 153 | 153 | { |
| 154 | 154 | $collectionName = $options['namespace']; |
| 155 | 155 | |