Completed
Push — master ( a5cf18...3168b6 )
by Pablo
01:59
created
src/PhpValueObjects/Tests/Network/Ipv6ValueObjectTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Network/UrlValueObjectTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Identity/Md5ValueObjectTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Identity/Sha256ValueObjectTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/PhpValueObjects/Tests/Identity/Sha1ValueObjectTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,10 +26,10 @@
 block discarded – undo
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
 
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
@@ -14,7 +14,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
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/Tests/Spatial/MultiPolygonValueObjectTest.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     public function invalidDataProvider()
11 11
     {
12 12
         return [
13
-            'no_array' => ['string']
13
+            'no_array' => [ 'string' ]
14 14
         ];
15 15
     }
16 16
 
@@ -38,16 +38,16 @@  discard block
 block discarded – undo
38 38
 
39 39
         $data = [
40 40
             [
41
-                [$latitude1, $longitude1],
42
-                [$this->faker()->latitude, $this->faker()->longitude],
43
-                [$this->faker()->latitude, $this->faker()->longitude],
44
-                [$latitude1, $longitude1],
41
+                [ $latitude1, $longitude1 ],
42
+                [ $this->faker()->latitude, $this->faker()->longitude ],
43
+                [ $this->faker()->latitude, $this->faker()->longitude ],
44
+                [ $latitude1, $longitude1 ],
45 45
             ],
46 46
             [
47
-                [$latitude2, $longitude2],
48
-                [$this->faker()->latitude, $this->faker()->longitude],
49
-                [$this->faker()->latitude, $this->faker()->longitude],
50
-                [$latitude2, $longitude2]
47
+                [ $latitude2, $longitude2 ],
48
+                [ $this->faker()->latitude, $this->faker()->longitude ],
49
+                [ $this->faker()->latitude, $this->faker()->longitude ],
50
+                [ $latitude2, $longitude2 ]
51 51
             ]
52 52
         ];
53 53
 
Please login to merge, or discard this patch.