Completed
Push — symfony3-additional ( f443a4 )
by Kamil
18:14
created
src/Sylius/Bundle/ShippingBundle/DependencyInjection/Configuration.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -202,8 +202,8 @@
 block discarded – undo
202 202
                                         ->arrayNode('form')
203 203
                                             ->addDefaultsIfNotSet()
204 204
                                             ->children()
205
-                                                 ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end()
206
-                                                 ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end()
205
+                                                    ->scalarNode('default')->defaultValue(ShippingCategoryType::class)->cannotBeEmpty()->end()
206
+                                                    ->scalarNode('choice')->defaultValue(ResourceChoiceType::class)->cannotBeEmpty()->end()
207 207
                                             ->end()
208 208
                                         ->end()
209 209
                                     ->end()
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/test/src/Tests/Controller/BookApiTest.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         $objects = $this->loadFixturesFromFile('books.yml');
66 66
 
67 67
         $data =
68
- <<<EOT
68
+    <<<EOT
69 69
         {
70 70
             "title": "Star Wars: Dark Disciple"
71 71
         }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         }
64 64
 EOT;
65 65
 
66
-        $this->client->request('PUT', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
66
+        $this->client->request('PUT', '/books/' . $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
67 67
         $response = $this->client->getResponse();
68 68
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
69 69
     }
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         }
83 83
 EOT;
84 84
 
85
-        $this->client->request('PATCH', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
85
+        $this->client->request('PATCH', '/books/' . $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
86 86
         $response = $this->client->getResponse();
87 87
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
88 88
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $objects = $this->loadFixturesFromFile('books.yml');
96 96
 
97
-        $this->client->request('DELETE', '/books/'. $objects["book1"]->getId());
97
+        $this->client->request('DELETE', '/books/' . $objects["book1"]->getId());
98 98
         $response = $this->client->getResponse();
99 99
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
100 100
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
     {
107 107
         $objects = $this->loadFixturesFromFile('books.yml');
108 108
 
109
-        $this->client->request('GET', '/books/'. $objects["book1"]->getId());
109
+        $this->client->request('GET', '/books/' . $objects["book1"]->getId());
110 110
         $response = $this->client->getResponse();
111 111
         $this->assertResponse($response, 'books/show_response');
112 112
     }
Please login to merge, or discard this patch.
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             },
35 35
             "author": "Christie Golden"
36 36
         }
37
-EOT;
37
+eot;
38 38
 
39 39
         $this->client->request('POST', '/books/', [], [], ['CONTENT_TYPE' => 'application/json'], $data);
40 40
         $response = $this->client->getResponse();
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
             },
62 62
             "author": "Christie Golden"
63 63
         }
64
-EOT;
64
+eot;
65 65
 
66 66
         $this->client->request('PUT', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
67 67
         $response = $this->client->getResponse();
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         {
81 81
             "author": "Christie Golden"
82 82
         }
83
-EOT;
83
+eot;
84 84
 
85 85
         $this->client->request('PATCH', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
86 86
         $response = $this->client->getResponse();
Please login to merge, or discard this patch.
Bundle/GridBundle/DependencyInjection/Compiler/RegisterDriversPass.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->findDefinition('sylius.registry.grid_driver');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) {
35
-            if (!isset($attributes[0]['alias']))  {
35
+            if (!isset($attributes[0]['alias'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->findDefinition('sylius.registry.grid_driver');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) {
35
-            if (!isset($attributes[0]['alias']))  {
35
+            if (!isset($attributes[0]['alias'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
Bundle/GridBundle/DependencyInjection/Compiler/RegisterFiltersPass.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->getDefinition('sylius.registry.grid_filter');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) {
35
-            if (!isset($attributes[0]['type']))  {
35
+            if (!isset($attributes[0]['type'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->getDefinition('sylius.registry.grid_filter');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) {
35
-            if (!isset($attributes[0]['type']))  {
35
+            if (!isset($attributes[0]['type'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
Bundle/GridBundle/DependencyInjection/Compiler/RegisterFieldTypesPass.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->getDefinition('sylius.registry.grid_filter');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) {
35
-            if (!isset($attributes[0]['type']))  {
35
+            if (!isset($attributes[0]['type'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->getDefinition('sylius.registry.grid_filter');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) {
35
-            if (!isset($attributes[0]['type']))  {
35
+            if (!isset($attributes[0]['type'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
test/src/Tests/DependencyInjection/SyliusResourceExtensionTest.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
                             'form' => [
49 49
                                 'default' => BookTranslationType::class,
50 50
                             ],
51
-                         ],
51
+                            ],
52 52
                     ],
53 53
                 ],
54 54
             ],
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Command/DemoteUserCommand.php 2 patches
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" didn\'t have "%s" Security role.</error>', (string)$user, $securityRole));
54
+                $output->writeln(sprintf('<error>User "%s" didn\'t have "%s" Security role.</error>', (string) $user, $securityRole));
55 55
                 $error = true;
56 56
                 continue;
57 57
             }
58 58
 
59 59
             $user->removeRole($securityRole);
60
-            $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string)$user));
60
+            $output->writeln(sprintf('Security role <comment>%s</comment> has been removed from user <comment>%s</comment>', $securityRole, (string) $user));
61 61
         }
62 62
 
63 63
         if (!$error) {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             ->setDescription('Initialize default permissions & roles in the application.')
31 31
             ->setHelp(<<<EOT
32 32
 The <info>%command.name%</info> command initializes default RBAC setup.
33
-EOT
33
+eot
34 34
             )
35 35
         ;
36 36
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingZonesContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
         Assert::eq(
233 233
             1,
234 234
             $this->updatePage->countMembers(),
235
-            sprintf('Zone %s should have only %s zone member',$zone->getName(), $zoneMember->getCode())
235
+            sprintf('Zone %s should have only %s zone member', $zone->getName(), $zoneMember->getCode())
236 236
         );
237 237
     }
238 238
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingCurrenciesContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@
 block discarded – undo
200 200
      */
201 201
     public function iChangeExchangeRateTo($exchangeRate)
202 202
     {
203
-       $this->updatePage->changeExchangeRate($exchangeRate);
203
+        $this->updatePage->changeExchangeRate($exchangeRate);
204 204
     }
205 205
 
206 206
     /**
Please login to merge, or discard this patch.