| @@ -10,7 +10,6 @@ | ||
| 10 | 10 | use BCRM\BackendBundle\Entity\Event\Event; | 
| 11 | 11 | use BCRM\BackendBundle\Exception\CommandException; | 
| 12 | 12 | use BCRM\BackendBundle\Service\Event\SendTicketMailCommand; | 
| 13 | -use Doctrine\Common\Util\Debug; | |
| 14 | 13 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | 
| 15 | 14 | use Symfony\Component\Console\Input\InputInterface; | 
| 16 | 15 | use Symfony\Component\Console\Output\OutputInterface; | 
| @@ -12,7 +12,6 @@ | ||
| 12 | 12 | use BCRM\BackendBundle\Service\Concierge\PayRegistrationConciergeCommand; | 
| 13 | 13 | use BCRM\BackendBundle\Entity\PaymentRepository; | 
| 14 | 14 | use BCRM\BackendBundle\Entity\Event\RegistrationRepository; | 
| 15 | -use Endroid\QrCode\QrCode; | |
| 16 | 15 | use LiteCQRS\Bus\CommandBus; | 
| 17 | 16 | use LiteCQRS\Bus\EventMessageBus; | 
| 18 | 17 | use LiteCQRS\Plugin\CRUD\Model\Commands\UpdateResourceCommand; | 
| @@ -5,7 +5,6 @@ | ||
| 5 | 5 | use BCRM\BackendBundle\Service\Mail\SendTemplateMailCommand; | 
| 6 | 6 | use BCRM\BackendBundle\Content\ContentReader; | 
| 7 | 7 | use Symfony\Bridge\Twig\TwigEngine; | 
| 8 | -use Symfony\Component\Templating\TemplateReference; | |
| 9 | 8 | |
| 10 | 9 | class Mail | 
| 11 | 10 |  { | 
| @@ -7,13 +7,8 @@ | ||
| 7 | 7 | |
| 8 | 8 | namespace BCRM\PrintBundle\Command; | 
| 9 | 9 | |
| 10 | -use BCRM\BackendBundle\Entity\Event\Event; | |
| 11 | -use BCRM\BackendBundle\Entity\Event\Registration; | |
| 12 | 10 | use BCRM\BackendBundle\Entity\Event\Ticket; | 
| 13 | -use BCRM\BackendBundle\Exception\CommandException; | |
| 14 | -use BCRM\BackendBundle\Service\Event\CreateTicketCommand; | |
| 15 | 11 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; | 
| 16 | -use Symfony\Component\Console\Input\InputArgument; | |
| 17 | 12 | use Symfony\Component\Console\Input\InputInterface; | 
| 18 | 13 | use Symfony\Component\Console\Input\InputOption; | 
| 19 | 14 | use Symfony\Component\Console\Output\OutputInterface; | 
| @@ -13,7 +13,6 @@ discard block | ||
| 13 | 13 | use BCRM\BackendBundle\Entity\Event\Ticket; | 
| 14 | 14 | use BCRM\BackendBundle\Entity\Event\TicketRepository; | 
| 15 | 15 | use BCRM\BackendBundle\Service\Concierge\CheckinCommand; | 
| 16 | -use BCRM\WebBundle\Content\ContentReader; | |
| 17 | 16 | use BCRM\WebBundle\Exception\AccesDeniedHttpException; | 
| 18 | 17 | use BCRM\WebBundle\Exception\BadRequestException; | 
| 19 | 18 | use Carbon\Carbon; | 
| @@ -21,10 +20,7 @@ discard block | ||
| 21 | 20 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; | 
| 22 | 21 | use Symfony\Component\HttpFoundation\RedirectResponse; | 
| 23 | 22 | use Symfony\Component\HttpFoundation\Request; | 
| 24 | -use Symfony\Component\HttpFoundation\Response; | |
| 25 | 23 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | 
| 26 | -use Symfony\Component\Routing\RouterInterface; | |
| 27 | -use Symfony\Component\Validator\Constraints\DateTime; | |
| 28 | 24 | |
| 29 | 25 | /** | 
| 30 | 26 | * Manages event checkins. | 
| @@ -12,13 +12,10 @@ discard block | ||
| 12 | 12 | use BCRM\BackendBundle\Entity\Event\Registration; | 
| 13 | 13 | use BCRM\BackendBundle\Entity\Event\Ticket; | 
| 14 | 14 | use BCRM\BackendBundle\Entity\Event\TicketRepository; | 
| 15 | -use BCRM\BackendBundle\Service\Concierge\CheckinCommand; | |
| 16 | 15 | use BCRM\BackendBundle\Service\Concierge\PayRegistrationConciergeCommand; | 
| 17 | 16 | use BCRM\BackendBundle\Service\Event\CreateTicketCommand; | 
| 18 | 17 | use BCRM\BackendBundle\Service\Event\RegisterCommand; | 
| 19 | -use BCRM\WebBundle\Content\ContentReader; | |
| 20 | 18 | use BCRM\WebBundle\Exception\AccesDeniedHttpException; | 
| 21 | -use BCRM\WebBundle\Exception\BadRequestException; | |
| 22 | 19 | use BCRM\WebBundle\Form\TicketType; | 
| 23 | 20 | use Carbon\Carbon; | 
| 24 | 21 | use LiteCQRS\Bus\CommandBus; | 
| @@ -29,9 +26,7 @@ discard block | ||
| 29 | 26 | use Symfony\Component\HttpFoundation\Response; | 
| 30 | 27 | use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; | 
| 31 | 28 | use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; | 
| 32 | -use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
| 33 | 29 | use Symfony\Component\Routing\RouterInterface; | 
| 34 | -use Symfony\Component\Validator\Constraints\DateTime; | |
| 35 | 30 | use Symfony\Component\Security\Core\Util\SecureRandom; | 
| 36 | 31 | |
| 37 | 32 | /** | 
| @@ -112,7 +112,9 @@ | ||
| 112 | 112 | Ticket::DAY_SATURDAY => $formData->getSaturday(), | 
| 113 | 113 | Ticket::DAY_SUNDAY => $formData->getSunday(), | 
| 114 | 114 |                  ) as $day => $want) { | 
| 115 | - if (!$want) continue; | |
| 115 | +                if (!$want) { | |
| 116 | + continue; | |
| 117 | + } | |
| 116 | 118 | $ticketCommand = new CreateTicketCommand(); | 
| 117 | 119 | $ticketCommand->day = $day; | 
| 118 | 120 | $ticketCommand->event = $event; | 
| @@ -18,7 +18,6 @@ | ||
| 18 | 18 | use BCRM\BackendBundle\Service\Event\UnregisterCommand; | 
| 19 | 19 | use BCRM\WebBundle\Content\ContentReader; | 
| 20 | 20 | use BCRM\WebBundle\Form\EventRegisterModel; | 
| 21 | -use BCRM\WebBundle\Form\EventRegisterType; | |
| 22 | 21 | use BCRM\WebBundle\Form\EventUnregisterType; | 
| 23 | 22 | use Carbon\Carbon; | 
| 24 | 23 | use Dothiv\Bundle\MoneyFormatBundle\Service\MoneyFormatServiceInterface; | 
| @@ -7,7 +7,6 @@ | ||
| 7 | 7 | |
| 8 | 8 | namespace BCRM\WebBundle\Controller; | 
| 9 | 9 | |
| 10 | -use BCRM\BackendBundle\Entity\Event\Event; | |
| 11 | 10 | use BCRM\BackendBundle\Entity\Event\EventRepository; | 
| 12 | 11 | use BCRM\BackendBundle\Entity\Event\Registration; | 
| 13 | 12 | use BCRM\BackendBundle\Entity\Event\Ticket; | 
| @@ -67,7 +67,9 @@ | ||
| 67 | 67 | |
| 68 | 68 | protected function logVerbose($msg) | 
| 69 | 69 |      { | 
| 70 | - if ($this->output->getVerbosity() < OutputInterface::VERBOSITY_VERBOSE) return; | |
| 70 | +        if ($this->output->getVerbosity() < OutputInterface::VERBOSITY_VERBOSE) { | |
| 71 | + return; | |
| 72 | + } | |
| 71 | 73 | $this->output->writeln($msg); | 
| 72 | 74 | } | 
| 73 | 75 | } |