PSR-2 fixes
This commit is contained in:
parent
6a70eea6a1
commit
66c948d9ee
|
@ -48,16 +48,16 @@ class TalksExtension extends Twig_Extension
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get all upcoming talks.
|
* Get all upcoming talks.
|
||||||
*
|
*
|
||||||
* @param ProxySourceCollection|array $talks All talk nodes.
|
* @param ProxySourceCollection|array $talks All talk nodes.
|
||||||
*
|
*
|
||||||
* @return Collection A sorted collection of talks.
|
* @return Collection A sorted collection of talks.
|
||||||
*/
|
*/
|
||||||
public function getUpcoming($talks): Collection
|
public function getUpcoming($talks): Collection
|
||||||
{
|
{
|
||||||
return $this->getAll($talks)->filter(function ($talk) {
|
return $this->getAll($talks)->filter(function ($talk) {
|
||||||
return $this->getLastDate($talk) >= $this->today;
|
return $this->getLastDate($talk) >= $this->today;
|
||||||
})->values();
|
})->values();
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue