Completed
Push — promotion-factories ( 9e222e...6d8a06 )
by Kamil
95:30 queued 64:25
created
src/Sylius/Bundle/OrderBundle/Controller/OrderItemController.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
19 19
 use Sylius\Component\Order\CartActions;
20 20
 use Sylius\Component\Order\Context\CartContextInterface;
21 21
 use Sylius\Component\Order\Model\OrderInterface;
22
-use Sylius\Component\Order\Modifier\OrderModifierInterface;
23 22
 use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
23
+use Sylius\Component\Order\Modifier\OrderModifierInterface;
24 24
 use Sylius\Component\Resource\ResourceActions;
25 25
 use Symfony\Component\EventDispatcher\EventDispatcherInterface;
26 26
 use Symfony\Component\HttpFoundation\RedirectResponse;
Please login to merge, or discard this patch.
Sylius/Bundle/OrderBundle/NumberAssigner/OrderNumberAssignerInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $value
30
+     * @return void
30 31
      */
31 32
     public function setValue($value);
32 33
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/PromotionBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,17 +14,17 @@
 block discarded – undo
14 14
 use Sylius\Bundle\PromotionBundle\Controller\PromotionCouponController;
15 15
 use Sylius\Bundle\PromotionBundle\Form\Type\PromotionActionType;
16 16
 use Sylius\Bundle\PromotionBundle\Form\Type\PromotionCouponType;
17
-use Sylius\Bundle\PromotionBundle\Form\Type\PromotionType;
18 17
 use Sylius\Bundle\PromotionBundle\Form\Type\PromotionRuleType;
18
+use Sylius\Bundle\PromotionBundle\Form\Type\PromotionType;
19 19
 use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
20 20
 use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType;
21 21
 use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
22 22
 use Sylius\Component\Promotion\Factory\PromotionCouponFactory;
23
+use Sylius\Component\Promotion\Model\Promotion;
23 24
 use Sylius\Component\Promotion\Model\PromotionAction;
24 25
 use Sylius\Component\Promotion\Model\PromotionActionInterface;
25 26
 use Sylius\Component\Promotion\Model\PromotionCoupon;
26 27
 use Sylius\Component\Promotion\Model\PromotionCouponInterface;
27
-use Sylius\Component\Promotion\Model\Promotion;
28 28
 use Sylius\Component\Promotion\Model\PromotionInterface;
29 29
 use Sylius\Component\Promotion\Model\PromotionRule;
30 30
 use Sylius\Component\Promotion\Model\PromotionRuleInterface;
Please login to merge, or discard this patch.
ResourceBundle/Doctrine/ODM/PHPCR/Form/Builder/DefaultFormBuilder.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -12,8 +12,6 @@
 block discarded – undo
12 12
 namespace Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Builder;
13 13
 
14 14
 use Doctrine\ODM\PHPCR\DocumentManagerInterface;
15
-use Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Subscriber\DefaultPathSubscriber;
16
-use Sylius\Bundle\ResourceBundle\Doctrine\ODM\PHPCR\Form\Subscriber\NameResolverSubscriber;
17 15
 use Sylius\Bundle\ResourceBundle\Form\Builder\DefaultFormBuilderInterface;
18 16
 use Sylius\Component\Resource\Metadata\MetadataInterface;
19 17
 use Symfony\Component\Form\FormBuilderInterface;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ReviewBundle/EventListener/ReviewCreateListener.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\ReviewBundle\EventListener;
13 13
 
14
+use Sylius\Component\Customer\Context\CustomerContextInterface;
14 15
 use Sylius\Component\Resource\Exception\UnexpectedTypeException;
15 16
 use Sylius\Component\Review\Model\ReviewInterface;
16
-use Sylius\Component\Customer\Context\CustomerContextInterface;
17 17
 use Symfony\Component\EventDispatcher\GenericEvent;
18 18
 
19 19
 /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/SettingsBundle/Schema/SettingsBuilderInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $value
30
+     * @return void
30 31
      */
31 32
     public function setValue($value);
32 33
 }
Please login to merge, or discard this patch.
Bundle/ThemeBundle/Configuration/ConfigurationSourceFactoryInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $value
30
+     * @return void
30 31
      */
31 32
     public function setValue($value);
32 33
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/AssetTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -101,6 +101,9 @@
 block discarded – undo
101 101
         return $webDirectory;
102 102
     }
103 103
 
104
+    /**
105
+     * @param string $webDirectory
106
+     */
104 107
     private function assertFileContent($lines, $webDirectory)
105 108
     {
106 109
         foreach ($lines as $line) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     {
23 23
         parent::tearDown();
24 24
 
25
-        file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset'.PHP_EOL);
25
+        file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset' . PHP_EOL);
26 26
     }
27 27
 
28 28
     /**
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask);
59 59
 
60 60
         sleep(1);
61
-        file_put_contents(__DIR__.'/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified');
61
+        file_put_contents(__DIR__ . '/../Fixtures/themes/FirstTestTheme/TestBundle/public/theme_asset.txt', 'Theme asset modified');
62 62
         clearstatcache();
63 63
 
64 64
         $client->getContainer()->get('sylius.theme.asset.assets_installer')->installAssets($webDirectory, $symlinkMask);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
     private function createWebDirectory()
93 93
     {
94
-        $webDirectory = $this->getTmpDirPath(self::TEST_CASE).'/web';
94
+        $webDirectory = $this->getTmpDirPath(self::TEST_CASE) . '/web';
95 95
         if (!is_dir($webDirectory)) {
96 96
             mkdir($webDirectory, 0777, true);
97 97
         }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
             list($expectedText, $assetFile) = explode(': ', $line);
112 112
 
113
-            $contents = file_get_contents($webDirectory.$assetFile);
113
+            $contents = file_get_contents($webDirectory . $assetFile);
114 114
 
115 115
             $this->assertEquals($expectedText, trim($contents));
116 116
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Twig/ThemeFilesystemLoader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
     }
105 105
 
106 106
     /**
107
-     * @param TemplateReferenceInterface|string $template
107
+     * @param string $template
108 108
      *
109 109
      * @return string
110 110
      */
Please login to merge, or discard this patch.