Applied php-cs-fixer and added some @PHPDoc

Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely POLONKAI
2012-08-17 16:18:43 +02:00
parent 4772fd2273
commit aed588e5e2
42 changed files with 479 additions and 349 deletions

View File

@@ -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;
}

View File

@@ -7,7 +7,7 @@ use JMS\DiExtraBundle\Annotation as DI;
/**
* @DI\Service
* @DI\Tag("twig.extension")
*
*
*/
class TwigBBExtension extends \Twig_Extension
{