PSR-2 fixes

This commit is contained in:
Oliver Davies 2019-03-26 21:58:35 +00:00
parent 6a70eea6a1
commit 66c948d9ee

View file

@ -48,16 +48,16 @@ class TalksExtension extends Twig_Extension
});
}
/**
* Get all upcoming talks.
*
* @param ProxySourceCollection|array $talks All talk nodes.
*
* @return Collection A sorted collection of talks.
*/
/**
* Get all upcoming talks.
*
* @param ProxySourceCollection|array $talks All talk nodes.
*
* @return Collection A sorted collection of talks.
*/
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;
})->values();
}