Completed
Pull Request — master (#16)
by Kamil
23:36
created
src/Sylius/Bundle/ThemeBundle/Controller/ThemeScreenshotController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
 
69 69
         $screenshotRelativePath = $screenshots[$screenshotNumber];
70 70
 
71
-        return rtrim($theme->getPath(), \DIRECTORY_SEPARATOR) . \DIRECTORY_SEPARATOR . $screenshotRelativePath;
71
+        return rtrim($theme->getPath(), \DIRECTORY_SEPARATOR).\DIRECTORY_SEPARATOR.$screenshotRelativePath;
72 72
     }
73 73
 
74 74
     /**
Please login to merge, or discard this patch.
Sylius/Bundle/ThemeBundle/spec/Controller/ThemeScreenshotControllerSpec.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     function let(RepositoryInterface $themeRepository)
35 35
     {
36 36
         $this->beConstructedWith($themeRepository);
37
-        $this->fixturesPath = realpath(__DIR__ . '/../Fixtures');
37
+        $this->fixturesPath = realpath(__DIR__.'/../Fixtures');
38 38
     }
39 39
 
40 40
     function it_is_initializable()
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 
55 55
         $this
56 56
             ->streamScreenshotAction(42, 0)
57
-            ->shouldBeBinaryFileResponseStreamingFile($this->fixturesPath . '/screenshot/0-amazing.jpg')
57
+            ->shouldBeBinaryFileResponseStreamingFile($this->fixturesPath.'/screenshot/0-amazing.jpg')
58 58
         ;
59 59
     }
60 60
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function getMatchers()
114 114
     {
115 115
         return [
116
-            'beBinaryFileResponseStreamingFile' => function (BinaryFileResponse $response, $file) {
116
+            'beBinaryFileResponseStreamingFile' => function(BinaryFileResponse $response, $file) {
117 117
                 return $response->getFile()->getRealPath() === $file;
118 118
             },
119 119
         ];
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/spec/Factory/ThemeScreenshotFactorySpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
     public function getMatchers()
49 49
     {
50 50
         return [
51
-            'beScreenshotWithTheFollowingProperties' => function (ThemeScreenshot $subject, array $properties) {
51
+            'beScreenshotWithTheFollowingProperties' => function(ThemeScreenshot $subject, array $properties) {
52 52
                 if (isset($properties['path']) && $subject->getPath() !== $properties['path']) {
53 53
                     return false;
54 54
                 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Configuration/ThemeConfiguration.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         $screenshotNodeDefinition
105 105
             ->validate()
106
-                ->ifTrue(function ($screenshot) {
106
+                ->ifTrue(function($screenshot) {
107 107
                     return [] === $screenshot || ['path' => ''] === $screenshot;
108 108
                 })
109 109
                 ->thenInvalid('Screenshot cannot be empty!')
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $screenshotNodeDefinition
112 112
             ->beforeNormalization()
113 113
                 ->ifString()
114
-                ->then(function ($value) {
114
+                ->then(function($value) {
115 115
                     return ['path' => $value];
116 116
                 })
117 117
         ;
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
         $authorNodeDefinition = $authorsNodeDefinition->prototype('array');
138 138
         $authorNodeDefinition
139 139
             ->validate()
140
-                ->ifTrue(function ($author) {
140
+                ->ifTrue(function($author) {
141 141
                     return [] === $author;
142 142
                 })
143 143
                 ->thenInvalid('Author cannot be empty!')
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Loader/ThemeLoader.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
      */
155 155
     private function convertParentsNamesToParentsObjects($themeName, array $parentsNames, array $existingThemes)
156 156
     {
157
-        return array_map(function ($parentName) use ($themeName, $existingThemes) {
157
+        return array_map(function($parentName) use ($themeName, $existingThemes) {
158 158
             if (!isset($existingThemes[$parentName])) {
159 159
                 throw new ThemeLoadingFailedException(sprintf(
160 160
                     'Unexisting theme "%s" is required by "%s".',
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
      */
175 175
     private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays)
176 176
     {
177
-        return array_map(function (array $authorArray) {
177
+        return array_map(function(array $authorArray) {
178 178
             return $this->themeAuthorFactory->createFromArray($authorArray);
179 179
         }, $authorsArrays);
180 180
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
      */
187 187
     private function convertScreenshotsArraysToScreenshotsObjects(array $screenshotsArrays)
188 188
     {
189
-        return array_map(function (array $screenshotArray) {
189
+        return array_map(function(array $screenshotArray) {
190 190
             return $this->themeScreenshotFactory->createFromArray($screenshotArray);
191 191
         }, $screenshotsArrays);
192 192
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Registry/PrioritizedServiceRegistry.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         Assert::isInstanceOf(
97 97
             $service,
98 98
             $this->interface,
99
-            $this->context . ' needs to implement "%2$s", "%s" given.'
99
+            $this->context.' needs to implement "%2$s", "%s" given.'
100 100
         );
101 101
     }
102 102
 }
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.
src/Sylius/Behat/Page/Admin/Zone/CreatePage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function chooseMember($name)
50 50
     {
51
-        $selectItems = $this->getDocument()->waitFor(2, function () {
51
+        $selectItems = $this->getDocument()->waitFor(2, function() {
52 52
             return $this->getDocument()->findAll('css', 'div[data-form-type="collection"] select');
53 53
         });
54 54
         $lastSelectItem = end($selectItems);
Please login to merge, or discard this patch.