Completed
Push — locale-in-url ( 6d9eda )
by Kamil
23:08
created
Component/Core/Promotion/Action/UnitDiscountPromotionActionCommand.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use Sylius\Component\Core\Model\OrderInterface;
16 16
 use Sylius\Component\Core\Model\OrderItemInterface;
17 17
 use Sylius\Component\Core\Model\OrderItemUnitInterface;
18
-use Sylius\Component\Promotion\Action\PromotionActionCommandInterface;
19 18
 use Sylius\Component\Promotion\Model\PromotionInterface;
20 19
 use Sylius\Component\Promotion\Model\PromotionSubjectInterface;
21 20
 use Sylius\Component\Resource\Exception\UnexpectedTypeException;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Command/SetupCommand.php 3 patches
Unused Use Statements   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -12,18 +12,14 @@
 block discarded – undo
12 12
 namespace Sylius\Bundle\CoreBundle\Command;
13 13
 
14 14
 use Sylius\Component\Core\Model\AdminUserInterface;
15
-use Sylius\Component\Core\Model\ChannelInterface;
16
-use Sylius\Component\Currency\Model\CurrencyInterface;
17 15
 use Sylius\Component\Locale\Model\LocaleInterface;
18
-use Sylius\Component\User\Model\UserInterface;
19 16
 use Symfony\Component\Console\Helper\QuestionHelper;
20 17
 use Symfony\Component\Console\Input\InputInterface;
21 18
 use Symfony\Component\Console\Output\OutputInterface;
22 19
 use Symfony\Component\Console\Question\Question;
23
-use Symfony\Component\Intl\Intl;
20
+use Symfony\Component\Validator\ConstraintViolationListInterface;
24 21
 use Symfony\Component\Validator\Constraints\Email;
25 22
 use Symfony\Component\Validator\Constraints\NotBlank;
26
-use Symfony\Component\Validator\ConstraintViolationListInterface;
27 23
 use Webmozart\Assert\Assert;
28 24
 
29 25
 /**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
      * @param InputInterface $input
155 155
      * @param OutputInterface $output
156 156
      *
157
-     * @return mixed
157
+     * @return string
158 158
      */
159 159
     private function getAdministratorPassword(InputInterface $input, OutputInterface $output)
