Completed
Push — travis-xenial ( 7a72dd...c18ce8 )
by Kamil
12:54 queued 05:28
created
Bundle/ApiBundle/spec/SerializerContextBuilder/LocaleContextBuilderSpec.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,17 +21,17 @@
 block discarded – undo
21 21
 final class LocaleContextBuilderSpec extends ObjectBehavior
22 22
 {
23 23
     function let(
24
-       SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
25
-       LocaleContextInterface $localeContext
26
-   ): void {
24
+        SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
25
+        LocaleContextInterface $localeContext
26
+    ): void {
27 27
         $this->beConstructedWith($decoratedSerializerContextBuilder, $localeContext);
28 28
     }
29 29
 
30 30
     function it_updates_an_context_when_locale_context_has_locale(
31
-       Request $request,
32
-       SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
33
-       LocaleContextInterface $localeContext
34
-   ): void {
31
+        Request $request,
32
+        SerializerContextBuilderInterface $decoratedSerializerContextBuilder,
33
+        LocaleContextInterface $localeContext
34
+    ): void {
35 35
         $decoratedSerializerContextBuilder->createFromRequest($request, true, [])->shouldBeCalled();
36 36
         $localeContext->getLocaleCode()->willReturn('en_US');
37 37
 
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ChannelInterface.php 1 patch
Doc Comments   +63 added lines patch added patch discarded remove patch
@@ -27,48 +27,105 @@  discard block
 block discarded – undo
27 27
     CurrenciesAwareInterface,
28 28
     LocalesAwareInterface
29 29
 {
30
+    /**
31
+     * @return CurrencyInterface
32
+     */
30 33
     public function getBaseCurrency(): ?CurrencyInterface;
31 34
 
35
+    /**
36
+     * @return void
37
+     */
32 38
     public function setBaseCurrency(?CurrencyInterface $currency): void;
33 39
 
40
+    /**
41
+     * @return LocaleInterface
42
+     */
34 43
     public function getDefaultLocale(): ?LocaleInterface;
35 44
 
45
+    /**
46
+     * @return void
47
+     */
36 48
     public function setDefaultLocale(?LocaleInterface $locale): void;
37 49
 
50
+    /**
51
+     * @return ZoneInterface
52
+     */
38 53
     public function getDefaultTaxZone(): ?ZoneInterface;
39 54
 
55
+    /**
56
+     * @return void
57
+     */
40 58
     public function setDefaultTaxZone(?ZoneInterface $defaultTaxZone): void;
41 59
 
60
+    /**
61
+     * @return string
62
+     */
42 63
     public function getTaxCalculationStrategy(): ?string;
43 64
 
65
+    /**
66
+     * @return void
67
+     */
44 68
     public function setTaxCalculationStrategy(?string $taxCalculationStrategy): void;
45 69
 
70
+    /**
71
+     * @return string
72
+     */
46 73
     public function getThemeName(): ?string;
47 74
 
75
+    /**
76
+     * @return void
77
+     */
48 78
     public function setThemeName(?string $themeName): void;
49 79
 
80
+    /**
81
+     * @return string
82
+     */
50 83
     public function getContactEmail(): ?string;
51 84
 
85
+    /**
86
+     * @return void
87
+     */
52 88
     public function setContactEmail(?string $contactEmail): void;
53 89
 
54 90
     public function isSkippingShippingStepAllowed(): bool;
55 91
 
92
+    /**
93
+     * @return void
94
+     */
56 95
     public function setSkippingShippingStepAllowed(bool $skippingShippingStepAllowed): void;
57 96
 
58 97
     public function isSkippingPaymentStepAllowed(): bool;
59 98
 
99
+    /**
100
+     * @return void
101
+     */
60 102
     public function setSkippingPaymentStepAllowed(bool $skippingPaymentStepAllowed): void;
61 103
 
62 104
     public function isAccountVerificationRequired(): bool;
63 105
 
106
+    /**
107
+     * @return void
108
+     */
64 109
     public function setAccountVerificationRequired(bool $accountVerificationRequired): void;
65 110
 
111
+    /**
112
+     * @return ShopBillingDataInterface|null
113
+     */
66 114
     public function getShopBillingData(): ?ShopBillingDataInterface;
67 115
 
116
+    /**
117
+     * @return void
118
+     */
68 119
     public function setShopBillingData(ShopBillingDataInterface $shopBillingData): void;
69 120
 
121
+    /**
122
+     * @return TaxonInterface|null
123
+     */
70 124
     public function getMenuTaxon(): ?TaxonInterface;
71 125
 
126
+    /**
127
+     * @return void
128
+     */
72 129
     public function setMenuTaxon(?TaxonInterface $menuTaxon): void;
73 130
 
74 131
     /**
@@ -78,8 +135,14 @@  discard block
 block discarded – undo
78 135
      */
79 136
     public function getCountries(): Collection;
80 137
 
138
+    /**
139
+     * @return void
140
+     */
81 141
     public function addCountry(CountryInterface $country): void;
82 142
 
143
+    /**
144
+     * @return void
145
+     */
83 146
     public function removeCountry(CountryInterface $country): void;
84 147
 
85 148
     public function hasCountry(CountryInterface $country): bool;
Please login to merge, or discard this patch.
src/Sylius/Behat/Client/ApiClientInterface.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -44,10 +44,19 @@  discard block
 block discarded – undo
44 44
 
45 45
     public function upload(): Response;
46 46
 
47
+    /**
48
+     * @return void
49
+     */
47 50
     public function buildCreateRequest(): void;
48 51
 
52
+    /**
53
+     * @return void
54
+     */
49 55
     public function buildUpdateRequest(string $id): void;
50 56
 
57
+    /**
58
+     * @return void
59
+     */
51 60
     public function buildUploadRequest(): void;
52 61
 
53 62
     /** @param string|int $value */
@@ -56,15 +65,27 @@  discard block
 block discarded – undo
56 65
     /** @param string|int $value */
57 66
     public function addFilter(string $key, $value): void;
58 67
 
68
+    /**
69
+     * @return void
70
+     */
59 71
     public function addFile(string $key, UploadedFile $file): void;
60 72
 
61 73
     /** @param string|int|array $value */
62 74
     public function addRequestData(string $key, $value): void;
63 75
 
76
+    /**
77
+     * @return void
78
+     */
64 79
     public function addSubResourceData(string $key, array $data): void;
65 80
 
81
+    /**
82
+     * @return void
83
+     */
66 84
     public function removeSubResource(string $subResource, string $id): void;
67 85
 
86
+    /**
87
+     * @return void
88
+     */
68 89
     public function updateRequestData(array $data): void;
69 90
 
70 91
     public function getLastResponse(): Response;
Please login to merge, or discard this patch.
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.