Completed
Push — issue-template-security-issue ( 67a3b1 )
by Kamil
518:45 queued 499:28
created
src/Sylius/Component/Core/Order/OrderItemNamesSetterInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@
 block discarded – undo
19 19
 {
20 20
     /**
21 21
      * @param OrderInterface $order
22
+     * @return void
22 23
      */
23 24
     public function __invoke(OrderInterface $order): void;
24 25
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/spec/Routing/ResourceLoaderSpec.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1446,7 +1446,7 @@
 block discarded – undo
1446 1446
             ],
1447 1447
         ];
1448 1448
         $routeFactory->createRoute('/products/{id}', $deleteDefaults, [], [], '', [], ['DELETE'])
1449
-                     ->willReturn($deleteRoute);
1449
+                        ->willReturn($deleteRoute);
1450 1450
         $routeCollection->add('sylius_product_delete', $deleteRoute)->shouldBeCalled();
1451 1451
 
1452 1452
         $this->load($configuration, 'sylius.resource')->shouldReturn($routeCollection);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 <<<EOT
41 41
 foo: bar
42 42
 only: string
43
-EOT;
43
+eot;
44 44
 
45 45
         $this
46 46
             ->shouldThrow(InvalidConfigurationException::class)
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         $configuration =
55 55
 <<<EOT
56 56
 alias: sylius.foo
57
-EOT;
57
+eot;
58 58
 
59 59
         $this
60 60
             ->shouldThrow(\InvalidArgumentException::class)
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         $configuration =
85 85
 <<<EOT
86 86
 alias: sylius.product
87
-EOT;
87
+eot;
88 88
 