160 160
     {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             ->setDescription('Sylius configuration setup.')
47 47
             ->setHelp(<<<EOT
48 48
 The <info>%command.name%</info> command allows user to configure basic Sylius data.
49
-EOT
49
+eot
50 50
             )
51 51
         ;
52 52
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Context/CustomerAndChannelBasedCartContext.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 use Sylius\Component\Customer\Context\CustomerContextInterface;
18 18
 use Sylius\Component\Order\Context\CartContextInterface;
19 19
 use Sylius\Component\Order\Context\CartNotFoundException;
20
-use Sylius\Component\Order\Model\OrderInterface;
21 20
 
22 21
 /**
23 22
  * @author Mateusz Zalewski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Extension/PromotionRuleTypeExtension.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace Sylius\Bundle\CoreBundle\Form\Extension;
13 13
 
14 14
 use Sylius\Bundle\CoreBundle\Form\EventSubscriber\BuildChannelBasedPromotionRuleFormSubscriber;
15
-use Sylius\Bundle\PromotionBundle\Form\Type\Core\AbstractConfigurationType;
16 15
 use Sylius\Bundle\PromotionBundle\Form\Type\PromotionRuleChoiceType;
17 16
 use Sylius\Bundle\PromotionBundle\Form\Type\PromotionRuleType;
18 17
 use Sylius\Component\Channel\Repository\ChannelRepositoryInterface;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Remover/ReviewerReviewsRemover.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      * @param ReviewInterface $review
76 76
      * @param ReviewableInterface[] $reviewSubjectsToRecalculate
77 77
      *
78
-     * @return array
78
+     * @return ReviewableInterface[]
79 79
      */
80 80
     private function removeReviewsAndExtractSubject(ReviewInterface $review, array $reviewSubjectsToRecalculate)
81 81
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,9 +14,9 @@
 block discarded – undo
14 14
 use Doctrine\Common\Persistence\ObjectManager;
15 15
 use Sylius\Bundle\ResourceBundle\Doctrine\ORM\EntityRepository;
16 16
 use Sylius\Bundle\ReviewBundle\Updater\ReviewableRatingUpdaterInterface;
17
+use Sylius\Component\Review\Model\ReviewInterface;
17 18
 use Sylius\Component\Review\Model\ReviewableInterface;
18 19
 use Sylius\Component\Review\Model\ReviewerInterface;
19
-use Sylius\Component\Review\Model\ReviewInterface;
20 20
 
21 21
 /**
22 22
  * @author Grzegorz Sadowski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/Controller/OrderItemController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,6 @@
 block discarded – undo
22 22
 use Sylius\Component\Order\Model\OrderItemInterface;
23 23
 use Sylius\Component\Order\Modifier\OrderItemQuantityModifierInterface;
24 24
 use Sylius\Component\Order\Modifier\OrderModifierInterface;
25
-use Symfony\Component\EventDispatcher\EventDispatcherInterface;
26 25
 use Symfony\Component\Form\FormFactoryInterface;
27 26
 use Symfony\Component\HttpFoundation\RedirectResponse;
28 27
 use Symfony\Component\HttpFoundation\Request;
Please login to merge, or discard this patch.
src/Sylius/Bundle/PromotionBundle/Form/Type/PromotionRuleType.php 1 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\PromotionBundle\Form\Type;
13 13
 
14
-use Sylius\Bundle\PromotionBundle\Form\EventListener\BuildPromotionRuleFormSubscriber;
15
-use Sylius\Bundle\PromotionBundle\Form\Type\Core\AbstractConfigurationType;
16 14
 use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
17 15
 use Sylius\Component\Promotion\Checker\Rule\ItemTotalRuleChecker;
18 16
 use Sylius\Component\Registry\ServiceRegistryInterface;
Please login to merge, or discard this patch.
src/Sylius/Bundle/UiBundle/View/Template/SemanticUiTemplate.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -53,6 +53,9 @@
 block discarded – undo
53 53
         return $this->pageWithTextAndClass($page, $text, $class);
54 54
     }
55 55
 
56
+    /**
57
+     * @param integer $page
58
+     */
56 59
     private function pageWithTextAndClass($page, $text, $class)
57 60
     {
58 61
         $href = $this->generateRoute($page);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
     private function previousDisabledClass()
72 72
     {
73
-        return $this->option('css_prev_class').' '.$this->option('css_disabled_class');
73
+        return $this->option('css_prev_class') . ' ' . $this->option('css_disabled_class');
74 74
     }
75 75
 
76 76
     public function previousEnabled($page)
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
 
92 92
     private function nextDisabledClass()
93 93
     {
94
-        return $this->option('css_next_class').' '.$this->option('css_disabled_class');
94
+        return $this->option('css_next_class') . ' ' . $this->option('css_disabled_class');
95 95
     }
96 96
 
97 97
     public function nextEnabled($page)
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
     public function current($page)
116 116
     {
117
-        $text = trim($page.' '.$this->option('active_suffix'));
117
+        $text = trim($page . ' ' . $this->option('active_suffix'));
118 118
         $class = $this->option('css_active_class');
119 119
 
120 120
         return $this->div($class, $text);
Please login to merge, or discard this patch.
src/Sylius/Component/Order/Model/OrderInterface.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * @param null|\DateTime $checkoutCompletedAt
35
+     * @return void
35 36
      */
36 37
     public function setCheckoutCompletedAt(\DateTime $checkoutCompletedAt = null);
37 38
 
@@ -40,6 +41,9 @@  discard block
 block discarded – undo
40 41
      */
41 42
     public function isCheckoutCompleted();
42 43
 
44
+    /**
45
+     * @return void
46
+     */
43 47
     public function completeCheckout();
44 48
 
45 49
     /**
@@ -49,6 +53,7 @@  discard block
 block discarded – undo
49 53
 
50 54
     /**
51 55
      * @param string
56
+     * @return void
52 57
      */
53 58
     public function setNumber($number);
54 59
 
@@ -59,6 +64,7 @@  discard block
 block discarded – undo
59 64
 
60 65
     /**
61 66
      * @param string $notes
67
+     * @return void
62 68
      */
63 69
     public function setNotes($notes);
64 70
 
@@ -67,6 +73,9 @@  discard block
 block discarded – undo
67 73
      */
68 74
     public function getItems();
69 75
 
76
+    /**
77
+     * @return void
78
+     */
70 79
     public function clearItems();
71 80
 
72 81
     /**
@@ -76,11 +85,13 @@  discard block
 block discarded – undo
76 85
 
77 86
     /**
78 87
      * @param OrderItemInterface $item
88
+     * @return void
79 89
      */
80 90
     public function addItem(OrderItemInterface $item);
81 91
 
82 92
     /**
83 93
      * @param OrderItemInterface $item
94
+     * @return void
84 95
      */
85 96
     public function removeItem(OrderItemInterface $item);
86 97
 
@@ -96,6 +107,9 @@  discard block
 block discarded – undo
96 107
      */
97 108
     public function getItemsTotal();
98 109
 
110
+    /**
111
+     * @return void
112
+     */
99 113
     public function recalculateItemsTotal();
100 114
 
101 115
     /**
@@ -115,6 +129,7 @@  discard block
 block discarded – undo
115 129
 
116 130
     /**
117 131
      * @param string $state
132
+     * @return void
118 133
      */
119 134
     public function setState($state);
120 135
 
@@ -139,6 +154,7 @@  discard block
 block discarded – undo
139 154
 
140 155
     /**
141 156
      * @param string|null $type
157
+     * @return void
142 158
      */
143 159
     public function removeAdjustmentsRecursively($type = null);
144 160
 }
Please login to merge, or discard this patch.