Test Setup Failed
Push — master ( 14e042...222fdb )
by Artem
07:39 queued 05:58
created
app/SymfonyRequirements.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -405,7 +405,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/check.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/DoctrineMigrations/Version20140324104524.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,10 +23,10 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
app/DoctrineMigrations/Version20190114115107.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Stfalcon/Bundle/EventBundle/Admin/SpeakerAdmin.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Stfalcon/Bundle/EventBundle/Admin/PaymentAdmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Application/Bundle/DefaultBundle/Service/ReferralService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Application/Bundle/DefaultBundle/Controller/PaymentController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -402,8 +402,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
src/Application/Bundle/DefaultBundle/Controller/AdminController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -553,7 +553,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.