| @@ -71,11 +71,11 @@ | ||
| 71 | 71 |              ->add('user.fullname', null, ['label' => 'Имя пользователя']) | 
| 72 | 72 |              ->add('mail.title', null, ['label' => 'Название']) | 
| 73 | 73 |              ->add('_action', 'actions', [ | 
| 74 | - 'label' => 'Действие', | |
| 75 | - 'actions' => [ | |
| 76 | - 'edit' => [], | |
| 77 | - 'delete' => [], | |
| 78 | - ], | |
| 74 | + 'label' => 'Действие', | |
| 75 | + 'actions' => [ | |
| 76 | + 'edit' => [], | |
| 77 | + 'delete' => [], | |
| 78 | + ], | |
| 79 | 79 | ]); | 
| 80 | 80 | } | 
| 81 | 81 | |
| @@ -78,7 +78,7 @@ discard block | ||
| 78 | 78 |              ->with('Участвует в событиях', ['class' => 'col-md-4']) | 
| 79 | 79 |                  ->add('events', 'entity', [ | 
| 80 | 80 | 'class' => 'Stfalcon\Bundle\EventBundle\Entity\Event', | 
| 81 | -                    'query_builder' => function (\Doctrine\ORM\EntityRepository $repository) { | |
| 81 | +                    'query_builder' => function(\Doctrine\ORM\EntityRepository $repository) { | |
| 82 | 82 |                          $qb = $repository->createQueryBuilder('e'); | 
| 83 | 83 |                          $repository = $qb->orderBy('e.id', 'DESC'); | 
| 84 | 84 | |
| @@ -92,7 +92,7 @@ discard block | ||
| 92 | 92 |              ->with('Кандидат на события', ['class' => 'col-md-4']) | 
| 93 | 93 |                  ->add('candidateEvents', 'entity', [ | 
| 94 | 94 | 'class' => 'Stfalcon\Bundle\EventBundle\Entity\Event', | 
| 95 | -                    'query_builder' => function (\Doctrine\ORM\EntityRepository $repository) { | |
| 95 | +                    'query_builder' => function(\Doctrine\ORM\EntityRepository $repository) { | |
| 96 | 96 |                          $qb = $repository->createQueryBuilder('e'); | 
| 97 | 97 |                          $repository = $qb->orderBy('e.id', 'DESC'); | 
| 98 | 98 | |
| @@ -106,7 +106,7 @@ discard block | ||
| 106 | 106 |              ->with('Программный комитет', ['class' => 'col-md-4']) | 
| 107 | 107 |                  ->add('committeeEvents', 'entity', [ | 
| 108 | 108 | 'class' => 'Stfalcon\Bundle\EventBundle\Entity\Event', | 
| 109 | -                    'query_builder' => function (\Doctrine\ORM\EntityRepository $repository) { | |
| 109 | +                    'query_builder' => function(\Doctrine\ORM\EntityRepository $repository) { | |
| 110 | 110 |                          $qb = $repository->createQueryBuilder('e'); | 
| 111 | 111 |                          $repository = $qb->orderBy('e.id', 'DESC'); | 
| 112 | 112 | |
| @@ -100,7 +100,7 @@ | ||
| 100 | 100 | 'doctrine_orm_callback', | 
| 101 | 101 | [ | 
| 102 | 102 | 'label' => 'Событие', | 
| 103 | -                    'callback' => function ($queryBuilder, $alias, $field, $value) { | |
| 103 | +                    'callback' => function($queryBuilder, $alias, $field, $value) { | |
| 104 | 104 | $eventsId = []; | 
| 105 | 105 | /** @var $event \Stfalcon\Bundle\EventBundle\Entity\Event */ | 
| 106 | 106 |                          foreach ($value['value'] as $event) { | 
| @@ -31,12 +31,12 @@ discard block | ||
| 31 | 31 |          $qb = $this->createQueryBuilder('t'); | 
| 32 | 32 | |
| 33 | 33 |          return $qb->join('t.event', 'e') | 
| 34 | -                  ->where($qb->expr()->eq('e.active', ':active')) | |
| 35 | -                  ->andWhere($qb->expr()->eq('t.user', ':user')) | |
| 36 | - ->setParameters(['user' => $user, 'active' => true]) | |
| 37 | -                  ->orderBy('e.date', 'ASC') | |
| 38 | - ->getQuery() | |
| 39 | - ->getResult(); | |
| 34 | +                    ->where($qb->expr()->eq('e.active', ':active')) | |
| 35 | +                    ->andWhere($qb->expr()->eq('t.user', ':user')) | |
| 36 | + ->setParameters(['user' => $user, 'active' => true]) | |
| 37 | +                    ->orderBy('e.date', 'ASC') | |
| 38 | + ->getQuery() | |
| 39 | + ->getResult(); | |
| 40 | 40 | } | 
| 41 | 41 | |
| 42 | 42 | /** | 
| @@ -340,20 +340,20 @@ discard block | ||
| 340 | 340 | |
| 341 | 341 |          $qb = $this->createQueryBuilder('t'); | 
| 342 | 342 |          $qb->select('MONTH(p.updatedAt) as paymentMonth, DAY(p.updatedAt) as paymentDay, COUNT(t.id) as ticketsCount') | 
| 343 | -           ->join('t.payment', 'p') | |
| 344 | -           ->where($qb->expr()->gte('p.updatedAt', ':monthAgo')) | |
| 345 | -           ->andWhere($qb->expr()->lte('p.updatedAt', ':now')) | |
| 346 | -           ->andWhere($qb->expr()->eq('p.status', ':status')) | |
| 347 | - ->setParameters([ | |
| 348 | - 'monthAgo' => $monthAgo, | |
| 349 | - 'now' => $now, | |
| 350 | - 'status' => Payment::STATUS_PAID, | |
| 351 | - ]) | |
| 343 | +            ->join('t.payment', 'p') | |
| 344 | +            ->where($qb->expr()->gte('p.updatedAt', ':monthAgo')) | |
| 345 | +            ->andWhere($qb->expr()->lte('p.updatedAt', ':now')) | |
| 346 | +            ->andWhere($qb->expr()->eq('p.status', ':status')) | |
| 347 | + ->setParameters([ | |
| 348 | + 'monthAgo' => $monthAgo, | |
| 349 | + 'now' => $now, | |
| 350 | + 'status' => Payment::STATUS_PAID, | |
| 351 | + ]) | |
| 352 | 352 | ; | 
| 353 | 353 | |
| 354 | 354 |          if ($event instanceof Event) { | 
| 355 | 355 |              $qb->andWhere($qb->expr()->eq('t.event', ':event')) | 
| 356 | -               ->setParameter('event', $event); | |
| 356 | +                ->setParameter('event', $event); | |
| 357 | 357 | } | 
| 358 | 358 | |
| 359 | 359 | $results = $qb | 
| @@ -26,7 +26,7 @@ | ||
| 26 | 26 | 'листопада' => ['листопад', 'осінь'], | 
| 27 | 27 | 'грудня' => ['грудень', 'зима'], | 
| 28 | 28 | ], | 
| 29 | - 'en' => | |
| 29 | + 'en' => | |
| 30 | 30 | [ | 
| 31 | 31 | 'January' => ['January', 'Winter'], | 
| 32 | 32 | 'February' => ['February', 'Winter'], | 
| @@ -81,7 +81,7 @@ | ||
| 81 | 81 | |
| 82 | 82 | $tickets = $payment->getTickets(); | 
| 83 | 83 | /** @var Ticket $firstTicket */ | 
| 84 | - $firstTicket = $tickets->count() > 0 ? $tickets[0] : null; | |
| 84 | + $firstTicket = $tickets->count() > 0 ? $tickets[0] : null; | |
| 85 | 85 | $bonus = $firstTicket && self::SPECIAL_BONUS_EVENT === $firstTicket->getEvent()->getSlug() ? self::SPECIAL_REFERRAL_BONUS : self::REFERRAL_BONUS; | 
| 86 | 86 | |
| 87 | 87 |          if ($userReferral) { | 
| @@ -36,10 +36,10 @@ | ||
| 36 | 36 | |
| 37 | 37 | $fileConstraint = new Collection( | 
| 38 | 38 | [ | 
| 39 | - 'file' => [ | |
| 40 | - new NotBlank(), | |
| 41 | - new Image(), | |
| 42 | - ], | |
| 39 | + 'file' => [ | |
| 40 | + new NotBlank(), | |
| 41 | + new Image(), | |
| 42 | + ], | |
| 43 | 43 | ] | 
| 44 | 44 | ); | 
| 45 | 45 | |
| @@ -402,8 +402,7 @@ | ||
| 402 | 402 |          if ($payment->getTickets()->count() > 0) { | 
| 403 | 403 |              if (0 === (int) $payment->getAmount()) { | 
| 404 | 404 | $formAction = $payment->getFwdaysAmount() > 0 ? | 
| 405 | -                    $this->generateUrl('event_pay_by_bonus', ['eventSlug' => $event->getSlug()]) : | |
| 406 | -                    $this->generateUrl('event_pay_by_promocode', ['eventSlug' => $event->getSlug()]); | |
| 405 | +                    $this->generateUrl('event_pay_by_bonus', ['eventSlug' => $event->getSlug()]) : $this->generateUrl('event_pay_by_promocode', ['eventSlug' => $event->getSlug()]); | |
| 407 | 406 |                  $byeBtnCaption = $this->get('translator')->trans('ticket.status.get'); | 
| 408 | 407 |              } else { | 
| 409 | 408 | $payType = 'wayforpay'; | 
| @@ -56,7 +56,10 @@ discard block | ||
| 56 | 56 | <?php if (count($minorProblems)): ?> | 
| 57 | 57 | <h2>Recommendations</h2> | 
| 58 | 58 | <p> | 
| 59 | - <?php if (count($majorProblems)): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience, | |
| 59 | +                    <?php if (count($majorProblems)): ?>Additionally, to<?php else { | |
| 60 | + : ?>To<?php endif; | |
| 61 | +} | |
| 62 | +?> enhance your Symfony experience, | |
| 60 | 63 | it’s recommended that you fix the following: | 
| 61 | 64 | </p> | 
| 62 | 65 | <ol> | 
| @@ -70,9 +73,12 @@ discard block | ||
| 70 | 73 | <p id="phpini">* | 
| 71 | 74 | <?php if ($symfonyRequirements->getPhpIniConfigPath()): ?> | 
| 72 | 75 | Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniConfigPath() ?></strong>". | 
| 73 | - <?php else: ?> | |
| 76 | +                        <?php else { | |
| 77 | + : ?> | |
| 74 | 78 | To change settings, create a "<strong>php.ini</strong>". | 
| 75 | - <?php endif; ?> | |
| 79 | + <?php endif; | |
| 80 | +} | |
| 81 | +?> | |
| 76 | 82 | </p> | 
| 77 | 83 | <?php endif; ?> | 
| 78 | 84 | |