Completed
Push — master ( 64f4aa...2c8981 )
by Kamil
23:00
created
src/Sylius/Bundle/FlowBundle/spec/Validator/ProcessValidatorSpec.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     function let()
22 22
     {
23
-        $this->beConstructedWith('message', 'step_name', function () {});
23
+        $this->beConstructedWith('message', 'step_name', function() {});
24 24
     }
25 25
 
26 26
     function it_is_initializable()
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 
48 48
     function its_validation_is_mutable()
49 49
     {
50
-        $closure = function () {};
50
+        $closure = function() {};
51 51
 
52 52
         $this->setValidation($closure)->shouldReturn($this);
53 53
         $this->getValidation()->shouldReturn($closure);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     function it_calls_validation_closure(ProcessContextInterface $processContext)
57 57
     {
58
-        $this->setValidation(function () {
58
+        $this->setValidation(function() {
59 59
             return true;
60 60
         });
61 61
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/RbacBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -170,10 +170,10 @@  discard block
 block discarded – undo
170 170
                 ->arrayNode('roles_hierarchy')
171 171
                     ->useAttributeAsKey('id')
172 172
                     ->prototype('array')
173
-                        ->beforeNormalization()->ifString()->then(function ($v) { return ['value' => $v]; })->end()
173
+                        ->beforeNormalization()->ifString()->then(function($v) { return ['value' => $v]; })->end()
174 174
                         ->beforeNormalization()
175
-                            ->ifTrue(function ($v) { return is_array($v) && isset($v['value']); })
176
-                            ->then(function ($v) { return preg_split('/\s*,\s*/', $v['value']); })
175
+                            ->ifTrue(function($v) { return is_array($v) && isset($v['value']); })
176
+                            ->then(function($v) { return preg_split('/\s*,\s*/', $v['value']); })
177 177
                         ->end()
178 178
                         ->prototype('scalar')->end()
179 179
                     ->end()
@@ -198,10 +198,10 @@  discard block
 block discarded – undo
198 198
                     ->useAttributeAsKey('id')
199 199
                     ->prototype('array')
200 200
                         ->performNoDeepMerging()
201
-                        ->beforeNormalization()->ifString()->then(function ($v) { return ['value' => $v]; })->end()
201
+                        ->beforeNormalization()->ifString()->then(function($v) { return ['value' => $v]; })->end()
202 202
                         ->beforeNormalization()
203
-                            ->ifTrue(function ($v) { return is_array($v) && isset($v['value']); })
204
-                            ->then(function ($v) { return preg_split('/\s*,\s*/', $v['value']); })
203
+                            ->ifTrue(function($v) { return is_array($v) && isset($v['value']); })
204
+                            ->then(function($v) { return preg_split('/\s*,\s*/', $v['value']); })
205 205
                         ->end()
206 206
                         ->prototype('scalar')->end()
207 207
                     ->end()
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Command/CreateUserCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
             $email = $this->getHelper('dialog')->askAndValidate(
89 89
                 $output,
90 90
                 'Please enter an email:',
91
-                function ($username) {
91
+                function($username) {
92 92
                     if (empty($username)) {
93 93
                         throw new \Exception('Email can not be empty');
94 94
                     }
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             $password = $this->getHelper('dialog')->askHiddenResponseAndValidate(
105 105
                 $output,
106 106
                 'Please choose a password:',
107
-                function ($password) {
107
+                function($password) {
108 108
                     if (empty($password)) {
109 109
                         throw new \Exception('Password can not be empty');
110 110
                     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/WebBundle/Behat/WebContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      */
62 62
     protected function waitForTabToActivate($tabContainer)
63 63
     {
64
-        $this->waitFor(function () use ($tabContainer) {
64
+        $this->waitFor(function() use ($tabContainer) {
65 65
             return false !== strpos($tabContainer->getAttribute('class'), 'active');
66 66
         });
67 67
     }
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/Behat/Context/Setup/ProductContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
         $product = $this->productFactory->createNew();
141 141
         $product->setName($productName);
142 142
         $product->setPrice(0);
143
-        $product->setDescription('Awesome ' . $productName);
143
+        $product->setDescription('Awesome '.$productName);
144 144
         $product->addChannel($channel);
145 145
 
146 146
         $this->productRepository->add($product);
Please login to merge, or discard this patch.
Bundle/ChannelBundle/spec/Context/FakeChannel/FakeChannelPersisterSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         $filterResponseEvent->getResponse()->willReturn($response);
80 80
 
81 81
         $response->headers = $responseHeaderBag;
82
-        $responseHeaderBag->setCookie(Argument::that(function (Cookie $cookie) {
82
+        $responseHeaderBag->setCookie(Argument::that(function(Cookie $cookie) {
83 83
             if ($cookie->getName() !== '_channel_code') {
84 84
                 return false;
85 85
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/test/src/Tests/Controller/BookApiTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         }
53 53
 EOT;
54 54
 
55
-        $this->client->request('PUT', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
55
+        $this->client->request('PUT', '/books/'.$objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
56 56
         $response = $this->client->getResponse();
57 57
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
58 58
     }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         }
72 72
 EOT;
73 73
 
74
-        $this->client->request('PATCH', '/books/'. $objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
74
+        $this->client->request('PATCH', '/books/'.$objects["book1"]->getId(), [], [], ['CONTENT_TYPE' => 'application/json'], $data);
75 75
         $response = $this->client->getResponse();
76 76
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
77 77
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $objects = $this->loadFixturesFromFile('books.yml');
85 85
 
86
-        $this->client->request('DELETE', '/books/'. $objects["book1"]->getId());
86
+        $this->client->request('DELETE', '/books/'.$objects["book1"]->getId());
87 87
         $response = $this->client->getResponse();
88 88
         $this->assertResponseCode($response, Response::HTTP_NO_CONTENT);
89 89
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     {
96 96
         $objects = $this->loadFixturesFromFile('books.yml');
97 97
 
98
-        $this->client->request('GET', '/books/'. $objects["book1"]->getId());
98
+        $this->client->request('GET', '/books/'.$objects["book1"]->getId());
99 99
         $response = $this->client->getResponse();
100 100
         $this->assertResponse($response, 'books/show_response');
101 101
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/SymfonyPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      */
72 72
     protected function waitForModalToAppear(NodeElement $modalContainer)
73 73
     {
74
-        $this->getDocument()->waitFor(1, function () use ($modalContainer) {
74
+        $this->getDocument()->waitFor(1, function() use ($modalContainer) {
75 75
             return false !== strpos($modalContainer->getAttribute('class'), 'in');
76 76
         });
77 77
     }
Please login to merge, or discard this patch.