Test Failed
Pull Request — master (#103)
by
unknown
01:57
created
test/unit/Domain/Service/Basket/FactoryTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 
61 61
         $ticketReservations = $basket->getTickets();
62 62
         $ticketIdsFromBasket = array_map(
63
-            function (TicketReservation $item) {
63
+            function(TicketReservation $item) {
64 64
                 return $item->getReservationId();
65 65
             },
66 66
             $ticketReservations
Please login to merge, or discard this patch.
src/Domain/Service/Availability/Filters/AfterSoldOut.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,19 +29,19 @@
 block discarded – undo
29 29
     {
30 30
         $configuration = $this->configuration;
31 31
 
32
-        $identifiers = $tickets->map(function (TicketCounter $ticketCounter) {
32
+        $identifiers = $tickets->map(function(TicketCounter $ticketCounter) {
33 33
             return $ticketCounter->getTicketType()->getIdentifier();
34 34
         });
35 35
 
36 36
         //Filter out tickets which have an availability period in the past.
37
-        $p = function (string $identifier) use ($configuration) {
37
+        $p = function(string $identifier) use ($configuration) {
38 38
             $metadata = $configuration->getTicketMetadata($identifier);
39 39
 
40 40
             return !($metadata->expiredOn(new \DateTime()));
41 41
         };
42 42
         $identifiers = $identifiers->filter($p);
43 43
 
44
-        $p = function (TicketCounter $ticket) use ($configuration, $identifiers) {
44
+        $p = function(TicketCounter $ticket) use ($configuration, $identifiers) {
45 45
             $metadata = $configuration->getTicketMetadata($ticket->getTicketType()->getIdentifier());
46 46
 
47 47
             foreach ($metadata->getAfterSoldOut() as $identifier) {
Please login to merge, or discard this patch.
config/asset.config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 return [
14 14
     'resolver_configs' => [
15 15
         'paths' => [
16
-            __DIR__.'/../assets',
16
+            __DIR__ . '/../assets',
17 17
         ],
18 18
     ],
19 19
 ];
Please login to merge, or discard this patch.
config/module.config.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
 
13 13
 return [
14 14
     'router' => [
15
-        'routes' => require __DIR__.'/routes.config.php',
15
+        'routes' => require __DIR__ . '/routes.config.php',
16 16
     ],
17 17
     'navigation' => [
18
-        'default' => require __DIR__.'/navigation.config.php',
18
+        'default' => require __DIR__ . '/navigation.config.php',
19 19
     ],
20
-    'asset_manager' => require __DIR__.'/asset.config.php',
20
+    'asset_manager' => require __DIR__ . '/asset.config.php',
21 21
     'service_manager' => [
22 22
         'factories' => [
23 23
             \ConferenceTools\Tickets\Domain\Service\Configuration::class => \ConferenceTools\Tickets\Service\Factory\ConfigurationFactory::class,
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         ],
112 112
     ],
113 113
     'input_filter_specs' => [
114
-        \ConferenceTools\Tickets\Form\ManageTicket::class => include __DIR__.'/input-filters/manage-ticket.config.php',
114
+        \ConferenceTools\Tickets\Form\ManageTicket::class => include __DIR__ . '/input-filters/manage-ticket.config.php',
115 115
     ],
116 116
     'reports' => [
117 117
         'aliases' => [
@@ -147,15 +147,15 @@  discard block
 block discarded – undo
147 147
         'not_found_template' => 'error/404',
148 148
         'exception_template' => 'error/index',
149 149
         'template_map' => [
150
-            'tickets/layout' => __DIR__.'/../view/layout/layout.phtml',
151
-            'error/404' => __DIR__.'/../view/error/404.phtml',
152
-            'error/index' => __DIR__.'/../view/error/index.phtml',
153
-            'email/receipt' => __DIR__.'/../view/email/receipt.phtml',
154
-            'tickets/ticket/complete' => __DIR__.'/../view/tickets/ticket/complete.phtml',
155
-            'tickets/ticket/manage' => __DIR__.'/../view/tickets/ticket/manage.phtml',
156
-            'tickets/ticket/purchase' => __DIR__.'/../view/tickets/ticket/purchase.phtml',
157
-            'tickets/ticket/select-tickets' => __DIR__.'/../view/tickets/ticket/select-tickets.phtml',
158
-            'tickets/ticket/_orderInformation' => __DIR__.'/../view/tickets/ticket/_orderInformation.phtml',
150
+            'tickets/layout' => __DIR__ . '/../view/layout/layout.phtml',
151
+            'error/404' => __DIR__ . '/../view/error/404.phtml',
152
+            'error/index' => __DIR__ . '/../view/error/index.phtml',
153
+            'email/receipt' => __DIR__ . '/../view/email/receipt.phtml',
154
+            'tickets/ticket/complete' => __DIR__ . '/../view/tickets/ticket/complete.phtml',
155
+            'tickets/ticket/manage' => __DIR__ . '/../view/tickets/ticket/manage.phtml',
156
+            'tickets/ticket/purchase' => __DIR__ . '/../view/tickets/ticket/purchase.phtml',
157
+            'tickets/ticket/select-tickets' => __DIR__ . '/../view/tickets/ticket/select-tickets.phtml',
158
+            'tickets/ticket/_orderInformation' => __DIR__ . '/../view/tickets/ticket/_orderInformation.phtml',
159 159
         ],
160 160
         'controller_map' => [
161 161
             'ConferenceTools\Tickets\Controller' => 'tickets',
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             'conferencetools_tickets_read_orm_driver' => [
174 174
                 'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
175 175
                 'cache' => 'array',
176
-                'paths' => [__DIR__.'/../src/Domain/ReadModel'],
176
+                'paths' => [__DIR__ . '/../src/Domain/ReadModel'],
177 177
             ],
178 178
             'orm_default' => [
179 179
                 'drivers' => [
Please login to merge, or discard this patch.
src/Controller/TicketController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
                     foreach ($purchase->getTickets() as $i => $ticket) {
177 177
                         if (!$ticket->getTicketType()->isSupplementary()) {
178
-                            $delegateInfo[] = Delegate::fromArray($data['delegates_'.$i]);
178
+                            $delegateInfo[] = Delegate::fromArray($data['delegates_' . $i]);
179 179
                         } else {
180 180
                             $delegateInfo[] = Delegate::emptyObject();
181 181
                         }
@@ -185,8 +185,8 @@  discard block
 block discarded – undo
185 185
                     $this->getCommandBus()->dispatch($command);
186 186
                     $this->flashMessenger()
187 187
                         ->addSuccessMessage(
188
-                            'Your ticket purchase is completed. '.
189
-                            'You will receive an email shortly with your receipt. '.
188
+                            'Your ticket purchase is completed. ' .
189
+                            'You will receive an email shortly with your receipt. ' .
190 190
                             'Tickets will be sent to the delegates shortly before the event'
191 191
                         );
192 192
 
Please login to merge, or discard this patch.
src/Form/PurchaseForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
         foreach ($purchase->getTickets() as $i => $ticket) {
41 41
             /** @var TicketRecord $ticket */
42 42
             if (!$ticket->getTicketType()->isSupplementary()) {
43
-                $this->add(['type' => DelegateInformation::class, 'name' => 'delegates_'.$i]);
43
+                $this->add(['type' => DelegateInformation::class, 'name' => 'delegates_' . $i]);
44 44
             }
45 45
         }
46 46
 
Please login to merge, or discard this patch.
src/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
 
24 24
     public function getConfig()
25 25
     {
26
-        return include __DIR__.'/../config/module.config.php';
26
+        return include __DIR__ . '/../config/module.config.php';
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/View/Helper/FlashMessenger.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
         $translatorTextDomain = $this->getTranslatorTextDomain();
83 83
         array_walk_recursive(
84 84
             $messages,
85
-            function ($item) use (&$messagesToPrint, $escapeHtml, $autoEscape, $translator, $translatorTextDomain) {
85
+            function($item) use (&$messagesToPrint, $escapeHtml, $autoEscape, $translator, $translatorTextDomain) {
86 86
                 if (null !== $translator) {
87 87
                     $item = $translator->translate(
88 88
                         $item,
Please login to merge, or discard this patch.
src/Domain/Service/Availability/Filters/IsPrivate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function filter(Collection $tickets): Collection
32 32
     {
33 33
         $configuration = $this->configuration;
34
-        $p = function (TicketCounter $ticket) use ($configuration) {
34
+        $p = function(TicketCounter $ticket) use ($configuration) {
35 35
             $metadata = $configuration->getTicketMetadata($ticket->getTicketType()->getIdentifier());
36 36
 
37 37
             return !$metadata->isPrivateTicket();
Please login to merge, or discard this patch.