Completed
Push — typehint/addressing ( 847595 )
by Kamil
24:15
created
src/Sylius/Component/Addressing/Matcher/ZoneMatcher.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
     /**
149 149
      * @param string $code
150 150
      *
151
-     * @return ZoneInterface|null
151
+     * @return AddressInterface
152 152
      */
153 153
     private function getZoneByCode(string $code): ?ZoneInterface
154 154
     {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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 Sylius\Component\Addressing\Matcher;
15 15
 
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * {@inheritdoc}
53 53
      */
54
-    public function match(AddressInterface $address, ?string $scope = null): ?ZoneInterface
54
+    public function match(AddressInterface $address, ? string $scope = null) : ? ZoneInterface
55 55
     {
56 56
         $zones = [];
57 57
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * {@inheritdoc}
76 76
      */
77
-    public function matchAll(AddressInterface $address, ?string $scope = null): array
77
+    public function matchAll(AddressInterface $address, ? string $scope = null) : array
78 78
     {
79 79
         $zones = [];
80 80
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      *
137 137
      * @return array
138 138
      */
139
-    private function getZones(?string $scope = null): array
139
+    private function getZones(? string $scope = null) : array
140 140
     {
141 141
         if (null === $scope) {
142 142
             return $this->zoneRepository->findAll();
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      *
151 151
      * @return ZoneInterface|null
152 152
      */
153
-    private function getZoneByCode(string $code): ?ZoneInterface
153
+    private function getZoneByCode(string $code): ? ZoneInterface
154 154
     {
155 155
         return $this->zoneRepository->findOneBy(['code' => $code]);
156 156
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/AddressInterface.php 2 patches
Doc Comments   +10 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|null $firstName
31
+     * @return void
31 32
      */
32 33
     public function setFirstName(?string $firstName): void;
33 34
 
@@ -38,6 +39,7 @@  discard block
 block discarded – undo
38 39
 
39 40
     /**
40 41
      * @param string|null $lastName
42
+     * @return void
41 43
      */
42 44
     public function setLastName(?string $lastName): void;
43 45
 
@@ -53,6 +55,7 @@  discard block
 block discarded – undo
53 55
 
54 56
     /**
55 57
      * @param string|null $phoneNumber
58
+     * @return void
56 59
      */
57 60
     public function setPhoneNumber(?string $phoneNumber): void;
58 61
 
@@ -63,6 +66,7 @@  discard block
 block discarded – undo
63 66
 
64 67
     /**
65 68
      * @param string|null $company
69
+     * @return void
66 70
      */
67 71
     public function setCompany(?string $company): void;
68 72
 
@@ -73,6 +77,7 @@  discard block
 block discarded – undo
73 77
 
74 78
     /**
75 79
      * @param string|null $countryCode
80
+     * @return void
76 81
      */
77 82
     public function setCountryCode(?string $countryCode): void;
78 83
 
@@ -83,6 +88,7 @@  discard block
 block discarded – undo
83 88
 
84 89
     /**
85 90
      * @param string|null $provinceCode
91
+     * @return void
86 92
      */
87 93
     public function setProvinceCode(?string $provinceCode): void;
88 94
 
@@ -93,6 +99,7 @@  discard block
 block discarded – undo
93 99
 
94 100
     /**
95 101
      * @param string|null $provinceName
102
+     * @return void
96 103
      */
97 104
     public function setProvinceName(?string $provinceName): void;
98 105
 
@@ -103,6 +110,7 @@  discard block
 block discarded – undo
103 110
 
104 111
     /**
105 112
      * @param string|null $street
113
+     * @return void
106 114
      */
107 115
     public function setStreet(?string $street): void;
108 116
 
@@ -113,6 +121,7 @@  discard block
 block discarded – undo
113 121
 
114 122
     /**
115 123
      * @param string|null $city
124
+     * @return void
116 125
      */
117 126
     public function setCity(?string $city): void;
118 127
 
@@ -123,6 +132,7 @@  discard block
 block discarded – undo
123 132
 
124 133
     /**
125 134
      * @param string|null $postcode
135
+     * @return void
126 136
      */
127 137
     public function setPostcode(?string $postcode): void;
128 138
 }
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 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 Sylius\Component\Addressing\Model;
15 15
 
@@ -24,105 +24,105 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @return string|null
26 26
      */
27
-    public function getFirstName(): ?string;
27
+    public function getFirstName(): ? string;
28 28
 
29 29
     /**
30 30
      * @param string|null $firstName
31 31
      */
32
-    public function setFirstName(?string $firstName): void;
32
+    public function setFirstName(? string $firstName) : void;
33 33
 
34 34
     /**
35 35
      * @return string|null
36 36
      */
37
-    public function getLastName(): ?string;
37
+    public function getLastName(): ? string;
38 38
 
39 39
     /**
40 40
      * @param string|null $lastName
41 41
      */
42
-    public function setLastName(?string $lastName): void;
42
+    public function setLastName(? string $lastName) : void;
43 43
 
44 44
     /**
45 45
      * @return string|null
46 46
      */
47
-    public function getFullName(): ?string;
47
+    public function getFullName(): ? string;
48 48
 
49 49
     /**
50 50
      * @return string|null
51 51
      */
52
-    public function getPhoneNumber(): ?string;
52
+    public function getPhoneNumber(): ? string;
53 53
 
54 54
     /**
55 55
      * @param string|null $phoneNumber
56 56
      */
57
-    public function setPhoneNumber(?string $phoneNumber): void;
57
+    public function setPhoneNumber(? string $phoneNumber) : void;
58 58
 
59 59
     /**
60 60
      * @return string|null
61 61
      */
62
-    public function getCompany(): ?string;
62
+    public function getCompany(): ? string;
63 63
 
64 64
     /**
65 65
      * @param string|null $company
66 66
      */
67
-    public function setCompany(?string $company): void;
67
+    public function setCompany(? string $company) : void;
68 68
 
69 69
     /**
70 70
      * @return string|null
71 71
      */
72
-    public function getCountryCode(): ?string;
72
+    public function getCountryCode(): ? string;
73 73
 
74 74
     /**
75 75
      * @param string|null $countryCode
76 76
      */
77
-    public function setCountryCode(?string $countryCode): void;
77
+    public function setCountryCode(? string $countryCode) : void;
78 78
 
79 79
     /**
80 80
      * @return string|null
81 81
      */
82
-    public function getProvinceCode(): ?string;
82
+    public function getProvinceCode(): ? string;
83 83
 
84 84
     /**
85 85
      * @param string|null $provinceCode
86 86
      */
87
-    public function setProvinceCode(?string $provinceCode): void;
87
+    public function setProvinceCode(? string $provinceCode) : void;
88 88
 
89 89
     /**
90 90
      * @return string|null
91 91
      */
92
-    public function getProvinceName(): ?string;
92
+    public function getProvinceName(): ? string;
93 93
 
94 94
     /**
95 95
      * @param string|null $provinceName
96 96
      */
97
-    public function setProvinceName(?string $provinceName): void;
97
+    public function setProvinceName(? string $provinceName) : void;
98 98
 
99 99
     /**
100 100
      * @return string|null
101 101
      */
102
-    public function getStreet(): ?string;
102
+    public function getStreet(): ? string;
103 103
 
104 104
     /**
105 105
      * @param string|null $street
106 106
      */
107
-    public function setStreet(?string $street): void;
107
+    public function setStreet(? string $street) : void;
108 108
 
109 109
     /**
110 110
      * @return string|null
111 111
      */
112
-    public function getCity(): ?string;
112
+    public function getCity(): ? string;
113 113
 
114 114
     /**
115 115
      * @param string|null $city
116 116
      */
117
-    public function setCity(?string $city): void;
117
+    public function setCity(? string $city) : void;
118 118
 
119 119
     /**
120 120
      * @return string|null
121 121
      */
122
-    public function getPostcode(): ?string;
122
+    public function getPostcode(): ? string;
123 123
 
124 124
     /**
125 125
      * @param string|null $postcode
126 126
      */
127
-    public function setPostcode(?string $postcode): void;
127
+    public function setPostcode(? string $postcode) : void;
128 128
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/CountryInterface.php 2 patches
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -44,11 +44,13 @@
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * @param ProvinceInterface $province
47
+     * @return void
47 48
      */
48 49
     public function addProvince(ProvinceInterface $province): void;
49 50
 
50 51
     /**
51 52
      * @param ProvinceInterface $province
53
+     * @return void
52 54
      */
53 55
     public function removeProvince(ProvinceInterface $province): void;
54 56
 
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 Sylius\Component\Addressing\Model;
15 15
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      *
31 31
      * @return string|null
32 32
      */
33
-    public function getName(?string $locale = null): ?string;
33
+    public function getName(? string $locale = null) : ? string;
34 34
 
35 35
     /**
36 36
      * @return Collection|ProvinceInterface[]
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/ProvinceInterface.php 2 patches
Doc Comments   +3 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|null $name
31
+     * @return void
31 32
      */
32 33
     public function setName(?string $name): void;
33 34
 
@@ -38,6 +39,7 @@  discard block
 block discarded – undo
38 39
 
39 40
     /**
40 41
      * @param string|null $abbreviation
42
+     * @return void
41 43
      */
42 44
     public function setAbbreviation(?string $abbreviation): void;
43 45
 
@@ -48,6 +50,7 @@  discard block
 block discarded – undo
48 50
 
49 51
     /**
50 52
      * @param CountryInterface $country
53
+     * @return void
51 54
      */
52 55
     public function setCountry(?CountryInterface $country): void;
53 56
 }
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 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 Sylius\Component\Addressing\Model;
15 15
 
@@ -24,30 +24,30 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @return string|null
26 26
      */
27
-    public function getName(): ?string;
27
+    public function getName(): ? string;
28 28
 
29 29
     /**
30 30
      * @param string|null $name
31 31
      */
32
-    public function setName(?string $name): void;
32
+    public function setName(? string $name) : void;
33 33
 
34 34
     /**
35 35
      * @return string|null
36 36
      */
37
-    public function getAbbreviation(): ?string;
37
+    public function getAbbreviation(): ? string;
38 38
 
39 39
     /**
40 40
      * @param string|null $abbreviation
41 41
      */
42
-    public function setAbbreviation(?string $abbreviation): void;
42
+    public function setAbbreviation(? string $abbreviation) : void;
43 43
 
44 44
     /**
45 45
      * @return CountryInterface|null
46 46
      */
47
-    public function getCountry(): ?CountryInterface;
47
+    public function getCountry(): ? CountryInterface;
48 48
 
49 49
     /**
50 50
      * @param CountryInterface $country
51 51
      */
52
-    public function setCountry(?CountryInterface $country): void;
52
+    public function setCountry(? CountryInterface $country) : void;
53 53
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/ZoneInterface.php 2 patches
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -39,6 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     /**
41 41
      * @param string|null $name
42
+     * @return void
42 43
      */
43 44
     public function setName(?string $name): void;
44 45
 
@@ -49,6 +50,7 @@  discard block
 block discarded – undo
49 50
 
50 51
     /**
51 52
      * @param string|null $type
53
+     * @return void
52 54
      */
53 55
     public function setType(?string $type): void;
54 56
 
@@ -59,6 +61,7 @@  discard block
 block discarded – undo
59 61
 
60 62
     /**
61 63
      * @param string|null $scope
64
+     * @return void
62 65
      */
63 66
     public function setScope(?string $scope): void;
64 67
 
@@ -74,11 +77,13 @@  discard block
 block discarded – undo
74 77
 
75 78
     /**
76 79
      * @param ZoneMemberInterface $member
80
+     * @return void
77 81
      */
78 82
     public function addMember(ZoneMemberInterface $member): void;
79 83
 
80 84
     /**
81 85
      * @param ZoneMemberInterface $member
86
+     * @return void
82 87
      */
83 88
     public function removeMember(ZoneMemberInterface $member): void;
84 89
 
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 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 Sylius\Component\Addressing\Model;
15 15
 
@@ -35,32 +35,32 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * @return string|null
37 37
      */
38
-    public function getName(): ?string;
38
+    public function getName(): ? string;
39 39
 
40 40
     /**
41 41
      * @param string|null $name
42 42
      */
43
-    public function setName(?string $name): void;
43
+    public function setName(? string $name) : void;
44 44
 
45 45
     /**
46 46
      * @return string|null
47 47
      */
48
-    public function getType(): ?string;
48
+    public function getType(): ? string;
49 49
 
50 50
     /**
51 51
      * @param string|null $type
52 52
      */
53
-    public function setType(?string $type): void;
53
+    public function setType(? string $type) : void;
54 54
 
55 55
     /**
56 56
      * @return string|null
57 57
      */
58
-    public function getScope(): ?string;
58
+    public function getScope(): ? string;
59 59
 
60 60
     /**
61 61
      * @param string|null $scope
62 62
      */
63
-    public function setScope(?string $scope): void;
63
+    public function setScope(? string $scope) : void;
64 64
 
65 65
     /**
66 66
      * @return Collection|ZoneMemberInterface[]
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/ZoneMemberInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * @param ZoneInterface|null $belongsTo
31
+     * @return void
31 32
      */
32 33
     public function setBelongsTo(?ZoneInterface $belongsTo): void;
33 34
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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 Sylius\Component\Addressing\Model;
15 15
 
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @return ZoneInterface|null
26 26
      */
27
-    public function getBelongsTo(): ?ZoneInterface;
27
+    public function getBelongsTo(): ? ZoneInterface;
28 28
 
29 29
     /**
30 30
      * @param ZoneInterface|null $belongsTo
31 31
      */
32
-    public function setBelongsTo(?ZoneInterface $belongsTo): void;
32
+    public function setBelongsTo(? ZoneInterface $belongsTo) : void;
33 33
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Model/CodeAwareInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param string|null $code
28
+     * @return void
28 29
      */
29 30
     public function setCode(?string $code): void;
30 31
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 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 Sylius\Component\Resource\Model;
15 15
 
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
     /**
22 22
      * @return string|null
23 23
      */
24
-    public function getCode(): ?string;
24
+    public function getCode(): ? string;
25 25
 
26 26
     /**
27 27
      * @param string|null $code
28 28
      */
29
-    public function setCode(?string $code): void;
29
+    public function setCode(? string $code) : void;
30 30
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/Model/Attribute.php 1 patch
Spacing   +3 added lines, -3 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 Sylius\Component\Attribute\Model;
15 15
 
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     /**
88 88
      * {@inheritdoc}
89 89
      */
90
-    public function getCode(): ?string
90
+    public function getCode(): ? string
91 91
     {
92 92
         return $this->code;
93 93
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * {@inheritdoc}
97 97
      */
98
-    public function setCode(?string $code): void
98
+    public function setCode(? string $code) : void
99 99
     {
100 100
         $this->code = $code;
101 101
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/PaymentMethod.php 1 patch
Spacing   +3 added lines, -3 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 Sylius\Component\Payment\Model;
15 15
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * {@inheritdoc}
75 75
      */
76
-    public function getCode(): ?string
76
+    public function getCode(): ? string
77 77
     {
78 78
         return $this->code;
79 79
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     /**
82 82
      * {@inheritdoc}
83 83
      */
84
-    public function setCode(?string $code): void
84
+    public function setCode(? string $code) : void
85 85
     {
86 86
         $this->code = $code;
87 87
     }
Please login to merge, or discard this patch.