Completed
Push — fixtures/parameter-fix ( 1f3fd9...164a01 )
by Kamil
32:45
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.
ArchetypeBundle/spec/Form/EventListener/ParentArchetypeListenerSpec.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     {
48 48
         $event->getData()->willReturn('badObject');
49 49
         $this->shouldThrow(new UnexpectedTypeException('badObject', ArchetypeInterface::class))
50
-             ->during('preSetData', [$event])
50
+                ->during('preSetData', [$event])
51 51
         ;
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ContentBundle/Form/Type/MenuType.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
                 'label' => false,
49 49
                 'button_add_label' => 'sylius.form.menu.add_menu_node',
50 50
                 'cascade_validation' => true,
51
-             ])
51
+                ])
52 52
             ->add('uri', null, [
53 53
                 'required' => false,
54 54
                 'label' => 'sylius.form.menu.uri',
Please login to merge, or discard this patch.
src/Sylius/Bundle/ContentBundle/Form/Type/StaticContentType.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
                 'by_reference' => false,
54 54
                 'label' => 'sylius.form.static_content.routes',
55 55
                 'cascade_validation' => true,
56
-             ])
56
+                ])
57 57
             ->add('menuNodes', 'collection', [
58 58
                 'type' => 'sylius_menu_node',
59 59
                 'allow_add' => true,
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
                 'by_reference' => false,
62 62
                 'label' => 'sylius.form.static_content.menu_nodes',
63 63
                 'cascade_validation' => true,
64
-             ])
64
+                ])
65 65
             ->add('body', 'textarea', [
66 66
                 'required' => false,
67 67
                 'label' => 'sylius.form.static_content.body',
Please login to merge, or discard this patch.
src/Sylius/Component/Pricing/spec/Calculator/VolumeBasedCalculatorSpec.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     function it_assumes_quantity_is_1_if_not_provided_in_context(PriceableInterface $priceable)
35 35
     {
36 36
         $configuration = [
37
-            ['min' => 0,  'max' => 9,  'price' => 1699],
37
+            ['min' => 0, 'max' => 9, 'price' => 1699],
38 38
             ['min' => 10, 'max' => 19, 'price' => 1499],
39 39
             ['min' => 20, 'max' => 29, 'price' => 1299],
40 40
         ];
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     function it_returns_the_price_based_on_the_quantity(PriceableInterface $priceable)
46 46
     {
47 47
         $configuration = [
48
-            ['min' => 0,  'max' => 9,  'price' => 1699],
48
+            ['min' => 0, 'max' => 9, 'price' => 1699],
49 49
             ['min' => 10, 'max' => 19, 'price' => 1499],
50 50
             ['min' => 20, 'max' => 29, 'price' => 1299],
51 51
         ];
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
     function it_returns_the_correct_price_for_highest_quantity_range(PriceableInterface $priceable)
58 58
     {
59 59
         $configuration = [
60
-            ['min' => 0,  'max' => 9,    'price' => 1699],
61
-            ['min' => 10, 'max' => 19,   'price' => 1499],
62
-            ['min' => 20, 'max' => 29,   'price' => 1299],
60
+            ['min' => 0, 'max' => 9, 'price' => 1699],
61
+            ['min' => 10, 'max' => 19, 'price' => 1499],
62
+            ['min' => 20, 'max' => 29, 'price' => 1299],
63 63
             ['min' => 30, 'max' => null, 'price' => 1099],
64 64
         ];
65 65
 
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.