Completed
Branch master (429264)
by Kamil
37:02
created
Sylius/Bundle/GridBundle/Tests/DependencyInjection/ConfigurationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                         'actions' => [],
49 49
                     ]
50 50
                 ],
51
-                'drivers' => [ 'doctrine/orm' ]
51
+                'drivers' => ['doctrine/orm']
52 52
             ]
53 53
         );
54 54
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $this->assertConfigurationIsInvalid(
100 100
             [
101 101
                 [
102
-                    'drivers' => [ 'doctrine/orm', 'foo/invalid' ],
102
+                    'drivers' => ['doctrine/orm', 'foo/invalid'],
103 103
                 ],
104 104
             ],
105 105
             'Invalid driver specified in ["doctrine\/orm","foo\/invalid"], valid drivers:'
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Domain/PromotionCouponContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             $this->couponRepository->remove($coupon);
64 64
 
65 65
             throw new \Exception(sprintf('Coupon "%s" has been removed, but it should not.', $coupon->getCode()));
66
-        } catch(ForeignKeyConstraintViolationException $exception) {
66
+        } catch (ForeignKeyConstraintViolationException $exception) {
67 67
             $this->sharedStorage->set('last_exception', $exception);
68 68
         }
69 69
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Command/PromoteUserCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
 
52 52
         foreach ($securityRoles as $securityRole) {
53 53
             if ($user->hasRole($securityRole)) {
54
-                $output->writeln(sprintf('<error>User "%s" did already have "%s" security role.</error>', (string)$user, $securityRole));
54
+                $output->writeln(sprintf('<error>User "%s" did already have "%s" security role.</error>', (string) $user, $securityRole));
55 55
                 $error = true;
56 56
                 continue;
57 57
             }
58 58
 
59 59
             $user->addRole($securityRole);
60
-            $output->writeln(sprintf('Security role <comment>%s</comment> has been added to user <comment>%s</comment>', $securityRole, (string)$user));
60
+            $output->writeln(sprintf('Security role <comment>%s</comment> has been added to user <comment>%s</comment>', $securityRole, (string) $user));
61 61
         }
62 62
 
63 63
         if (!$error) {
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/HomePage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
      */
40 40
     protected function getDefinedElements()
41 41
     {
42
-        return array_merge(parent::getDefinedElements(),[
42
+        return array_merge(parent::getDefinedElements(), [
43 43
             'right_menu' => '.right.item',
44 44
         ]);
45 45
     }
Please login to merge, or discard this patch.
spec/Doctrine/ODM/PHPCR/EventListener/NameFilterListenerSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
         $documentManager->getClassMetadata('stdClass')->willReturn($metadata);
50 50
         $metadata->nodename = null;
51 51
 
52
-        $this->shouldThrow(new \RuntimeException('In order to use the node name filter on "stdClass" it is necessary to map a field as the "nodename"'))->during('onEvent', [ $event ]);
52
+        $this->shouldThrow(new \RuntimeException('In order to use the node name filter on "stdClass" it is necessary to map a field as the "nodename"'))->during('onEvent', [$event]);
53 53
     }
54 54
 
55 55
     function it_should_clean_the_name(
Please login to merge, or discard this patch.
spec/Doctrine/ODM/PHPCR/EventListener/NameResolverListenerSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $metadata->idGenerator = 'foo';
51 51
 
52 52
         $this->shouldThrow(new \RuntimeException('Document of class "stdClass" must be using the GENERATOR_TYPE_PARENT identificatio strategy (value 3), it is current using "foo" (this may be an automatic configuration: be sure to map both the `nodename` and the `parentDocument`).'))->during(
53
-            'onEvent', [ $event ]
53
+            'onEvent', [$event]
54 54
         );
55 55
     }
56 56
 
Please login to merge, or discard this patch.
spec/Doctrine/ODM/PHPCR/EventListener/DefaultParentListenerSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
             'A default parent path has been specified, but no parent mapping has been applied to document "stdClass"'
59 59
         ))->during(
60 60
             'onPreCreate',
61
-            [ $event ]
61
+            [$event]
62 62
         );
63 63
     }
64 64
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             'Document at default parent path "/path/to" does not exist. `autocreate` was set to "false"'
85 85
         ))->during(
86 86
             'onPreCreate',
87
-            [ $event ]
87
+            [$event]
88 88
         );
89 89
     }
90 90
 
Please login to merge, or discard this patch.
spec/Form/EventSubscriber/AddAuthorGuestTypeFormSubscriberSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
 
42 42
     function it_listens_on_pre_set_data_event()
43 43
     {
44
-        $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SET_DATA => 'preSetData',]);
44
+        $this->getSubscribedEvents()->shouldReturn([FormEvents::PRE_SET_DATA => 'preSetData', ]);
45 45
     }
46 46
 
47 47
     function it_adds_author_guest_form_type_if_user_is_not_logged_in_and_review_subject_does_not_have_author(
Please login to merge, or discard this patch.
app/TestAppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-require_once __DIR__.'/AppKernel.php';
12
+require_once __DIR__ . '/AppKernel.php';
13 13
 
14 14
 use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer;
15 15
 use Symfony\Component\DependencyInjection\ContainerInterface;
Please login to merge, or discard this patch.