Completed
Push — symfony3-fqcn-promotion ( 358a27...51f651 )
by Kamil
34:17 queued 17:43
created
src/Sylius/Bundle/LocaleBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Bundle\LocaleBundle\DependencyInjection;
13 13
 
14
-use Sylius\Bundle\LocaleBundle\Form\Type\LocaleChoiceType;
15 14
 use Sylius\Bundle\LocaleBundle\Form\Type\LocaleType;
16 15
 use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
17 16
 use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Extension/OrderTypeExtension.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,8 @@
 block discarded – undo
47 47
     {
48 48
         $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) {
49 49
             return function (FormInterface $form) use ($validationGroups) {
50
-                if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent
50
+                if ((bool) $form->get('promotionCoupon')->getNormData()) {
51
+// Validate the coupon if it was sent
51 52
                     $validationGroups[] = 'sylius_promotion_coupon';
52 53
                 }
53 54
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/UpdateSimpleProductPageInterface.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -29,18 +29,21 @@  discard block
 block discarded – undo
29 29
     public function isCodeDisabled();
30 30
 
31 31
     /**
32
+     * @param string $locale
32 33
      * @return bool
33 34
      */
34 35
     public function isSlugReadOnlyIn($locale);
35 36
     
36 37
     /**
37 38
      * @param int $price
39
+     * @return void
38 40
      */
39 41
     public function specifyPrice($price);
40 42
 
41 43
     /**
42 44
      * @param string $name
43 45
      * @param string $localeCode
46
+     * @return void
44 47
      */
45 48
     public function nameItIn($name, $localeCode);
46 49
 
@@ -67,11 +70,18 @@  discard block
 block discarded – undo
67 70
 
68 71
     /**
69 72
      * @param TaxonInterface $taxon
73
+     * @return void
70 74
      */
71 75
     public function selectMainTaxon(TaxonInterface $taxon);
72 76
 
77
+    /**
78
+     * @return void
79
+     */
73 80
     public function disableTracking();
74 81
 
82
+    /**
83
+     * @return void
84
+     */
75 85
     public function enableTracking();
76 86
 
77 87
     /**
@@ -81,6 +91,7 @@  discard block
 block discarded – undo
81 91
 
82 92
     /**
83 93
      * @param string $locale
94
+     * @return void
84 95
      */
85 96
     public function enableSlugModification($locale);
86 97
 
@@ -94,20 +105,26 @@  discard block
 block discarded – undo
94 105
     /**
95 106
      * @param string $path
96 107
      * @param string $code
108
+     * @return void
97 109
      */
98 110
     public function attachImage($path, $code = null);
99 111
 
100 112
     /**
101 113
      * @param string $code
102 114
      * @param string $path
115
+     * @return void
103 116
      */
104 117
     public function changeImageWithCode($code, $path);
105 118
 
106 119
     /**
107 120
      * @param string $code
121
+     * @return void
108 122
      */
109 123
     public function removeImageWithCode($code);
110 124
 
125
+    /**
126
+     * @return void
127
+     */
111 128
     public function removeFirstImage();
112 129
 
113 130
     /**
@@ -130,6 +147,7 @@  discard block
 block discarded – undo
130 147
     /**
131 148
      * @param ProductAssociationTypeInterface $productAssociationType
132 149
      * @param string[] $productsNames
150
+     * @return void
133 151
      */
134 152
     public function associateProducts(ProductAssociationTypeInterface $productAssociationType, array $productsNames);
135 153
 
@@ -144,6 +162,7 @@  discard block
 block discarded – undo
144 162
     /**
145 163
      * @param string $productName
146 164
      * @param ProductAssociationTypeInterface $productAssociationType
165
+     * @return void
147 166
      */
148 167
     public function removeAssociatedProduct($productName, ProductAssociationTypeInterface $productAssociationType);
149 168
 
@@ -157,6 +176,7 @@  discard block
 block discarded – undo
157 176
 
158 177
     /**
159 178
      * @param string $locale
179
+     * @return void
160 180
      */
161 181
     public function activateLanguageTab($locale);
162 182
 
@@ -170,6 +190,7 @@  discard block
 block discarded – undo
170 190
     /**
171 191
      * @param string $slug
172 192
      * @param string $locale
193
+     * @return void
173 194
      */
174 195
     public function specifySlugIn($slug, $locale);
175 196
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ReviewBundle/Form/Type/ReviewType.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 
14 14
 use Sylius\Bundle\ResourceBundle\Form\Type\AbstractResourceType;
15 15
 use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
16
-use Symfony\Component\Form\Extension\Core\Type\TextareaType;
17 16
 use Symfony\Component\Form\Extension\Core\Type\TextType;
17
+use Symfony\Component\Form\Extension\Core\Type\TextareaType;
18 18
 use Symfony\Component\Form\FormBuilderInterface;
19 19
 use Symfony\Component\OptionsResolver\OptionsResolver;
20 20
 use Symfony\Component\Validator\Constraints\Valid;
Please login to merge, or discard this patch.
src/Sylius/Bundle/TaxonomyBundle/DependencyInjection/Configuration.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,6 @@
 block discarded – undo
12 12
 namespace Sylius\Bundle\TaxonomyBundle\DependencyInjection;
13 13
 
14 14
 use Sylius\Bundle\ResourceBundle\Controller\ResourceController;
15
-use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType;
16
-use Sylius\Bundle\ResourceBundle\Form\Type\ResourceToHiddenIdentifierType;
17
-use Sylius\Bundle\ResourceBundle\Form\Type\ResourceToIdentifierType;
18 15
 use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
19 16
 use Sylius\Bundle\TaxonomyBundle\Form\Type\TaxonTranslationType;
20 17
 use Sylius\Bundle\TaxonomyBundle\Form\Type\TaxonType;
Please login to merge, or discard this patch.
Sylius/Bundle/ReviewBundle/DependencyInjection/SyliusReviewExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     public function load(array $config, ContainerBuilder $container)
28 28
     {
29 29
         $config = $this->processConfiguration($this->getConfiguration($config, $container), $config);
30
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
30
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
31 31
 
32 32
         $loader->load('services.xml');
33 33
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         foreach ($resources as $subjectName => $subjectConfig) {
57 57
             foreach ($subjectConfig as $resourceName => $resourceConfig) {
58 58
                 if (is_array($resourceConfig)) {
59
-                    $resolvedResources[$subjectName.'_'.$resourceName] = $resourceConfig;
59
+                    $resolvedResources[$subjectName . '_' . $resourceName] = $resourceConfig;
60 60
                 }
61 61
             }
62 62
         }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/DashboardPageInterface.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -26,10 +26,14 @@
 block discarded – undo
26 26
      */
27 27
     public function checkValidationMessageFor($element, $message);
28 28
 
29
+    /**
30
+     * @return void
31
+     */
29 32
     public function reset();
30 33
 
31 34
     /**
32 35
      * @param string $email
36
+     * @return void
33 37
      */
34 38
     public function specifyEmail($email);
35 39
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ShippingCategory/CreatePageInterface.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/Behat/Context/Setup/ShippingCategoryContext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public function theStoreHasAndShippingCategory($firstShippingCategoryName, $secondShippingCategoryName = null)
70 70
     {
71 71
         $this->createShippingCategory($firstShippingCategoryName);
72
-        (null === $secondShippingCategoryName)? : $this->createShippingCategory($secondShippingCategoryName);
72
+        (null === $secondShippingCategoryName) ?: $this->createShippingCategory($secondShippingCategoryName);
73 73
     }
74 74
 
75 75
     /**
@@ -87,11 +87,11 @@  discard block
 block discarded – undo
87 87
     private function createShippingCategory($shippingCategoryName, $shippingCategoryCode = null)
88 88
     {
89 89
         /** @var ShippingCategoryInterface $shippingCategory */
90
-        $shippingCategory =  $this->shippingCategoryFactory->createNew();
90
+        $shippingCategory = $this->shippingCategoryFactory->createNew();
91 91
         $shippingCategory->setName($shippingCategoryName);
92 92
         $shippingCategory->setCode($shippingCategoryCode);
93 93
 
94
-        if(null === $shippingCategoryCode) {
94
+        if (null === $shippingCategoryCode) {
95 95
             $shippingCategory->setCode(StringInflector::nameToCode($shippingCategoryName));
96 96
         }
97 97
 
Please login to merge, or discard this patch.