@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | public function equals(?ValueObject $object) : bool |
39 | 39 | { |
40 | - if (! $object instanceof self) { |
|
40 | + if (!$object instanceof self) { |
|
41 | 41 | return false; |
42 | 42 | } |
43 | 43 |
@@ -88,9 +88,9 @@ |
||
88 | 88 | |
89 | 89 | public function getAddress() : string |
90 | 90 | { |
91 | - $messyAddress = $this->messyAddress; |
|
91 | + $messyAddress = $this->messyAddress; |
|
92 | 92 | |
93 | - $notNull = array_filter([$this->city, $this->region, $this->country], function ($element) { |
|
93 | + $notNull = array_filter([$this->city, $this->region, $this->country], function($element) { |
|
94 | 94 | return $element !== null; |
95 | 95 | }); |
96 | 96 |
@@ -124,30 +124,30 @@ discard block |
||
124 | 124 | ( |
125 | 125 | (null === $this->getStreet() && null === $object->getStreet()) || |
126 | 126 | (is_object($this->getStreet()) && $this->getStreet() |
127 | - ->equals($object->getStreet())) || |
|
127 | + ->equals($object->getStreet())) || |
|
128 | 128 | (is_object($object->getStreet()) && $object->getStreet() |
129 | - ->equals($this->getStreet())) |
|
129 | + ->equals($this->getStreet())) |
|
130 | 130 | ) && |
131 | 131 | ( |
132 | 132 | (null === $this->getCity() && null === $object->getCity()) || |
133 | 133 | (is_object($this->getCity()) && $this->getCity() |
134 | - ->equals($object->getCity())) || |
|
134 | + ->equals($object->getCity())) || |
|
135 | 135 | (is_object($object->getCity()) && $object->getCity() |
136 | - ->equals($this->getCity())) |
|
136 | + ->equals($this->getCity())) |
|
137 | 137 | ) && |
138 | 138 | ( |
139 | 139 | (null === $this->getCounty() && null === $object->getCounty()) || |
140 | 140 | (is_object($this->getCounty()) && $this->getCounty() |
141 | - ->equals($object->getCounty())) || |
|
141 | + ->equals($object->getCounty())) || |
|
142 | 142 | (is_object($object->getCounty()) && $object->getCounty() |
143 | - ->equals($this->getCounty())) |
|
143 | + ->equals($this->getCounty())) |
|
144 | 144 | ) && |
145 | 145 | ( |
146 | 146 | (null === $this->getState() && null === $object->getState()) || |
147 | 147 | (is_object($this->getState()) && $this->getState() |
148 | - ->equals($object->getState())) || |
|
148 | + ->equals($object->getState())) || |
|
149 | 149 | (is_object($object->getState()) && $object->getState() |
150 | - ->equals($this->getState())) |
|
150 | + ->equals($this->getState())) |
|
151 | 151 | ) && |
152 | 152 | ( |
153 | 153 | (null === $this->getZipCode() && null === $object->getZipCode()) || |
@@ -178,15 +178,15 @@ discard block |
||
178 | 178 | $street = $this->getStreet() ? $this->getStreet() |
179 | 179 | ->getFormatted() : ''; |
180 | 180 | $city = $this->getCity() ? $this->getCity() |
181 | - ->getFormatted() : ''; |
|
181 | + ->getFormatted() : ''; |
|
182 | 182 | $county = $this->getCounty() ? $this->getCounty() |
183 | 183 | ->getFormatted() : ''; |
184 | 184 | $state = $this->getState() ? $this->getState() |
185 | - ->getFormatted() : ''; |
|
185 | + ->getFormatted() : ''; |
|
186 | 186 | $postalCode = $this->getPostalCode() ? $this->getPostalCode() |
187 | 187 | ->getFormatted() : ''; |
188 | 188 | $country = $this->getCountry() ? $this->getCountry() |
189 | - ->getFormatted() : ''; |
|
189 | + ->getFormatted() : ''; |
|
190 | 190 | |
191 | 191 | $formatted = sprintf( |
192 | 192 | '%s, %s, %s, %s %s', $street, $city, $state, $postalCode, $country |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | public function equals(?ValueObject $object) : bool |
39 | 39 | { |
40 | - if (! $object instanceof self) { |
|
40 | + if (!$object instanceof self) { |
|
41 | 41 | return false; |
42 | 42 | } |
43 | 43 |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | public function equals(?ValueObject $object) : bool |
39 | 39 | { |
40 | - if (! $object instanceof self) { |
|
40 | + if (!$object instanceof self) { |
|
41 | 41 | return false; |
42 | 42 | } |
43 | 43 |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | { |
36 | 36 | return new ArrayIterator( |
37 | 37 | array_map( |
38 | - function ($definition) { |
|
38 | + function($definition) { |
|
39 | 39 | return new Language($definition['name'], $definition['code']); |
40 | 40 | }, |
41 | 41 | $this->getLanguages() |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | */ |
63 | 63 | private function loadLanguages() : array |
64 | 64 | { |
65 | - $file = __DIR__ . '/../../../resources/languages/iso6391.php'; |
|
65 | + $file = __DIR__.'/../../../resources/languages/iso6391.php'; |
|
66 | 66 | |
67 | 67 | if (file_exists($file)) { |
68 | 68 | return require $file; |