Completed
Push — master ( 284884...b70f30 )
by Kamil
20:25
created
src/Sylius/Behat/CookieSetter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,6 @@
 block discarded – undo
67 67
             return;
68 68
         }
69 69
 
70
-        $this->minkSession->visit(rtrim($this->minkParameters['base_url'], '/') . '/');
70
+        $this->minkSession->visit(rtrim($this->minkParameters['base_url'], '/').'/');
71 71
     }
72 72
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/test/src/Tests/Controller/BookApiTest.php 2 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
@@ -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.
src/Sylius/Bundle/ThemeBundle/Model/Theme.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
      */
167 167
     public function removeAuthor(ThemeAuthor $author)
168 168
     {
169
-        $this->authors = array_values(array_filter($this->authors, function (ThemeAuthor $existingAuthor) use ($author) {
169
+        $this->authors = array_values(array_filter($this->authors, function(ThemeAuthor $existingAuthor) use ($author) {
170 170
             return $existingAuthor !== $author;
171 171
         }));
172 172
     }
Please login to merge, or discard this patch.
ThemeBundle/Configuration/Provider/FilesystemConfigurationProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      */
54 54
     public function getConfigurations()
55 55
     {
56
-        return $this->processFileResources(function ($file) {
56
+        return $this->processFileResources(function($file) {
57 57
             return $this->loader->load($file);
58 58
         });
59 59
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     public function getResources()
65 65
     {
66
-        return $this->processFileResources(function ($file) {
66
+        return $this->processFileResources(function($file) {
67 67
             return new FileResource($file);
68 68
         });
69 69
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Configuration/ThemeConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -101,7 +101,7 @@
 block discarded – undo
101 101
         $authorNodeDefinition = $authorsNodeDefinition->prototype('array');
102 102
         $authorNodeDefinition
103 103
             ->validate()
104
-                ->ifTrue(function ($author) {
104
+                ->ifTrue(function($author) {
105 105
                     return [] === $author;
106 106
                 })
107 107
                 ->thenInvalid('Author cannot be empty!')
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Loader/ThemeLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     private function convertParentsNamesToParentsObjects($themeName, array $parentsNames, array $existingThemes)
145 145
     {
146
-        return array_map(function ($parentName) use ($themeName, $existingThemes) {
146
+        return array_map(function($parentName) use ($themeName, $existingThemes) {
147 147
             if (!isset($existingThemes[$parentName])) {
148 148
                 throw new ThemeLoadingFailedException(sprintf(
149 149
                     'Unexisting theme "%s" is required by "%s".',
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      */
164 164
     private function convertAuthorsArraysToAuthorsObjects(array $authorsArrays)
165 165
     {
166
-        return array_map(function (array $authorArray) {
166
+        return array_map(function(array $authorArray) {
167 167
             return $this->themeAuthorFactory->createFromArray($authorArray);
168 168
         }, $authorsArrays);
169 169
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Loader/CircularDependencyFoundException.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
     private function formatCycleToString(array $themes)
63 63
     {
64
-        $themesNames = array_map(function (ThemeInterface $theme) {
64
+        $themesNames = array_map(function(ThemeInterface $theme) {
65 65
             return $theme->getName();
66 66
         }, $themes);
67 67
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Synchronizer/ThemeSynchronizer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $existingThemes = array_udiff(
63 63
             $persistedThemes,
64 64
             $removedThemes,
65
-            function (ThemeInterface $firstTheme, ThemeInterface $secondTheme) {
65
+            function(ThemeInterface $firstTheme, ThemeInterface $secondTheme) {
66 66
                 return (int) ($firstTheme->getName() === $secondTheme->getName());
67 67
             }
68 68
         );
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
             return [];
110 110
         }
111 111
 
112
-        $loadedThemesNames = array_map(function (ThemeInterface $theme) {
112
+        $loadedThemesNames = array_map(function(ThemeInterface $theme) {
113 113
             return $theme->getName();
114 114
         }, $loadedThemes);
115 115
 
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
             foreach ($loadedTheme->getParents() as $parentTheme) {
140 140
                 $correspondingTheme = current(array_filter(
141 141
                     array_merge($existingThemes, $loadedThemes),
142
-                    function (ThemeInterface $theme) use ($parentTheme) {
142
+                    function(ThemeInterface $theme) use ($parentTheme) {
143 143
                         return $theme->getName() === $parentTheme->getName();
144 144
                     }
145 145
                 ));
Please login to merge, or discard this patch.