Completed
Push — docs-unified-api-section ( 191e4f...d674e9 )
by Kamil
10:53 queued 04:48
created
src/Sylius/Behat/Client/RequestInterface.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -41,19 +41,37 @@
 block discarded – undo
41 41
 
42 42
     public function content(): string;
43 43
 
44
+    /**
45
+     * @return void
46
+     */
44 47
     public function setContent(array $content): void;
45 48
 
49
+    /**
50
+     * @return void
51
+     */
46 52
     public function updateContent(array $newValues): void;
47 53
 
48 54
     public function parameters(): array;
49 55
 
56
+    /**
57
+     * @return void
58
+     */
50 59
     public function updateParameters(array $newParameters): void;
51 60
 
52 61
     public function files(): array;
53 62
 
63
+    /**
64
+     * @return void
65
+     */
54 66
     public function updateFiles(array $newFiles): void;
55 67
 
68
+    /**
69
+     * @return void
70
+     */
56 71
     public function addSubResource(string $key, array $subResource): void;
57 72
 
73
+    /**
74
+     * @return void
75
+     */
58 76
     public function removeSubResource(string $subResource, string $id): void;
59 77
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/PromotionCouponInterface.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -17,11 +17,20 @@
 block discarded – undo
17 17
 
18 18
 interface PromotionCouponInterface extends BasePromotionCouponInterface
19 19
 {
20
+    /**
21
+     * @return integer|null
22
+     */
20 23
     public function getPerCustomerUsageLimit(): ?int;
21 24
 
25
+    /**
26
+     * @return void
27
+     */
22 28
     public function setPerCustomerUsageLimit(?int $perCustomerUsageLimit): void;
23 29
 
24 30
     public function isReusableFromCancelledOrders(): bool;
25 31
 
32
+    /**
33
+     * @return void
34
+     */
26 35
     public function setReusableFromCancelledOrders(bool $reusableFromCancelledOrders): void;
27 36
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ApiBundle/Context/UserContextInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -17,5 +17,8 @@
 block discarded – undo
17 17
 
18 18
 interface UserContextInterface
19 19
 {
20
+    /**
21
+     * @return null|UserInterface
22
+     */
20 23
     public function getUser(): ?UserInterface;
21 24
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/PromotionExampleFactory.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -164,6 +164,9 @@
 block discarded – undo
164 164
         ;
165 165
     }
166 166
 
167
+    /**
168
+     * @param FactoryInterface|null $couponFactory
169
+     */
167 170
     private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure
168 171
     {
169 172
         return function (Options $options, array $couponDefinitions) use ($couponFactory): array {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
 
167 167
     private static function getCouponNormalizer(?FactoryInterface $couponFactory): \Closure
168 168
     {
169
-        return function (Options $options, array $couponDefinitions) use ($couponFactory): array {
169
+        return function (Options $options, array $couponDefinitions) use ($couponFactory) : array {
170 170
             if (null === $couponFactory) {
171 171
                 throw new \RuntimeException('You must configure a $couponFactory');
172 172
             }
Please login to merge, or discard this patch.
spec/Validator/Constraints/ZoneCannotContainItselfValidatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,8 @@
 block discarded – undo
46 46
     {
47 47
         $this
48 48
             ->shouldThrow(\InvalidArgumentException::class)
49
-            ->during('validate', ['', new class() extends Constraint {
49
+            ->during('validate', ['', new class() extends Constraint
50
+            {
50 51
             }])
51 52
         ;
52 53
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Product/IndexPageInterface.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -18,13 +18,25 @@
 block discarded – undo
18 18
 
19 19
 interface IndexPageInterface extends CrudIndexPageInterface
20 20
 {
21
+    /**
22
+     * @return void
23
+     */
21 24
     public function filterByTaxon(string $taxonName): void;
22 25
 
23 26
     public function hasProductAccessibleImage(string $productCode): bool;
24 27
 
28
+    /**
29
+     * @return void
30
+     */
25 31
     public function showProductPage(string $productName): void;
26 32
 
33
+    /**
34
+     * @return void
35
+     */
27 36
     public function chooseChannelFilter(string $channelName) :void;
28 37
 
38
+    /**
39
+     * @return void
40
+     */
29 41
     public function filter(): void;
30 42
 }
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 namespace Sylius\Behat\Page\Admin\Product;
15 15
 
16 16
 use Sylius\Behat\Page\Admin\Crud\IndexPageInterface as CrudIndexPageInterface;
17
-use Sylius\Component\Core\Model\ChannelInterface;
18 17
 
19 18
 interface IndexPageInterface extends CrudIndexPageInterface
20 19
 {
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Twig/CountryNameExtension.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,10 +14,10 @@
 block discarded – undo
14 14
 namespace Sylius\Bundle\AddressingBundle\Twig;
15 15
 
16 16
 use Sylius\Component\Addressing\Model\CountryInterface;
17
+use Symfony\Component\Intl\Countries;
17 18
 use Symfony\Component\Intl\Exception\MissingResourceException;
18 19
 use Twig\Extension\AbstractExtension;
19 20
 use Twig\TwigFilter;
20
-use Symfony\Component\Intl\Countries;
21 21
 
22 22
 class CountryNameExtension extends AbstractExtension
23 23
 {
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Installer/Setup/LocaleSetup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
 
107 107
         try {
108 108
             return Languages::getName($language, $region);
109
-        } catch(MissingResourceException $exception) {
109
+        } catch (MissingResourceException $exception) {
110 110
             return null;
111 111
         }
112 112
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Installer/Setup/CurrencySetup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
     {
94 94
         try {
95 95
             return Currencies::getName($code);
96
-        } catch(MissingResourceException $exception) {
96
+        } catch (MissingResourceException $exception) {
97 97
             return null;
98 98
         }
99 99
     }
Please login to merge, or discard this patch.