Completed
Pull Request — master (#12)
by Kamil
104:54 queued 82:55
created
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/Bundle/CoreBundle/Controller/ProductController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -347,7 +347,7 @@
 block discarded – undo
347 347
         Pagerfanta $results,
348 348
         $template,
349 349
         $page
350
-    ){
350
+    ) {
351 351
         $results->setCurrentPage($page, true, true);
352 352
         $results->setMaxPerPage($this->config->getPaginationMaxPerPage());
353 353
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/TaxonomyBundle/Form/Type/TaxonSelectionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
             ))
91 91
         ;
92 92
 
93
-        $resolver->setNormalizer('model_transformer', function (Options $options, $value) {
93
+        $resolver->setNormalizer('model_transformer', function(Options $options, $value) {
94 94
             if (!is_array($value)) {
95 95
                 $value = array(
96 96
                     'class'        => $value,
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Form/Type/ResourceChoiceType.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
             ->setDefaults(array(
62 62
                 'class' => null,
63 63
             ))
64
-            ->setNormalizer('class', function () {
64
+            ->setNormalizer('class', function() {
65 65
                 return $this->className;
66 66
             })
67 67
         ;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Templating/Locator/CachedTemplateLocator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,6 +68,6 @@
 block discarded – undo
68 68
      */
69 69
     private function getCacheKey(TemplateReferenceInterface $template, ThemeInterface $theme)
70 70
     {
71
-        return $template->getLogicalName() . '|' . $theme->getSlug();
71
+        return $template->getLogicalName().'|'.$theme->getSlug();
72 72
     }
73 73
 }
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
@@ -68,6 +68,6 @@
 block discarded – undo
68 68
      */
69 69
     private function getCacheKey(TemplateReferenceInterface $template, ThemeInterface $theme)
70 70
     {
71
-        return $template->getLogicalName() . '|' . $theme->getSlug();
71
+        return $template->getLogicalName().'|'.$theme->getSlug();
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Asset/PathResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,6 @@
 block discarded – undo
23 23
      */
24 24
     public function resolve($path, ThemeInterface $theme)
25 25
     {
26
-        return str_replace('bundles/', 'bundles/_' . $theme->getCode() . '/', $path);
26
+        return str_replace('bundles/', 'bundles/_'.$theme->getCode().'/', $path);
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Order.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
      */
238 238
     public function getItemUnitsByVariant(ProductVariantInterface $variant)
239 239
     {
240
-        return $this->getItemUnits()->filter(function (OrderItemUnitInterface $itemUnit) use ($variant) {
240
+        return $this->getItemUnits()->filter(function(OrderItemUnitInterface $itemUnit) use ($variant) {
241 241
             return $variant === $itemUnit->getStockable();
242 242
         });
243 243
     }
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             return false;
302 302
         }
303 303
 
304
-        return $this->payments->filter(function (BasePaymentInterface $payment) use ($state) {
304
+        return $this->payments->filter(function(BasePaymentInterface $payment) use ($state) {
305 305
             return $payment->getState() === $state;
306 306
         })->last();
307 307
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/OrderItemUnit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -281,7 +281,7 @@
 block discarded – undo
281 281
             return $this->adjustments;
282 282
         }
283 283
 
284
-        return $this->adjustments->filter(function (AdjustmentInterface $adjustment) use ($type) {
284
+        return $this->adjustments->filter(function(AdjustmentInterface $adjustment) use ($type) {
285 285
             return $type === $adjustment->getType();
286 286
         });
287 287
     }
Please login to merge, or discard this patch.