mirror of
https://github.com/getgrav/grav.git
synced 2026-07-13 09:02:34 +02:00
Cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user