Passed
Pull Request — master (#498)
by Stepan
04:19
created
src/Stfalcon/Bundle/EventBundle/Admin/MailQueueAdmin.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -71,11 +71,11 @@
 block discarded – undo
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
 
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/Twig/AppDateTimeExtension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
                     'листопада' => ['листопад', 'осінь'],
27 27
                     'грудня' => ['грудень', 'зима'],
28 28
                 ],
29
-             'en' =>
29
+                'en' =>
30 30
                 [
31 31
                     'January' => ['January', 'Winter'],
32 32
                     'February' => ['February', 'Winter'],
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/UploadController.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@
 block discarded – undo
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
 
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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -517,7 +517,7 @@  discard block
 block discarded – undo
517 517
                     $result['text'] = $result['cnt'].' ('.$result['percent'].' %)';
518 518
 
519 519
                     $green = $maxGreen - round($deltaGreen * $result['percent'] / 100);
520
-                    $otherColor = (int) round($green/($maxGreen / $green));
520
+                    $otherColor = (int) round($green / ($maxGreen / $green));
521 521
                     $otherColor = dechex($otherColor);
522 522
                     $result['color'] = '#'.$otherColor.dechex((int) $green).$otherColor;
523 523
                 } else {
@@ -553,7 +553,7 @@  discard block
 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.
Application/Bundle/DefaultBundle/Service/Statistic/Chart/ChartBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,10 +50,10 @@
 block discarded – undo
50 50
 
51 51
         // рахуєм різницю в роках між першою датою графіка і останньою, щоб динамічно підлаштувати висоту канви
52 52
         $firstDate = array_keys($data)[1]; // в 0-му елементі заголовки графіка. перша дата в 1-му
53
-        $lastDate = array_keys($data)[count($data)-1];
53
+        $lastDate = array_keys($data)[count($data) - 1];
54 54
 
55 55
         $years = (new \DateTime($lastDate))->format('Y') - (new \DateTime($firstDate))->format('Y') + 1;
56
-        $chart->getOptions()->setHeight(200*$years);
56
+        $chart->getOptions()->setHeight(200 * $years);
57 57
 
58 58
         $chart->getOptions()->getCalendar()->setCellSize(18);
59 59
         $chart->getOptions()->getNoDataPattern()->setBackgroundColor('#76a7fa');
Please login to merge, or discard this patch.