Completed
Push — taxon-slug-generator-revisited ( fa32c0...2293b4 )
by Kamil
23:42
created
ResourceBundle/DependencyInjection/Extension/AbstractResourceExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
         $container->setParameter(sprintf('%s.driver', $this->getAlias()), $driver);
34 34
 
35 35
         foreach ($resources as $resourceName => $resourceConfig) {
36
-            $alias = $applicationName.'.'.$resourceName;
36
+            $alias = $applicationName . '.' . $resourceName;
37 37
             $resourceConfig = array_merge(['driver' => $driver], $resourceConfig);
38 38
 
39 39
             $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : [];
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
             DriverProvider::get($metadata)->load($container, $metadata);
46 46
 
47 47
             if ($metadata->hasParameter('translation')) {
48
-                $alias = $alias.'_translation';
48
+                $alias = $alias . '_translation';
49 49
                 $resourceConfig = array_merge(['driver' => $driver], $resourceConfig['translation']);
50 50
 
51 51
                 $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : [];
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Routing/ResourceLoader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     private function createRoute(MetadataInterface $metadata, array $configuration, $path, $actionName, array $methods, $isApi = false)
141 141
     {
142 142
         $defaults = [
143
-            '_controller' => $metadata->getServiceId('controller').sprintf(':%sAction', $actionName),
143
+            '_controller' => $metadata->getServiceId('controller') . sprintf(':%sAction', $actionName),
144 144
         ];
145 145
 
146 146
         if ($isApi && 'index' === $actionName) {
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      */
185 185
     private function getRouteName(MetadataInterface $metadata, array $configuration, $actionName)
186 186
     {
187
-        $sectionPrefix = isset($configuration['section']) ? $configuration['section'].'_' : '';
187
+        $sectionPrefix = isset($configuration['section']) ? $configuration['section'] . '_' : '';
188 188
 
189 189
         return sprintf('%s_%s%s_%s', $metadata->getApplicationName(), $sectionPrefix, $metadata->getName(), $actionName);
190 190
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/EventListener/ODMTranslatableListener.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -183,11 +183,11 @@
 block discarded – undo
183 183
         $metadata = $this->mappings[$name];
184 184
 
185 185
         if (isset($metadata['fallback_locale'])) {
186
-            $setter = 'set'.ucfirst($metadata['fallback_locale']);
186
+            $setter = 'set' . ucfirst($metadata['fallback_locale']);
187 187
             $document->$setter($this->fallbackLocale);
188 188
         }
189 189
         if (isset($metadata['current_locale'])) {
190
-            $setter = 'set'.ucfirst($metadata['current_locale']);
190
+            $setter = 'set' . ucfirst($metadata['current_locale']);
191 191
             $document->$setter($this->currentLocale);
192 192
         }
193 193
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Asset/Package/PathPackage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,6 +66,6 @@
 block discarded – undo
66 66
             $path = $this->pathResolver->resolve($path, $theme);
67 67
         }
68 68
 
69
-        return $this->getBasePath().ltrim($this->getVersionStrategy()->applyVersion($path), '/');
69
+        return $this->getBasePath() . ltrim($this->getVersionStrategy()->applyVersion($path), '/');
70 70
     }
71 71
 }
Please login to merge, or discard this patch.
Bundle/ThemeBundle/Templating/Cache/Warmer/TemplatePathsCacheWarmer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,6 +118,6 @@
 block discarded – undo
118 118
      */
119 119
     private function getCacheKey(TemplateReferenceInterface $template, ThemeInterface $theme)
120 120
     {
121
-        return $template->getLogicalName().'|'.$theme->getName();
121
+        return $template->getLogicalName() . '|' . $theme->getName();
122 122
     }
123 123
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/spec/Asset/Package/PathPackageSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
         $themeContext->getTheme()->shouldBeCalled()->willReturn(null);
52 52
         $versionStrategy->applyVersion($path)->shouldBeCalled()->willReturn($path);
53 53
 
54
-        $this->getUrl($path)->shouldReturn('/'.$path);
54
+        $this->getUrl($path)->shouldReturn('/' . $path);
55 55
     }
56 56
 
57 57
     function it_returns_modified_url_if_there_is_active_theme(
@@ -68,6 +68,6 @@  discard block
 block discarded – undo
68 68
         $pathResolver->resolve($path, $theme)->shouldBeCalled()->willReturn($themeAssetPath);
69 69
         $versionStrategy->applyVersion($themeAssetPath)->shouldBeCalled()->willReturn($themeAssetPath);
70 70
 
71
-        $this->getUrl($path)->shouldReturn('/'.$themeAssetPath);
71
+        $this->getUrl($path)->shouldReturn('/' . $themeAssetPath);
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Metadata/Metadata.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
      */
78 78
     public function getAlias()
79 79
     {
80
-        return $this->applicationName.'.'.$this->name;
80
+        return $this->applicationName . '.' . $this->name;
81 81
     }
82 82
 
83 83
     /**
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Payment/IdBasedInvoiceNumberGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,6 +24,6 @@
 block discarded – undo
24 24
      */
25 25
     public function generate(OrderInterface $order, PaymentInterface $payment)
26 26
     {
27
-        return $order->getId().'-'.$payment->getId();
27
+        return $order->getId() . '-' . $payment->getId();
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Uploader/ImageUploader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
         do {
46 46
             $hash = md5(uniqid(mt_rand(), true));
47
-            $path = $this->expandPath($hash.'.'.$image->getFile()->guessExtension());
47
+            $path = $this->expandPath($hash . '.' . $image->getFile()->guessExtension());
48 48
         } while ($this->filesystem->has($path));
49 49
 
50 50
         $image->setPath($path);
Please login to merge, or discard this patch.