Completed
Push — order-repository-count ( 3bffb0...231603 )
by Kamil
23:26
created
src/Sylius/Component/Grid/Definition/ActionGroup.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-     * @return array
56
+     * @return Action[]
57 57
      */
58 58
     public function getActions()
59 59
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Grid\Definition;
15 15
 
Please login to merge, or discard this patch.
Sylius/Component/Product/Model/ProductOptionValueTranslationInterface.php 2 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Product\Model;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Component/Promotion/Model/PromotionCouponInterface.php 2 patches
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param int|null $usageLimit
30
+     * @return void
30 31
      */
31 32
     public function setUsageLimit($usageLimit);
32 33
 
@@ -37,11 +38,18 @@  discard block
 block discarded – undo
37 38
 
38 39
     /**
39 40
      * @param int $used
41
+     * @return void
40 42
      */
41 43
     public function setUsed($used);
42 44
 
45
+    /**
46
+     * @return void
47
+     */
43 48
     public function incrementUsed();
44 49
 
50
+    /**
51
+     * @return void
52
+     */
45 53
     public function decrementUsed();
46 54
 
47 55
     /**
@@ -51,6 +59,7 @@  discard block
 block discarded – undo
51 59
 
52 60
     /**
53 61
      * @param PromotionInterface $promotion
62
+     * @return void
54 63
      */
55 64
     public function setPromotion(PromotionInterface $promotion = null);
56 65
 
@@ -61,6 +70,7 @@  discard block
 block discarded – undo
61 70
 
62 71
     /**
63 72
      * @param \DateTime $expiresAt
73
+     * @return void
64 74
      */
65 75
     public function setExpiresAt(\DateTime $expiresAt = null);
66 76
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Promotion\Model;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Component/Promotion/Model/PromotionInterface.php 2 patches
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * @param string $name
31
+     * @return void
31 32
      */
32 33
     public function setName($name);
33 34
 
@@ -38,6 +39,7 @@  discard block
 block discarded – undo
38 39
 
39 40
     /**
40 41
      * @param string $description
42
+     * @return void
41 43
      */
42 44
     public function setDescription($description);
43 45
 
@@ -48,6 +50,7 @@  discard block
 block discarded – undo
48 50
 
49 51
     /**
50 52
      * @param int $priority
53
+     * @return void
51 54
      */
52 55
     public function setPriority($priority);
53 56
 
@@ -58,6 +61,7 @@  discard block
 block discarded – undo
58 61
 
59 62
     /**
60 63
      * @param bool $exclusive
64
+     * @return void
61 65
      */
62 66
     public function setExclusive($exclusive);
63 67
 
@@ -68,6 +72,7 @@  discard block
 block discarded – undo
68 72
 
69 73
     /**
70 74
      * @param int $usageLimit
75
+     * @return void
71 76
      */
72 77
     public function setUsageLimit($usageLimit);
73 78
 
@@ -78,11 +83,18 @@  discard block
 block discarded – undo
78 83
 
79 84
     /**
80 85
      * @param int $used
86
+     * @return void
81 87
      */
82 88
     public function setUsed($used);
83 89
 
90
+    /**
91
+     * @return void
92
+     */
84 93
     public function incrementUsed();
85 94
 
95
+    /**
96
+     * @return void
97
+     */
86 98
     public function decrementUsed();
87 99
 
88 100
     /**
@@ -92,6 +104,7 @@  discard block
 block discarded – undo
92 104
 
93 105
     /**
94 106
      * @param \DateTime $startsAt
107
+     * @return void
95 108
      */
96 109
     public function setStartsAt(\DateTime $startsAt = null);
97 110
 
@@ -102,6 +115,7 @@  discard block
 block discarded – undo
102 115
 
103 116
     /**
104 117
      * @param \DateTime $endsAt
118
+     * @return void
105 119
      */
106 120
     public function setEndsAt(\DateTime $endsAt = null);
107 121
 
@@ -112,6 +126,7 @@  discard block
 block discarded – undo
112 126
 
113 127
     /**
114 128
      * @param bool $couponBased
129
+     * @return void
115 130
      */
116 131
     public function setCouponBased($couponBased);
117 132
 
@@ -134,11 +149,13 @@  discard block
 block discarded – undo
134 149
 
135 150
     /**
136 151
      * @param PromotionCouponInterface $coupon
152
+     * @return void
137 153
      */
138 154
     public function addCoupon(PromotionCouponInterface $coupon);
139 155
 
140 156
     /**
141 157
      * @param PromotionCouponInterface $coupon
158
+     * @return void
142 159
      */
143 160
     public function removeCoupon(PromotionCouponInterface $coupon);
144 161
 
@@ -161,11 +178,13 @@  discard block
 block discarded – undo
161 178
 
162 179
     /**
163 180
      * @param PromotionRuleInterface $rule
181
+     * @return void
164 182
      */
165 183
     public function addRule(PromotionRuleInterface $rule);
166 184
 
167 185
     /**
168 186
      * @param PromotionRuleInterface $rule
187
+     * @return void
169 188
      */
170 189
     public function removeRule(PromotionRuleInterface $rule);
