Completed
Push — product/missing-methods ( 0cfbf7 )
by Kamil
25:41
created
Sylius/Bundle/ContentBundle/DependencyInjection/SyliusContentExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
         $loader->load('services.xml');
33 33
         $loader->load('twig.xml');
34 34
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Registry/spec/ServiceRegistrySpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 
12 12
 namespace spec\Sylius\Component\Registry;
13 13
 
14
-require_once __DIR__.'/Fixture/SampleServiceInterface.php';
14
+require_once __DIR__ . '/Fixture/SampleServiceInterface.php';
15 15
 
16 16
 use PhpSpec\ObjectBehavior;
17 17
 use Prophecy\Argument;
Please login to merge, or discard this patch.
web/app_dev.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
     || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1'], true) || php_sapi_name() === 'cli-server')
22 22
 ) {
23 23
     header('HTTP/1.0 403 Forbidden');
24
-    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
24
+    exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.');
25 25
 }
26 26
 
27
-require_once __DIR__.'/../app/bootstrap.php.cache';
28
-require_once __DIR__.'/../app/AppKernel.php';
27
+require_once __DIR__ . '/../app/bootstrap.php.cache';
28
+require_once __DIR__ . '/../app/AppKernel.php';
29 29
 
30 30
 $kernel = new AppKernel('test_cached', false);
31 31
 $kernel->loadClassCache();
Please login to merge, or discard this patch.
web/app_test.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
     || !(in_array(@$_SERVER['REMOTE_ADDR'], ['127.0.0.1', 'fe80::1', '::1', '113.0.0.1'], true) || php_sapi_name() === 'cli-server')
22 22
 ) {
23 23
     header('HTTP/1.0 403 Forbidden');
24
-    exit('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
24
+    exit('You are not allowed to access this file. Check ' . basename(__FILE__) . ' for more information.');
25 25
 }
26 26
 
27
-require_once __DIR__.'/../app/bootstrap.php.cache';
28
-require_once __DIR__.'/../app/AppKernel.php';
27
+require_once __DIR__ . '/../app/bootstrap.php.cache';
28
+require_once __DIR__ . '/../app/AppKernel.php';
29 29
 
30 30
 $kernel = new AppKernel('test_cached', false);
31 31
 $kernel->loadClassCache();
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Provider/ProvinceNamingProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         }
49 49
 
50 50
         $province = $this->provinceRepository->findOneBy(['code' => $address->getProvinceCode()]);
51
-        Assert::notNull($province,sprintf('Province with code "%s" not found.', $address->getProvinceCode()));
51
+        Assert::notNull($province, sprintf('Province with code "%s" not found.', $address->getProvinceCode()));
52 52
 
53 53
         return $province->getName();
54 54
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         }
68 68
 
69 69
         $province = $this->provinceRepository->findOneBy(['code' => $address->getProvinceCode()]);
70
-        Assert::notNull($province,sprintf('Province with code "%s" not found.', $address->getProvinceCode()));
70
+        Assert::notNull($province, sprintf('Province with code "%s" not found.', $address->getProvinceCode()));
71 71
 
72 72
         return $province->getAbbreviation() ?: $province->getName();
73 73
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Test/Services/EmailChecker.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
         $messages = [];
138 138
 
139 139
         /** @var SplFileInfo $file */
140
-        foreach($finder as $file) {
140
+        foreach ($finder as $file) {
141 141
             $messages[] = unserialize($file->getContents());
142 142
         }
143 143
 
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductVariant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,10 +92,10 @@
 block discarded – undo
92 92
             $string .= '(';
93 93
 
94 94
             foreach ($this->getOptionValues() as $option) {
95
-                $string .= $option->getOption()->getName().': '.$option->getValue().', ';
95
+                $string .= $option->getOption()->getName() . ': ' . $option->getValue() . ', ';
96 96
             }
97 97
 
98
-            $string = substr($string, 0, -2).')';
98
+            $string = substr($string, 0, -2) . ')';
99 99
         }
100 100
 
101 101
         return $string;
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Updater/UnpaidOrdersStateUpdater.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
     public function cancel()
55 55
     {
56
-        $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-'.$this->expirationPeriod));
56
+        $expiredUnpaidOrders = $this->orderRepository->findOrdersUnpaidSince(new \DateTime('-' . $this->expirationPeriod));
57 57
         foreach ($expiredUnpaidOrders as $expiredUnpaidOrder) {
58 58
             $this->cancelOrder($expiredUnpaidOrder);
59 59
         }
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Remover/ExpiredCartsRemover.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 
41 41
     public function remove()
42 42
     {
43
-        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod));
43
+        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod));
44 44
         foreach ($expiredCarts as $expiredCart) {
45 45
             $this->orderRepository->remove($expiredCart);
46 46
         }
Please login to merge, or discard this patch.