Completed
Push — typehint/addressing ( 847595 )
by Kamil
24:15
created
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.
src/Sylius/Component/Addressing/Model/Zone.php 1 patch
Spacing   +9 added lines, -9 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
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * {@inheritdoc}
86 86
      */
87
-    public function getCode(): ?string
87
+    public function getCode(): ? string
88 88
     {
89 89
         return $this->code;
90 90
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     /**
93 93
      * {@inheritdoc}
94 94
      */
95
-    public function setCode(?string $code): void
95
+    public function setCode(? string $code) : void
96 96
     {
97 97
         $this->code = $code;
98 98
     }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     /**
101 101
      * {@inheritdoc}
102 102
      */
103
-    public function getName(): ?string
103
+    public function getName(): ? string
104 104
     {
105 105
         return $this->name;
106 106
     }
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     /**
109 109
      * {@inheritdoc}
110 110
      */
111
-    public function setName(?string $name): void
111
+    public function setName(? string $name) : void
112 112
     {
113 113
         $this->name = $name;
114 114
     }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     /**
117 117
      * {@inheritdoc}
118 118
      */
119
-    public function getType(): ?string
119
+    public function getType(): ? string
120 120
     {
121 121
         return $this->type;
122 122
     }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      *
127 127
      * @throws \InvalidArgumentException
128 128
      */
129
-    public function setType(?string $type): void
129
+    public function setType(? string $type) : void
130 130
     {
131 131
         if (!in_array($type, static::getTypes(), true)) {
132 132
             throw new \InvalidArgumentException('Wrong zone type supplied.');
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     /**
139 139
      * {@inheritdoc}
140 140
      */
141
-    public function getScope(): ?string
141
+    public function getScope(): ? string
142 142
     {
143 143
         return $this->scope;
144 144
     }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     /**
147 147
      * {@inheritdoc}
148 148
      */
149
-    public function setScope(?string $scope): void
149
+    public function setScope(? string $scope) : void
150 150
     {
151 151
         $this->scope = $scope;
152 152
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/ZoneMember.php 1 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\Model;
15 15
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * {@inheritdoc}
47 47
      */
48
-    public function getCode(): ?string
48
+    public function getCode(): ? string
49 49
     {
50 50
         return $this->code;
51 51
     }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     /**
54 54
      * {@inheritdoc}
55 55
      */
56
-    public function setCode(?string $code): void
56
+    public function setCode(? string $code) : void
57 57
     {
58 58
         $this->code = $code;
59 59
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * {@inheritdoc}
63 63
      */
64
-    public function getBelongsTo(): ?ZoneInterface
64
+    public function getBelongsTo(): ? ZoneInterface
65 65
     {
66 66
         return $this->belongsTo;
67 67
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     /**
70 70
      * {@inheritdoc}
71 71
      */
72
-    public function setBelongsTo(?ZoneInterface $belongsTo): void
72
+    public function setBelongsTo(? ZoneInterface $belongsTo) : void
73 73
     {
74 74
         $this->belongsTo = $belongsTo;
75 75
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/ZoneMemberInterface.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\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/Addressing/Model/Country.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     /**
69 69
      * {@inheritdoc}
70 70
      */
71
-    public function getCode(): ?string
71
+    public function getCode(): ? string
72 72
     {
73 73
         return $this->code;
74 74
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * {@inheritdoc}
78 78
      */
79
-    public function setCode(?string $code): void
79
+    public function setCode(? string $code) : void
80 80
     {
81 81
         $this->code = $code;
82 82
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * {@inheritdoc}
86 86
      */
87
-    public function getName(?string $locale = null): ?string
87
+    public function getName(? string $locale = null) : ? string
88 88
     {
89 89
         return Intl::getRegionBundle()->getCountryName($this->code, $locale);
90 90
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/ProvinceInterface.php 1 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/AddressInterface.php 1 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/ZoneInterface.php 1 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.