171 190
 
@@ -188,11 +207,13 @@  discard block
 block discarded – undo
188 207
 
189 208
     /**
190 209
      * @param PromotionActionInterface $action
210
+     * @return void
191 211
      */
192 212
     public function addAction(PromotionActionInterface $action);
193 213
 
194 214
     /**
195 215
      * @param PromotionActionInterface $action
216
+     * @return void
196 217
      */
197 218
     public function removeAction(PromotionActionInterface $action);
198 219
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\Promotion\Model;
15 15
 
Please login to merge, or discard this patch.
Component/Shipping/spec/Checker/ShippingMethodEligibilityCheckerSpec.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
 namespace spec\Sylius\Component\Shipping\Checker;
13 13
 
14 14
 use PhpSpec\ObjectBehavior;
15
-use Sylius\Component\Registry\ServiceRegistryInterface;
16 15
 use Sylius\Component\Shipping\Checker\ShippingMethodEligibilityChecker;
17 16
 use Sylius\Component\Shipping\Checker\ShippingMethodEligibilityCheckerInterface;
18 17
 use Sylius\Component\Shipping\Model\ShippableInterface;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace spec\Sylius\Component\Shipping\Checker;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Component/User/Model/UserOAuthInterface.php 3 patches
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -26,6 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     /**
28 28
      * @param string $provider
29
+     * @return void
29 30
      */
30 31
     public function setProvider($provider);
31 32
 
@@ -36,6 +37,7 @@  discard block
 block discarded – undo
36 37
 
37 38
     /**
38 39
      * @param string $identifier
40
+     * @return void
39 41
      */
40 42
     public function setIdentifier($identifier);
41 43
 
@@ -46,6 +48,7 @@  discard block
 block discarded – undo
46 48
 
47 49
     /**
48 50
      * @param string $accessToken
51
+     * @return void
49 52
      */
50 53
     public function setAccessToken($accessToken);
51 54
 
@@ -56,6 +59,7 @@  discard block
 block discarded – undo
56 59
 
57 60
    /**
58 61
     * @param string $refreshToken
62
+    * @return void
59 63
     */
60 64
    public function setRefreshToken($refreshToken);
61 65
 }
Please login to merge, or discard this patch.
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,10 +52,10 @@
 block discarded – undo
52 52
     /**
53 53
      * @return string
54 54
      */
55
-   public function getRefreshToken();
55
+    public function getRefreshToken();
56 56
 
57
-   /**
58
-    * @param string $refreshToken
59
-    */
60
-   public function setRefreshToken($refreshToken);
57
+    /**
58
+     * @param string $refreshToken
59
+     */
60
+    public function setRefreshToken($refreshToken);
61 61
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Component\User\Model;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/spec/Context/SessionBasedCartContextSpec.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         SessionInterface $session,
46 46
         OrderRepositoryInterface $orderRepository,
47 47
         OrderInterface $cart
48
-    )  {
48
+    ) {
49 49
         $session->has('session_key_name')->willReturn(true);
50 50
         $session->get('session_key_name')->willReturn(12345);
51 51
         $orderRepository->findCartById(12345)->willReturn($cart);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace spec\Sylius\Bundle\OrderBundle\Context;
15 15
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         SessionInterface $session,
46 46
         OrderRepositoryInterface $orderRepository,
47 47
         OrderInterface $cart
48
-    )  {
48
+    ) {
49 49
         $session->has('session_key_name')->willReturn(true);
50 50
         $session->get('session_key_name')->willReturn(12345);
51 51
         $orderRepository->findCartById(12345)->willReturn($cart);
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Tests/Command/DebugResourceCommandTest.php 2 patches
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 | sylius.two |
57 57
 +------------+
58 58
 
59
-EOT
59
+eot
60 60
         , $display);
61 61
     }
62 62
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 | whatever.something.elephants | camels          |
83 83
 +------------------------------+-----------------+
84 84
 
85
-EOT
85
+eot
86 86
         , $display);
87 87
     }
88 88
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace Sylius\Bundle\ResourceBundle\Tests\Command;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/spec/Routing/ResourceLoaderSpec.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
             ],
970 970
         ];
971 971
         $routeFactory->createRoute('/products/new', $createDefaults, [], [], '', [], ['GET', 'POST'])
972
-                     ->willReturn($createRoute);
972
+                        ->willReturn($createRoute);
973 973
         $routeCollection->add('sylius_product_create', $createRoute)->shouldBeCalled();
974 974
 
975 975
         $updateDefaults = [
@@ -979,7 +979,7 @@  discard block
 block discarded – undo
979 979
             ],
980 980
         ];
981 981
         $routeFactory->createRoute('/products/{id}/edit', $updateDefaults, [], [], '', [], ['GET', 'PUT', 'PATCH'])
982
-                     ->willReturn($updateRoute);
982
+                        ->willReturn($updateRoute);
983 983
         $routeCollection->add('sylius_product_update', $updateRoute)->shouldBeCalled();
984 984
 
985 985
         $deleteDefaults = [
@@ -989,7 +989,7 @@  discard block
 block discarded – undo
989 989
             ],
