From 19bbfd0a50127012a8b4620049df6d5364c8ace5 Mon Sep 17 00:00:00 2001 From: Djamil Legato Date: Tue, 14 Oct 2014 13:13:55 -0700 Subject: [PATCH] Cleanup --- system/src/Grav/Common/Page/Pages.php | 6 ++---- system/src/Grav/Common/TwigExtension.php | 7 ++++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/system/src/Grav/Common/Page/Pages.php b/system/src/Grav/Common/Page/Pages.php index 4570fde09..23e30792f 100644 --- a/system/src/Grav/Common/Page/Pages.php +++ b/system/src/Grav/Common/Page/Pages.php @@ -62,7 +62,7 @@ class Pages /** * Constructor * - * @params Grav $c + * @param Grav $c */ public function __construct(Grav $c) { @@ -391,8 +391,6 @@ class Pages /** @var Taxonomy $taxonomy */ $taxonomy = $this->grav['taxonomy']; - $last_modified = 0; - // how should we check for last modified? Default is by file switch (strtolower($config->get('system.cache.check.method', 'file'))) { case 'none': @@ -432,7 +430,7 @@ class Pages * Recursive function to load & build page relationships. * * @param string $directory - * @param null $parent + * @param Page|null $parent * @return Page * @throws \RuntimeException * @internal diff --git a/system/src/Grav/Common/TwigExtension.php b/system/src/Grav/Common/TwigExtension.php index 3fec76e60..7ef453a97 100644 --- a/system/src/Grav/Common/TwigExtension.php +++ b/system/src/Grav/Common/TwigExtension.php @@ -225,9 +225,10 @@ class TwigExtension extends \Twig_Extension /** * Sorts a collection by key * - * @param string $input - * @param string $filter - * @param string $direction + * @param array $input + * @param string $filter + * @param array|int $direction + * * @return string */ public function sortByKeyFilter($input, $filter, $direction = SORT_ASC)