Fix small spellchecker

This commit is contained in:
Pereira Ricardo
2015-01-18 03:22:51 +01:00
parent bdf80fd920
commit e518e3ca92
2 changed files with 5 additions and 4 deletions

View File

@@ -232,8 +232,9 @@ abstract class Folder
/**
* Recursively delete directory from filesystem.
*
* @param string $target
* @param string $target
* @throws \RuntimeException
* @return bool
*/
public static function delete($target)
{

View File

@@ -226,15 +226,15 @@ class Collection extends Iterator
$start = strtotime($startDate);
$end = $endDate ? strtotime($endDate) : strtotime("now +1000 years");
$daterange = [];
$date_range = [];
foreach ($this->items as $path => $slug) {
$page = $this->pages->get($path);
if ($page->date() > $start && $page->date() < $end) {
$daterange[$path] = $slug;
$date_range[$path] = $slug;
}
}
$this->items = $daterange;
$this->items = $date_range;
return $this;
}