Completed
Push — master ( 3cf559...7252c9 )
by Pablo
07:16
created
src/PhpValueObjects/Spatial/PolygonValueObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Spatial/PolygonValueObjectTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -13,33 +13,33 @@  discard block
 block discarded – undo
13 13
         $latitude = $this->faker()->latitude;
14 14
         $longitude = $this->faker()->longitude;
15 15
         return [
16
-            ['no_array' => 'string'],
16
+            [ 'no_array' => 'string' ],
17 17
             [
18 18
                 'no_two_elements_by_array' => [
19
-                    [$this->faker()->latitude],
20
-                    [$this->faker()->lastName, $this->faker()->longitude],
21
-                    [$this->faker()->lastName, $this->faker()->longitude]
19
+                    [ $this->faker()->latitude ],
20
+                    [ $this->faker()->lastName, $this->faker()->longitude ],
21
+                    [ $this->faker()->lastName, $this->faker()->longitude ]
22 22
                 ]
23 23
             ],
24 24
             [
25 25
                 'no_same_start_end_data' => [
26
-                    [$this->faker()->latitude, $this->faker()->longitude],
27
-                    [$this->faker()->latitude, $this->faker()->longitude],
28
-                    [$this->faker()->latitude, $this->faker()->randomFloat()],
26
+                    [ $this->faker()->latitude, $this->faker()->longitude ],
27
+                    [ $this->faker()->latitude, $this->faker()->longitude ],
28
+                    [ $this->faker()->latitude, $this->faker()->randomFloat() ],
29 29
                 ]
30 30
             ],
31 31
             [
32 32
                 'no_polygon' => [
33
-                    [$latitude, $longitude],
34
-                    [$latitude, $longitude],
33
+                    [ $latitude, $longitude ],
34
+                    [ $latitude, $longitude ],
35 35
                 ]
36 36
             ],
37 37
             [
38 38
                 'element_no_array' => [
39
-                    [$latitude, $longitude],
39
+                    [ $latitude, $longitude ],
40 40
                     'string',
41
-                    [$this->faker()->lastName, $this->faker()->longitude],
42
-                    [$latitude, $longitude]
41
+                    [ $this->faker()->lastName, $this->faker()->longitude ],
42
+                    [ $latitude, $longitude ]
43 43
                 ]
44 44
             ]
45 45
         ];
@@ -66,9 +66,9 @@  discard block
 block discarded – undo
66 66
         $longitude = $this->faker()->longitude;
67 67
 
68 68
         $data = [
69
-            [$latitude, $longitude],
70
-            [$this->faker()->latitude, $this->faker()->longitude],
71
-            [$latitude, $longitude]
69
+            [ $latitude, $longitude ],
70
+            [ $this->faker()->latitude, $this->faker()->longitude ],
71
+            [ $latitude, $longitude ]
72 72
         ];
73 73
 
74 74
         $polygon = new PolygonValueObject($data);
Please login to merge, or discard this patch.
src/PhpValueObjects/Spatial/MultiPolygonValueObject.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,10 +22,10 @@  discard block
 block discarded – undo
22 22
             throw new InvalidMultiPolygonException();
23 23
         }
24 24
 
25
-        $values = [];
25
+        $values = [ ];
26 26
 
27 27
         foreach ($value as $item) {
28
-            $values[] = new PolygonValueObject($item);
28
+            $values[ ] = new PolygonValueObject($item);
29 29
         }
30 30
 
31 31
         $this->value = $this->getScalarValues($values);
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
      */
38 38
     private function getScalarValues(array $values): array
39 39
     {
40
-        $scalar = [];
40
+        $scalar = [ ];
41 41
 
42 42
         foreach ($values as $value) {
43
-            $scalar[] = $value->value();
43
+            $scalar[ ] = $value->value();
44 44
         }
45 45
 
46 46
         return $scalar;
Please login to merge, or discard this patch.
src/PhpValueObjects/Identity/Sha1ValueObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     protected function guard($value): void
13 13
     {
14
-        if (false === (bool)preg_match('/^[a-f0-9]{40}$/', $value)) {
14
+        if (false === (bool) preg_match('/^[a-f0-9]{40}$/', $value)) {
15 15
             throw new InvalidSha1Exception($value);
16 16
         }
17 17
     }
Please login to merge, or discard this patch.
src/PhpValueObjects/Identity/Sha256ValueObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     protected function guard($value): void
13 13
     {
14
-        if (false === (bool)preg_match('/^[a-f0-9]{64}$/', $value)) {
14
+        if (false === (bool) preg_match('/^[a-f0-9]{64}$/', $value)) {
15 15
             throw new InvalidSha256Exception($value);
16 16
         }
17 17
     }
Please login to merge, or discard this patch.
src/PhpValueObjects/Identity/Md5ValueObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     protected function guard($value): void
13 13
     {
14
-        if (false === (bool)preg_match('/^[a-f0-9]{32}$/', $value)) {
14
+        if (false === (bool) preg_match('/^[a-f0-9]{32}$/', $value)) {
15 15
             throw new InvalidMd5Exception($value);
16 16
         }
17 17
     }
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Spatial/MultiPolygonValueObjectTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     public function invalidDataProvider(): array
13 13
     {
14 14
         return [
15
-            'no_array' => ['string']
15
+            'no_array' => [ 'string' ]
16 16
         ];
17 17
     }
18 18
 
@@ -39,16 +39,16 @@  discard block
 block discarded – undo
39 39
 
40 40
         $data = [
41 41
             [
42
-                [$latitude1, $longitude1],
43
-                [$this->faker()->latitude, $this->faker()->longitude],
44
-                [$this->faker()->latitude, $this->faker()->longitude],
45
-                [$latitude1, $longitude1],
42
+                [ $latitude1, $longitude1 ],
43
+                [ $this->faker()->latitude, $this->faker()->longitude ],
44
+                [ $this->faker()->latitude, $this->faker()->longitude ],
45
+                [ $latitude1, $longitude1 ],
46 46
             ],
47 47
             [
48
-                [$latitude2, $longitude2],
49
-                [$this->faker()->latitude, $this->faker()->longitude],
50
-                [$this->faker()->latitude, $this->faker()->longitude],
51
-                [$latitude2, $longitude2]
48
+                [ $latitude2, $longitude2 ],
49
+                [ $this->faker()->latitude, $this->faker()->longitude ],
50
+                [ $this->faker()->latitude, $this->faker()->longitude ],
51
+                [ $latitude2, $longitude2 ]
52 52
             ]
53 53
         ];
54 54
 
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Network/Ipv4ValueObjectTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     public function invalidIpv4AddressProvider(): array
27 27
     {
28 28
         return [
29
-            [$this->faker()->numberBetween()],
30
-            [$this->faker()->ipv6]
29
+            [ $this->faker()->numberBetween() ],
30
+            [ $this->faker()->ipv6 ]
31 31
         ];
32 32
     }
33 33
 
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Network/UrlValueObjectTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@
 block discarded – undo
25 25
     public function invalidUrlProvider(): array
26 26
     {
27 27
         return [
28
-            [$this->faker()->email],
29
-            [$this->faker()->phoneNumber],
28
+            [ $this->faker()->email ],
29
+            [ $this->faker()->phoneNumber ],
30 30
         ];
31 31
     }
32 32
 
Please login to merge, or discard this patch.