89 89
         $showDefaults = [
90 90
             '_controller' => 'sylius.controller.product:showAction',
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         $configuration =
190 190
 <<<EOT
191 191
 alias: sylius.product_option
192
-EOT;
192
+eot;
193 193
 
194 194
         $showDefaults = [
195 195
             '_controller' => 'sylius.controller.product_option:showAction',
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 criteria:
299 299
     code: \$code
300 300
 filterable: true
301
-EOT;
301
+eot;
302 302
 
303 303
         $showDefaults = [
304 304
             '_controller' => 'sylius.controller.product_option:showAction',
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
 <<<EOT
429 429
 alias: sylius.product
430 430
 path: super-duper-products
431
-EOT;
431
+eot;
432 432
 
433 433
         $showDefaults = [
434 434
             '_controller' => 'sylius.controller.product:showAction',
@@ -534,7 +534,7 @@  discard block
 block discarded – undo
534 534
 <<<EOT
535 535
 alias: sylius.product
536 536
 form: sylius_product_custom
537
-EOT;
537
+eot;
538 538
 
539 539
         $showDefaults = [
540 540
             '_controller' => 'sylius.controller.product:showAction',
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
 <<<EOT
643 643
 alias: sylius.product
644 644
 section: admin
645
-EOT;
645
+eot;
646 646
 
647 647
         $showDefaults = [
648 648
             '_controller' => 'sylius.controller.product:showAction',
@@ -754,7 +754,7 @@  discard block
 block discarded – undo
754 754
 <<<EOT
755 755
 alias: sylius.product
756 756
 templates: SyliusAdminBundle:Product
757
-EOT;
757
+eot;
758 758
 
759 759
         $showDefaults = [
760 760
             '_controller' => 'sylius.controller.product:showAction',
@@ -864,7 +864,7 @@  discard block
 block discarded – undo
864 864
             <<<EOT
865 865
 alias: sylius.product
866 866
 templates: admin/product
867
-EOT;
867
+eot;
868 868
 
869 869
         $showDefaults = [
870 870
             '_controller' => 'sylius.controller.product:showAction',
@@ -971,7 +971,7 @@  discard block
 block discarded – undo
971 971
 <<<EOT
972 972
 alias: sylius.product
973 973
 except: ['show', 'delete', 'bulkDelete']
974
-EOT;
974
+eot;
975 975
 
976 976
         $indexDefaults = [
977 977
             '_controller' => 'sylius.controller.product:indexAction',
@@ -1032,7 +1032,7 @@  discard block
 block discarded – undo
1032 1032
 <<<EOT
1033 1033
 alias: sylius.product
1034 1034
 only: ['create', 'index']
1035
-EOT;
1035
+eot;
1036 1036
 
1037 1037
         $indexDefaults = [
1038 1038
             '_controller' => 'sylius.controller.product:indexAction',
@@ -1068,7 +1068,7 @@  discard block
 block discarded – undo
1068 1068
 alias: sylius.product
1069 1069
 except: ['show', 'delete']
1070 1070
 only: ['create']
1071
-EOT;
1071
+eot;
1072 1072
 
1073 1073
         $this
1074 1074
             ->shouldThrow(\InvalidArgumentException::class)
@@ -1099,7 +1099,7 @@  discard block
 block discarded – undo
1099 1099
 <<<EOT
1100 1100
 alias: sylius.product
1101 1101
 redirect: update
1102
-EOT;
1102
+eot;
1103 1103
 
1104 1104
         $showDefaults = [
1105 1105
             '_controller' => 'sylius.controller.product:showAction',
@@ -1205,7 +1205,7 @@  discard block
 block discarded – undo
1205 1205
         $configuration =
1206 1206
 <<<EOT
1207 1207
 alias: sylius.product
1208
-EOT;
1208
+eot;
1209 1209
 
1210 1210
         $showDefaults = [
1211 1211
             '_controller' => 'sylius.controller.product:showAction',
@@ -1296,7 +1296,7 @@  discard block
 block discarded – undo
1296 1296
 alias: sylius.product
1297 1297
 only: ['create', 'index']
1298 1298
 grid: sylius_admin_product
1299
-EOT;
1299
+eot;
1300 1300
 
1301 1301
         $indexDefaults = [
1302 1302
             '_controller' => 'sylius.controller.product:indexAction',
@@ -1356,7 +1356,7 @@  discard block
 block discarded – undo
1356 1356
         bar: foo
1357 1357
     update:
1358 1358
         abc: xyz
1359
-EOT;
1359
+eot;
1360 1360
 
1361 1361
         $showDefaults = [
1362 1362
             '_controller' => 'sylius.controller.product:showAction',
@@ -1482,7 +1482,7 @@  discard block
 block discarded – undo
1482 1482
             <<<EOT
1483 1483
 alias: sylius.product
1484 1484
 permission: true
1485
-EOT;
1485
+eot;
1486 1486
 
1487 1487
         $showDefaults = [
1488 1488
             '_controller' => 'sylius.controller.product:showAction',
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductTaxonInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -24,6 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
     /**
26 26
      * @param ProductInterface|null $product
27
+     * @return void
27 28
      */
28 29
     public function setProduct(?ProductInterface $product): void;
29 30
 
@@ -34,6 +35,7 @@  discard block
 block discarded – undo
34 35
 
35 36
     /**
36 37
      * @param TaxonInterface|null $taxon
38
+     * @return void
37 39
      */
38 40
     public function setTaxon(?TaxonInterface $taxon): void;
39 41
 
@@ -44,6 +46,7 @@  discard block
 block discarded – undo
44 46
 
45 47
     /**
46 48
      * @param int|null $position
49
+     * @return void
47 50
      */
48 51
     public function setPosition(?int $position): void;
49 52
 }
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
@@ -31,6 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
     /**
33 33
      * @param \DateTimeInterface|null $checkoutCompletedAt
34
+     * @return void
34 35
      */
35 36
     public function setCheckoutCompletedAt(?\DateTimeInterface $checkoutCompletedAt): void;
36 37
 
@@ -39,6 +40,9 @@  discard block
 block discarded – undo
39 40
      */
40 41
     public function isCheckoutCompleted(): bool;
41 42
 
43
+    /**
44
+     * @return void
45
+     */
42 46
     public function completeCheckout(): void;
43 47
 
44 48
     /**
@@ -48,6 +52,7 @@  discard block
 block discarded – undo
48 52
 
49 53
     /**
50 54
      * @param string|null $number
55
+     * @return void
51 56
      */
52 57
     public function setNumber(?string $number): void;
53 58
 
@@ -58,6 +63,7 @@  discard block
 block discarded – undo
58 63
 
59 64
     /**
60 65
      * @param string|null $notes
66
+     * @return void
61 67
      */
62 68
     public function setNotes(?string $notes): void;
63 69
 
@@ -66,6 +72,9 @@  discard block
 block discarded – undo
66 72
      */
67 73
     public function getItems(): Collection;
68 74
 
75
+    /**
76
+     * @return void
77
+     */
69 78
     public function clearItems(): void;
70 79
 
71 80
     /**
@@ -75,11 +84,13 @@  discard block
 block discarded – undo
75 84
 
76 85
     /**
77 86
      * @param OrderItemInterface $item
87
+     * @return void
78 88
      */
79 89
     public function addItem(OrderItemInterface $item): void;
80 90
 
81 91
     /**
82 92
      * @param OrderItemInterface $item
93
+     * @return void
83 94
      */
84 95
     public function removeItem(OrderItemInterface $item): void;
85 96
 
@@ -95,6 +106,9 @@  discard block
 block discarded – undo
95 106
      */
96 107
     public function getItemsTotal(): int;
97 108
 
109
+    /**
110
+     * @return void
111
+     */
98 112
     public function recalculateItemsTotal(): void;
99 113
 
100 114
     /**
@@ -114,6 +128,7 @@  discard block
 block discarded – undo
114 128
 
115 129
     /**
116 130
      * @param string $state
131
+     * @return void
117 132
      */
118 133
     public function setState(string $state): void;
119 134
 
@@ -138,6 +153,7 @@  discard block
 block discarded – undo
138 153
 
139 154
     /**
140 155
      * @param string|null $type
156
+     * @return void
141 157
      */
142 158
     public function removeAdjustmentsRecursively(?string $type = null): void;
143 159
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/PaymentInterface.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -35,6 +35,7 @@  discard block
 block discarded – undo
35 35
 
36 36
     /**
37 37
      * @param PaymentMethodInterface|null $method
38
+     * @return void
38 39
      */
39 40
     public function setMethod(?PaymentMethodInterface $method): void;
40 41
 
@@ -45,6 +46,7 @@  discard block
 block discarded – undo
45 46
 
46 47
     /**
47 48
      * @param string $state
49
+     * @return void
48 50
      */
49 51
     public function setState(string $state): void;
50 52
 
@@ -55,6 +57,7 @@  discard block
 block discarded – undo
55 57
 
56 58
     /**
57 59
      * @param string $currencyCode
60
+     * @return void
58 61
      */
59 62
     public function setCurrencyCode(string $currencyCode): void;
60 63
 
@@ -65,6 +68,7 @@  discard block
 block discarded – undo
65 68
 
66 69
     /**
67 70
      * @param int $amount
71
+     * @return void
68 72
      */
69 73
     public function setAmount(int $amount): void;
70 74
 
@@ -75,6 +79,7 @@  discard block
 block discarded – undo
75 79
 
76 80
     /**
77 81
      * @param array $details
82
+     * @return void
78 83
      */
79 84
     public function setDetails(array $details): void;
80 85
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/AssetTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -104,6 +104,9 @@
 block discarded – undo
104 104
         return $webDirectory;
105 105
     }
106 106
 
107
+    /**
108
+     * @param string $webDirectory
109
+     */
107 110
     private function assertFileContent($lines, $webDirectory): void
108 111
     {
109 112
         foreach ($lines as $line) {
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/ProvinceInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param string|null $name
28
+     * @return void
28 29
      */
29 30
     public function setName(?string $name): void;
30 31
 
@@ -35,6 +36,7 @@  discard block
 block discarded – undo
35 36
 
36 37
     /**
37 38
      * @param string|null $abbreviation
39
+     * @return void
38 40
      */
39 41
     public function setAbbreviation(?string $abbreviation): void;
40 42
 
@@ -45,6 +47,7 @@  discard block
 block discarded – undo
45 47
 
46 48
     /**
47 49
      * @param CountryInterface|null $country
50
+     * @return void
48 51
      */
49 52
     public function setCountry(?CountryInterface $country): void;
50 53
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/ProductOptionValueInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param ProductOptionInterface|null $option
30
+     * @return void
30 31
      */
31 32
     public function setOption(?ProductOptionInterface $option): void;
32 33
 
@@ -37,6 +38,7 @@  discard block
 block discarded – undo
37 38
 
38 39
     /**
39 40
      * @param string|null $value
41
+     * @return void
40 42
      */
41 43
     public function setValue(?string $value): void;
42 44
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Model/ThemeInterface.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * @param string|null $title
35
+     * @return void
35 36
      */
36 37
     public function setTitle(?string $title): void;
37 38
 
@@ -42,6 +43,7 @@  discard block
 block discarded – undo
42 43
 
43 44
     /**
44 45
      * @param string|null $description
46
+     * @return void
45 47
      */
46 48
     public function setDescription(?string $description): void;
47 49
 
@@ -52,11 +54,13 @@  discard block
 block discarded – undo
52 54
 
53 55
     /**
54 56
      * @param ThemeAuthor $author
57
+     * @return void
55 58
      */
56 59
     public function addAuthor(ThemeAuthor $author): void;
57 60
 
58 61
     /**
59 62
      * @param ThemeAuthor $author
63
+     * @return void
60 64
      */
61 65
     public function removeAuthor(ThemeAuthor $author): void;
62 66
 
@@ -67,11 +71,13 @@  discard block
 block discarded – undo
67 71
 
68 72
     /**
69 73
      * @param ThemeInterface $theme
74
+     * @return void
70 75
      */
71 76
     public function addParent(self $theme): void;
72 77
 
73 78
     /**
74 79
      * @param ThemeInterface $theme
80
+     * @return void
75 81
      */
76 82
     public function removeParent(self $theme): void;
77 83
 
@@ -82,11 +88,13 @@  discard block
 block discarded – undo
82 88
 
83 89
     /**
84 90
      * @param ThemeScreenshot $screenshot
91
+     * @return void
85 92
      */
86 93
     public function addScreenshot(ThemeScreenshot $screenshot): void;
87 94
 
88 95
     /**
89 96
      * @param ThemeScreenshot $screenshot
97
+     * @return void
90 98
      */
91 99
     public function removeScreenshot(ThemeScreenshot $screenshot): void;
92 100
 }
Please login to merge, or discard this patch.