| @@ -405,7 +405,7 @@ | ||
| 405 | 405 | $this->addRequirement( | 
| 406 | 406 | is_dir(__DIR__.'/../vendor/composer'), | 
| 407 | 407 | 'Vendor libraries must be installed', | 
| 408 | - 'Vendor libraries are missing. Install composer following instructions from <a href="http://getcomposer.org/">http://getcomposer.org/</a>. ' . | |
| 408 | + 'Vendor libraries are missing. Install composer following instructions from <a href="http://getcomposer.org/">http://getcomposer.org/</a>. '. | |
| 409 | 409 | 'Then run "<strong>php composer.phar install</strong>" to install them.' | 
| 410 | 410 | ); | 
| 411 | 411 | |
| @@ -48,7 +48,7 @@ | ||
| 48 | 48 | $version = ''; | 
| 49 | 49 | |
| 50 | 50 |      if (defined('INTL_ICU_VERSION')) { | 
| 51 | - $version = INTL_ICU_VERSION; | |
| 51 | + $version = INTL_ICU_VERSION; | |
| 52 | 52 |      } else { | 
| 53 | 53 |          $reflector = new \ReflectionExtension('intl'); | 
| 54 | 54 | |
| @@ -23,10 +23,10 @@ | ||
| 23 | 23 |          $statament = $this->connection->prepare('SELECT * FROM payments'); | 
| 24 | 24 | $statament->execute(); | 
| 25 | 25 |          while ($row = $statament->fetch()) { | 
| 26 | -            $this->addSql('UPDATE event__tickets SET amount = ' . $row['amount'] . | |
| 27 | - ', amount_without_discount = ' . $row['amount_without_discount'] . | |
| 28 | - ', has_discount = ' . $row['has_discount'] . | |
| 29 | - ' WHERE payment_id = ' . $row['id']); | |
| 26 | +            $this->addSql('UPDATE event__tickets SET amount = '.$row['amount']. | |
| 27 | + ', amount_without_discount = '.$row['amount_without_discount']. | |
| 28 | + ', has_discount = '.$row['has_discount']. | |
| 29 | + ' WHERE payment_id = '.$row['id']); | |
| 30 | 30 | } | 
| 31 | 31 | |
| 32 | 32 |          $this->addSql("ALTER TABLE payments DROP has_discount, DROP amount_without_discount"); | 
| @@ -27,7 +27,7 @@ | ||
| 27 | 27 | $position = 1; | 
| 28 | 28 |              foreach ($event->getBlocks() as $block) { | 
| 29 | 29 | $block->setPosition($position); | 
| 30 | - $position ++; | |
| 30 | + $position++; | |
| 31 | 31 | } | 
| 32 | 32 | } | 
| 33 | 33 | |
| @@ -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) { | 
| @@ -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) { | 
| @@ -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'; | 
| @@ -553,7 +553,7 @@ | ||
| 553 | 553 |              'Content-Disposition' => sprintf('attachment; filename="%s"', $filename), | 
| 554 | 554 | 'Content-Type' => 'text/csv', | 
| 555 | 555 | ]; | 
| 556 | -        $callback = function () use ($users) { | |
| 556 | +        $callback = function() use ($users) { | |
| 557 | 557 |              $usersFile = \fopen('php://output', 'w'); | 
| 558 | 558 |              foreach ($users as $fields) { | 
| 559 | 559 | \fputcsv($usersFile, $fields); |