990 990
         ];
991 991
         $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE'])
992
-                     ->willReturn($deleteRoute);
992
+                        ->willReturn($deleteRoute);
993 993
         $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled();
994 994
 
995 995
         $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  * file that was distributed with this source code.
10 10
  */
11 11
 
12
-declare(strict_types=1);
12
+declare(strict_types = 1);
13 13
 
14 14
 namespace spec\Sylius\Bundle\ResourceBundle\Routing;
15 15
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 <<<EOT
50 50
 foo: bar
51 51
 only: string
52
-EOT;
52
+eot;
53 53
 
54 54
         $this
55 55
             ->shouldThrow(InvalidConfigurationException::class)
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $configuration =
64 64
 <<<EOT
65 65
 alias: sylius.foo
66
-EOT;
66
+eot;
67 67
 
68 68
         $this
69 69
             ->shouldThrow(\InvalidArgumentException::class)
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $configuration =
93 93
 <<<EOT
94 94
 alias: sylius.product
95
-EOT;
95
+eot;
96 96
 
97 97
         $showDefaults = [
98 98
             '_controller' => 'sylius.controller.product:showAction',
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $configuration =
165 165
 <<<EOT
166 166
 alias: sylius.product_option
167
-EOT;
167
+eot;
168 168
 
169 169
         $showDefaults = [
170 170
             '_controller' => 'sylius.controller.product_option:showAction',
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 criteria: 
241 241
     code: \$code
242 242
 filterable: true
243
-EOT;
243
+eot;
244 244
 
245 245
         $showDefaults = [
246 246
             '_controller' => 'sylius.controller.product_option:showAction',
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 <<<EOT
334 334
 alias: sylius.product
335 335
 path: super-duper-products
336
-EOT;
336
+eot;
337 337
 
338 338
         $showDefaults = [
339 339
             '_controller' => 'sylius.controller.product:showAction',
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
 <<<EOT
407 407
 alias: sylius.product
408 408
 form: sylius_product_custom
409
-EOT;
409
+eot;
410 410
 
411 411
         $showDefaults = [
412 412
             '_controller' => 'sylius.controller.product:showAction',
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 <<<EOT
482 482
 alias: sylius.product
483 483
 section: admin
484
-EOT;
484
+eot;
485 485
 
486 486
         $showDefaults = [
487 487
             '_controller' => 'sylius.controller.product:showAction',
@@ -559,7 +559,7 @@  discard block
 block discarded – undo
559 559
 <<<EOT
560 560
 alias: sylius.product
561 561
 templates: SyliusAdminBundle:Product
562
-EOT;
562
+eot;
563 563
 
564 564
         $showDefaults = [
565 565
             '_controller' => 'sylius.controller.product:showAction',
@@ -634,7 +634,7 @@  discard block
 block discarded – undo
634 634
 <<<EOT
635 635
 alias: sylius.product
636 636
 except: ['show', 'delete']
637
-EOT;
637
+eot;
638 638
 
639 639
         $indexDefaults = [
640 640
             '_controller' => 'sylius.controller.product:indexAction',
@@ -686,7 +686,7 @@  discard block
 block discarded – undo
686 686
 <<<EOT
687 687
 alias: sylius.product
688 688
 only: ['create', 'index']
689
-EOT;
689
+eot;
690 690
 
691 691
         $indexDefaults = [
692 692
             '_controller' => 'sylius.controller.product:indexAction',
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
 alias: sylius.product
717 717
 except: ['show', 'delete']
718 718
 only: ['create']
719
-EOT;
719
+eot;
720 720
 
721 721
         $this
722 722
             ->shouldThrow(\InvalidArgumentException::class)
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
 <<<EOT
747 747
 alias: sylius.product
748 748
 redirect: update
749
-EOT;
749
+eot;
750 750
 
751 751
         $showDefaults = [
752 752
             '_controller' => 'sylius.controller.product:showAction',
@@ -820,7 +820,7 @@  discard block
 block discarded – undo
820 820
         $configuration =
821 821
 <<<EOT
822 822
 alias: sylius.product
823
-EOT;
823
+eot;
824 824
 
825 825
         $showDefaults = [
826 826
             '_controller' => 'sylius.controller.product:showAction',
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
 alias: sylius.product
897 897
 only: ['create', 'index']
898 898
 grid: sylius_admin_product
899
-EOT;
899
+eot;
900 900
 
901 901
         $indexDefaults = [
902 902
             '_controller' => 'sylius.controller.product:indexAction',
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
         bar: foo
950 950
     update:
951 951
         abc: xyz
952
-EOT;
952
+eot;
953 953
 
954 954
         $showDefaults = [
955 955
             '_controller' => 'sylius.controller.product:showAction',
@@ -1039,7 +1039,7 @@  discard block
 block discarded – undo
1039 1039
 <<<EOT
1040 1040
 alias: sylius.product
1041 1041
 permission: true
1042
-EOT;
1042
+eot;
1043 1043
 
1044 1044
         $showDefaults = [
1045 1045
             '_controller' => 'sylius.controller.product:showAction',
Please login to merge, or discard this patch.