Applied php-cs-fixer and added some @PHPDoc
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -21,7 +21,7 @@ class EventsExtension extends \Twig_Extension
|
||||
* "securityContext" = @DI\Inject("security.context")
|
||||
* })
|
||||
*
|
||||
* @param \Symfony\Bridge\Doctrine\RegistryInterface $doctrine
|
||||
* @param \Symfony\Bridge\Doctrine\RegistryInterface $doctrine
|
||||
* @param \Symfony\Component\Security\Core\SecurityContextInterface $securityContext
|
||||
*/
|
||||
public function __construct(RegistryInterface $doctrine, SecurityContextInterface $securityContext)
|
||||
@@ -56,7 +56,7 @@ class EventsExtension extends \Twig_Extension
|
||||
);
|
||||
$eventList[$i]['date'] = $date;
|
||||
$eventList[$i]['events'] = array();
|
||||
foreach ($events as $event) {
|
||||
foreach ($events as $event) {
|
||||
if ($event->isOnDate($date)) {
|
||||
$eventList[$i]['events'][] = $event;
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@ use JMS\DiExtraBundle\Annotation as DI;
|
||||
/**
|
||||
* @DI\Service
|
||||
* @DI\Tag("twig.extension")
|
||||
*
|
||||
*
|
||||
*/
|
||||
class TwigBBExtension extends \Twig_Extension
|
||||
{
|
||||
|
Reference in New Issue
Block a user