@@ -27,9 +27,9 @@ |
||
27 | 27 | public function invalidIpv4AddressProvider() |
28 | 28 | { |
29 | 29 | return [ |
30 | - [null], |
|
31 | - [$this->faker()->numberBetween()], |
|
32 | - [$this->faker()->ipv6] |
|
30 | + [ null ], |
|
31 | + [ $this->faker()->numberBetween() ], |
|
32 | + [ $this->faker()->ipv6 ] |
|
33 | 33 | ]; |
34 | 34 | } |
35 | 35 |
@@ -26,10 +26,10 @@ |
||
26 | 26 | public function invalidIpv6Provider() |
27 | 27 | { |
28 | 28 | return [ |
29 | - [null], |
|
30 | - [$this->faker()->ipv4], |
|
31 | - [$this->faker()->localIpv4], |
|
32 | - [$this->faker()->numberBetween()], |
|
29 | + [ null ], |
|
30 | + [ $this->faker()->ipv4 ], |
|
31 | + [ $this->faker()->localIpv4 ], |
|
32 | + [ $this->faker()->numberBetween() ], |
|
33 | 33 | ]; |
34 | 34 | } |
35 | 35 |
@@ -26,9 +26,9 @@ |
||
26 | 26 | public function invalidUrlProvider() |
27 | 27 | { |
28 | 28 | return [ |
29 | - [null], |
|
30 | - [$this->faker()->email], |
|
31 | - [$this->faker()->phoneNumber], |
|
29 | + [ null ], |
|
30 | + [ $this->faker()->email ], |
|
31 | + [ $this->faker()->phoneNumber ], |
|
32 | 32 | ]; |
33 | 33 | } |
34 | 34 |
@@ -26,9 +26,9 @@ |
||
26 | 26 | public function invalidMd5HashProvider() |
27 | 27 | { |
28 | 28 | return [ |
29 | - [$this->faker()->sha1], |
|
30 | - [$this->faker()->sha256], |
|
31 | - [$this->faker()->text], |
|
29 | + [ $this->faker()->sha1 ], |
|
30 | + [ $this->faker()->sha256 ], |
|
31 | + [ $this->faker()->text ], |
|
32 | 32 | ]; |
33 | 33 | } |
34 | 34 |
@@ -26,10 +26,10 @@ |
||
26 | 26 | public function invalidSha256Provider() |
27 | 27 | { |
28 | 28 | return [ |
29 | - [null], |
|
30 | - [$this->faker()->md5], |
|
31 | - [$this->faker()->sha1], |
|
32 | - [$this->faker()->text], |
|
29 | + [ null ], |
|
30 | + [ $this->faker()->md5 ], |
|
31 | + [ $this->faker()->sha1 ], |
|
32 | + [ $this->faker()->text ], |
|
33 | 33 | ]; |
34 | 34 | } |
35 | 35 |
@@ -26,10 +26,10 @@ |
||
26 | 26 | public function invalidSha1Provider() |
27 | 27 | { |
28 | 28 | return [ |
29 | - [null], |
|
30 | - [$this->faker()->md5], |
|
31 | - [$this->faker()->sha256], |
|
32 | - [$this->faker()->text], |
|
29 | + [ null ], |
|
30 | + [ $this->faker()->md5 ], |
|
31 | + [ $this->faker()->sha256 ], |
|
32 | + [ $this->faker()->text ], |
|
33 | 33 | ]; |
34 | 34 | } |
35 | 35 |
@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | protected function guard($value) |
16 | 16 | { |
17 | - if (false === (bool)preg_match('/^[a-f0-9]{32}$/', $value)) { |
|
17 | + if (false === (bool) preg_match('/^[a-f0-9]{32}$/', $value)) { |
|
18 | 18 | throw new InvalidMd5Exception($value); |
19 | 19 | } |
20 | 20 | } |
@@ -21,7 +21,7 @@ |
||
21 | 21 | throw new InvalidPolygonException(); |
22 | 22 | } |
23 | 23 | |
24 | - $first = $value[0]; |
|
24 | + $first = $value[ 0 ]; |
|
25 | 25 | $end = end($value); |
26 | 26 | |
27 | 27 | foreach ($value as $point) { |
@@ -28,10 +28,10 @@ |
||
28 | 28 | throw new InvalidMultiPolygonException(); |
29 | 29 | } |
30 | 30 | |
31 | - $values = []; |
|
31 | + $values = [ ]; |
|
32 | 32 | |
33 | 33 | foreach ($value as $item) { |
34 | - $values[] = new PolygonValueObject($item); |
|
34 | + $values[ ] = new PolygonValueObject($item); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | $this->value = $values; |