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.
web/config.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -56,7 +56,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
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'].'&nbsp;('.$result['percent'].'&nbsp;%)';
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.