@@ -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; |
@@ -10,10 +10,10 @@ discard block |
||
10 | 10 | public function invalidDataProvider() |
11 | 11 | { |
12 | 12 | return [ |
13 | - 'no_array' => ['string'], |
|
13 | + 'no_array' => [ 'string' ], |
|
14 | 14 | 'no_multiple' => [ |
15 | 15 | [ |
16 | - [$this->faker()->latitude, $this->faker()->longitude] |
|
16 | + [ $this->faker()->latitude, $this->faker()->longitude ] |
|
17 | 17 | ] |
18 | 18 | ] |
19 | 19 | ]; |
@@ -43,16 +43,16 @@ discard block |
||
43 | 43 | |
44 | 44 | $data = [ |
45 | 45 | [ |
46 | - [$latitude1, $longitude1], |
|
47 | - [$this->faker()->latitude, $this->faker()->longitude], |
|
48 | - [$this->faker()->latitude, $this->faker()->longitude], |
|
49 | - [$latitude1, $longitude1], |
|
46 | + [ $latitude1, $longitude1 ], |
|
47 | + [ $this->faker()->latitude, $this->faker()->longitude ], |
|
48 | + [ $this->faker()->latitude, $this->faker()->longitude ], |
|
49 | + [ $latitude1, $longitude1 ], |
|
50 | 50 | ], |
51 | 51 | [ |
52 | - [$latitude2, $longitude2], |
|
53 | - [$this->faker()->latitude, $this->faker()->longitude], |
|
54 | - [$this->faker()->latitude, $this->faker()->longitude], |
|
55 | - [$latitude2, $longitude2] |
|
52 | + [ $latitude2, $longitude2 ], |
|
53 | + [ $this->faker()->latitude, $this->faker()->longitude ], |
|
54 | + [ $this->faker()->latitude, $this->faker()->longitude ], |
|
55 | + [ $latitude2, $longitude2 ] |
|
56 | 56 | ] |
57 | 57 | ]; |
58 | 58 |
@@ -13,33 +13,33 @@ discard block |
||
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 |
||
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); |