@@ -10,10 +10,12 @@ |
||
| 10 | 10 | { |
| 11 | 11 | $globals = $env->getGlobals(); |
| 12 | 12 | |
| 13 | - if (is_array($assetPath) || ($assetPath instanceof \ArrayAccess)) { |
|
| 13 | + if (is_array($assetPath) || ($assetPath instanceof \ArrayAccess)) |
|
| 14 | + { |
|
| 14 | 15 | $assetPath = $assetPath['permalink']; |
| 15 | 16 | } |
| 16 | - else if (is_null($assetPath)) { |
|
| 17 | + else if (is_null($assetPath)) |
|
| 18 | + { |
|
| 17 | 19 | $assetPath = '/'; |
| 18 | 20 | } |
| 19 | 21 | |
@@ -72,7 +72,9 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | public function setCollections (&$collections) |
| 74 | 74 | { |
| 75 | - if (empty($collections)) { return; } |
|
| 75 | + if (empty($collections)) |
|
| 76 | + { |
|
| 77 | +return; } |
|
| 76 | 78 | |
| 77 | 79 | $this->collections = &$collections; |
| 78 | 80 | } |
@@ -123,7 +125,8 @@ discard block |
||
| 123 | 125 | { |
| 124 | 126 | static $jailedMenu = array(); |
| 125 | 127 | |
| 126 | - if (!empty($jailedMenu)) { |
|
| 128 | + if (!empty($jailedMenu)) |
|
| 129 | + { |
|
| 127 | 130 | return $jailedMenu; |
| 128 | 131 | } |
| 129 | 132 | |
@@ -143,7 +146,9 @@ discard block |
||
| 143 | 146 | */ |
| 144 | 147 | public function parsePageViews ($pageViewFolders) |
| 145 | 148 | { |
| 146 | - if (empty($pageViewFolders)) { return; } |
|
| 149 | + if (empty($pageViewFolders)) |
|
| 150 | + { |
|
| 151 | +return; } |
|
| 147 | 152 | |
| 148 | 153 | /** |
| 149 | 154 | * The name of the folder where PageViews are located |
@@ -303,7 +308,8 @@ discard block |
||
| 303 | 308 | { |
| 304 | 309 | $this->addToSiteMenu($pageView); |
| 305 | 310 | |
| 306 | - if (!empty($pageView->title)) { |
|
| 311 | + if (!empty($pageView->title)) |
|
| 312 | + { |
|
| 307 | 313 | $this->flatPages[$pageView->title] = $pageView->createJail(); |
| 308 | 314 | } |
| 309 | 315 | } |
@@ -550,7 +556,9 @@ discard block |
||
| 550 | 556 | */ |
| 551 | 557 | private function trackParentTwigTemplate ($template, &$pageView) |
| 552 | 558 | { |
| 553 | - if (!$this->tracking) { return; } |
|
| 559 | + if (!$this->tracking) |
|
| 560 | + { |
|
| 561 | +return; } |
|
| 554 | 562 | |
| 555 | 563 | /** @var Twig_Template $parent */ |
| 556 | 564 | $parent = $template->getParent(array()); |
@@ -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 | } |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | return $this->object->$name; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - return NULL; |
|
| 91 | + return null; |
|
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | public function coreInstanceOf ($class) |