From 3ba491d02cc6b5f465b9d39e8821ee40b4f44d3a Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Fri, 5 Dec 2014 08:17:20 -0700 Subject: [PATCH] PSR Fixes --- system/src/Grav/Common/Page/Collection.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/system/src/Grav/Common/Page/Collection.php b/system/src/Grav/Common/Page/Collection.php index 234047d91..ab11a6644 100644 --- a/system/src/Grav/Common/Page/Collection.php +++ b/system/src/Grav/Common/Page/Collection.php @@ -22,7 +22,8 @@ class Collection extends Iterator */ protected $params; - public function __construct($items = array(), array $params = array(), Pages $pages = null) { + public function __construct($items = array(), array $params = array(), Pages $pages = null) + { parent::__construct($items); $this->params = $params; @@ -189,7 +190,8 @@ class Collection extends Iterator * @param string $path the path the item * @return Page Item in the array the the current position. */ - public function currentPosition($path) { + public function currentPosition($path) + { return array_search($path, array_keys($this->items)); } @@ -205,7 +207,7 @@ class Collection extends Iterator foreach ($this->items as $path => $slug) { $page = $this->pages->get($path); if ($page->visible()) { - $visible[$path] = $slug; + $visible[$path] = $slug; } } return new static($visible, $this->params, $this->pages);