Completed
Push — symfony3-directorystructure ( c2fd26 )
by Kamil
85:38 queued 68:27
created
src/Sylius/Bundle/OrderBundle/DependencyInjection/SyliusOrderExtension.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.
Sylius/Bundle/ProductBundle/DependencyInjection/SyliusProductExtension.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/Bundle/AdminBundle/DependencyInjection/SyliusAdminExtension.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.
Bundle/AddressingBundle/DependencyInjection/SyliusAddressingExtension.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.
Sylius/Bundle/MailerBundle/DependencyInjection/SyliusMailerExtension.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.
Bundle/CurrencyBundle/DependencyInjection/SyliusCurrencyExtension.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/Bundle/PayumBundle/DependencyInjection/SyliusPayumExtension.php 2 patches
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.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\PayumBundle\DependencyInjection;
13 13
 
14
-use Payum\Bundle\PayumBundle\DependencyInjection\MainConfiguration as PayumConfiguration;
15
-use Payum\Bundle\PayumBundle\DependencyInjection\PayumExtension;
16 14
 use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension;
17 15
 use Symfony\Component\Config\FileLocator;
18 16
 use Symfony\Component\DependencyInjection\ContainerBuilder;
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.
src/Sylius/Behat/Context/Setup/ProductContext.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,6 +15,7 @@  discard block
 block discarded – undo
15 15
 use Behat\Gherkin\Node\TableNode;
16 16
 use Behat\Mink\Element\NodeElement;
17 17
 use Doctrine\Common\Persistence\ObjectManager;
18
+use Sylius\Behat\Service\SharedStorageInterface;
18 19
 use Sylius\Component\Attribute\Factory\AttributeFactoryInterface;
19 20
 use Sylius\Component\Core\Formatter\StringInflector;
20 21
 use Sylius\Component\Core\Model\ChannelInterface;
@@ -23,16 +24,15 @@  discard block
 block discarded – undo
23 24
 use Sylius\Component\Core\Model\ProductTranslationInterface;
24 25
 use Sylius\Component\Core\Model\ProductVariantInterface;
25 26
 use Sylius\Component\Core\Repository\ProductRepositoryInterface;
26
-use Sylius\Behat\Service\SharedStorageInterface;
27 27
 use Sylius\Component\Core\Uploader\ImageUploaderInterface;
28 28
 use Sylius\Component\Product\Factory\ProductFactoryInterface;
29 29
 use Sylius\Component\Product\Model\ProductAttributeInterface;
30 30
 use Sylius\Component\Product\Model\ProductAttributeValueInterface;
31 31
 use Sylius\Component\Product\Model\ProductOptionInterface;
32 32
 use Sylius\Component\Product\Model\ProductOptionValueInterface;
33
+use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
33 34
 use Sylius\Component\Resource\Factory\FactoryInterface;
34 35
 use Sylius\Component\Taxation\Model\TaxCategoryInterface;
35
-use Sylius\Component\Product\Resolver\ProductVariantResolverInterface;
36 36
 use Symfony\Component\HttpFoundation\File\UploadedFile;
37 37
 
38 38
 /**
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     {
181 181
         $product = $this->createProduct($productName, $price);
182 182
 
183
-        $product->setDescription('Awesome '.$productName);
183
+        $product->setDescription('Awesome ' . $productName);
184 184
 
185 185
         if ($this->sharedStorage->has('channel')) {
186 186
             $product->addChannel($this->sharedStorage->get('channel'));
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     {
214 214
         $product = $this->createProduct($productName, $price);
215 215
 
216
-        $product->setDescription('Awesome '.$productName);
216
+        $product->setDescription('Awesome ' . $productName);
217 217
 
218 218
         foreach ($channels as $channel) {
219 219
             $product->addChannel($channel);
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
         $product->setCode(StringInflector::nameToUppercaseCode($productName));
251 251
         $product->setSlug($this->slugGenerator->generate($productName));
252 252
 
253
-        $product->setDescription('Awesome '.$productName);
253
+        $product->setDescription('Awesome ' . $productName);
254 254
 
255 255
         if ($this->sharedStorage->has('channel')) {
256 256
             $channel = $this->sharedStorage->get('channel');
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      */
356 356
     public function thisProductHasAttributeWithValue(ProductInterface $product, $productAttributeType, $productAttributeName, $value)
357 357
     {
358
-        $attribute = $this->createProductAttribute($productAttributeType,$productAttributeName);
358
+        $attribute = $this->createProductAttribute($productAttributeType, $productAttributeName);
359 359
         $attributeValue = $this->createProductAttributeValue($value, $attribute);
360 360
         $product->addAttribute($attributeValue);
361 361
 
@@ -367,8 +367,8 @@  discard block
 block discarded – undo
367 367
      */
368 368
     public function thisProductHasPercentAttributeWithValue(ProductInterface $product, $productAttributeName, $value)
369 369
     {
370
-        $attribute = $this->createProductAttribute('percent',$productAttributeName);
371
-        $attributeValue = $this->createProductAttributeValue($value/100, $attribute);
370
+        $attribute = $this->createProductAttribute('percent', $productAttributeName);
371
+        $attributeValue = $this->createProductAttributeValue($value / 100, $attribute);
372 372
         $product->addAttribute($attributeValue);
373 373
 
374 374
         $this->objectManager->flush();
@@ -551,7 +551,7 @@  discard block
 block discarded – undo
551 551
 
552 552
         /** @var ImageInterface $productImage */
553 553
         $productImage = $this->productImageFactory->createNew();
554
-        $productImage->setFile(new UploadedFile($filesPath.$imagePath, basename($imagePath)));
554
+        $productImage->setFile(new UploadedFile($filesPath . $imagePath, basename($imagePath)));
555 555
         $productImage->setCode($imageCode);
556 556
         $this->imageUploader->upload($productImage);
557 557
 
Please login to merge, or discard this patch.