Completed
Push — master ( 04a835...b83ce7 )
by Markus
03:09
created
src/BCRM/BackendBundle/Command/CreateTicketsCommand.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,9 @@
 block discarded – undo
67 67
 
68 68
     protected function logVerbose($msg)
69 69
     {
70
-        if ($this->output->getVerbosity() < OutputInterface::VERBOSITY_VERBOSE) return;
70
+        if ($this->output->getVerbosity() < OutputInterface::VERBOSITY_VERBOSE) {
71
+            return;
72
+        }
71 73
         $this->output->writeln($msg);
72 74
     }
73 75
 }
Please login to merge, or discard this patch.
src/BCRM/BackendBundle/Command/MailChimpUpdateParticipantsListCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
      */
106 106
     protected function toBatch(ArrayCollection $emails, $deep = true)
107 107
     {
108
-        return $emails->map(function ($email) use($deep) {
108
+        return $emails->map(function($email) use($deep) {
109 109
             return array(
110 110
                 'email'      => $deep ? array('email' => $email) : $email,
111 111
                 'email_type' => 'html'
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,9 @@
 block discarded – undo
61 61
         foreach ($ticketRepo->getTicketsForEvent($eventRepo->getNextEvent()->getOrThrow(
62 62
             new BadMethodCallException('No event.')
63 63
         )) as $ticket) {
64
-            if ($participants->contains(strtolower($ticket->getEmail()))) continue;
64
+            if ($participants->contains(strtolower($ticket->getEmail()))) {
65
+                continue;
66
+            }
65 67
             $participants->add(strtolower($ticket->getEmail()));
66 68
         }
67 69
 
Please login to merge, or discard this patch.
src/BCRM/BackendBundle/Content/FileContentReader.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,9 @@  discard block
 block discarded – undo
52 52
     {
53 53
         $contentdir = $this->contentDir->getPathname() . DIRECTORY_SEPARATOR;
54 54
         $file       = $contentdir . $path;
55
-        if (!is_file($file)) throw new FileNotFoundException($path);
55
+        if (!is_file($file)) {
56
+            throw new FileNotFoundException($path);
57
+        }
56 58
         return new \SplFileInfo($file);
57 59
     }
58 60
 
@@ -74,7 +76,9 @@  discard block
 block discarded – undo
74 76
     protected function readProperties($markdown)
75 77
     {
76 78
         $properties = array();
77
-        if (!preg_match_all(static::PROPERTIES_MATCH, $markdown, $matches, PREG_SET_ORDER)) return $properties;
79
+        if (!preg_match_all(static::PROPERTIES_MATCH, $markdown, $matches, PREG_SET_ORDER)) {
80
+            return $properties;
81
+        }
78 82
         foreach ($matches as $match) {
79 83
             $properties[$match[1]] = $match[2];
80 84
         }
Please login to merge, or discard this patch.
src/BCRM/BackendBundle/Content/TwigLoader.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,9 @@
 block discarded – undo
33 33
 
34 34
     protected function getFile($name)
35 35
     {
36
-        if (!preg_match('/^bcrm_content:(.+)/', $name, $match)) throw new Twig_Error_Loader(sprintf('Unknown template: %s', $name));
36
+        if (!preg_match('/^bcrm_content:(.+)/', $name, $match)) {
37
+            throw new Twig_Error_Loader(sprintf('Unknown template: %s', $name));
38
+        }
37 39
         return $match[1];
38 40
     }
39 41
 
Please login to merge, or discard this patch.
src/BCRM/BackendBundle/DependencyInjection/BCRMBackendExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         $configuration = new Configuration();
26 26
         $config = $this->processConfiguration($configuration, $configs);
27 27
 
28
-        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
28
+        $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
29 29
         $loader->load('services.xml');
30 30
         $loader->load('persistence.xml');
31 31
     }
Please login to merge, or discard this patch.
src/BCRM/BackendBundle/Service/Event.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@
 block discarded – undo
318 318
         $payment              = $event->payment;
319 319
         $registrationOptional = $this->registrationRepo->findByUuid($payment->getPayload()->get('item_number'));
320 320
         if ($registrationOptional->isEmpty()) {
321
-            Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($payment) {
321
+            Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($payment) {
322 322
                 $logger->alert(sprintf('No registration found with uuid "%s"', $payment->getPayload()->get('item_number')), array($payment));
323 323
             });
324 324
             return;
Please login to merge, or discard this patch.
src/BCRM/BackendBundle/Service/Mail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $template      = $this->cr->getContent($tplIdentifier);
56 56
         $templateData  = $command->templateData;
57 57
         if ($command->image !== null) {
58
-            $templateData['image'] = $message->embed(\Swift_Image::fromPath($command->image));;
58
+            $templateData['image'] = $message->embed(\Swift_Image::fromPath($command->image)); ;
59 59
         }
60 60
 
61 61
         // Subject
Please login to merge, or discard this patch.
src/BCRM/BackendBundle/Service/Payment.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,11 +100,11 @@
 block discarded – undo
100 100
             $event->payment                  = $payment;
101 101
             $payment->setPayload(new ArrayCollection($data));
102 102
             $this->eventMessageBus->publish($event);
103
-            Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($payment) {
103
+            Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($payment) {
104 104
                 $logger->info(sprintf('Payment "%s" is verified.', $payment->getId()), array($payment));
105 105
             });
106 106
         } else {
107
-            Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($payment) {
107
+            Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($payment) {
108 108
                 $logger->alert(sprintf('Payment "%s" could not be verified.', $payment->getId()), array($payment));
109 109
             });
110 110
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,9 @@
 block discarded – undo
84 84
 
85 85
         $data = array();
86 86
         foreach (explode("\n", $res) as $line) {
87
-            if (!strpos($line, '=')) continue;
87
+            if (!strpos($line, '=')) {
88
+                continue;
89
+            }
88 90
             list($key, $value) = explode('=', $line);
89 91
             $data[$key] = $value;
90 92
         }
Please login to merge, or discard this patch.
src/BCRM/BackendBundle/Service/Ticket.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         $payment      = $event->payment;
88 88
         $registration = $event->registration;
89
-        Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($registration, $payment) {
89
+        Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($registration, $payment) {
90 90
             $logger->alert(sprintf('Registration "%s" has been paid with payment "%s".', $registration->getId(), $payment->getId()));
91 91
         });
92 92
         foreach ($this->ticketRepo->getTicketsForEmail(
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             $updateCommand->id    = $ticket->getId();
99 99
             $updateCommand->data  = array('payment' => $payment);
100 100
             $this->commandBus->handle($updateCommand);
101
-            Option::fromValue($this->logger)->map(function (LoggerInterface $logger) use ($payment, $ticket) {
101
+            Option::fromValue($this->logger)->map(function(LoggerInterface $logger) use ($payment, $ticket) {
102 102
                 $logger->alert(sprintf('Assigning payment "%s" to ticket "%s"', $payment->getId(), $ticket->getCode()));
103 103
             });
104 104
         }
Please login to merge, or discard this patch.