Skip to content

Commit b4d00ec

Browse files
committed
formatting
1 parent 3b18793 commit b4d00ec

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

tests/Objects/GeometryCollectionTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
new Point(0, 180),
122122
]);
123123

124-
$geometryCollectionFromJson = GeometryCollection::fromArray(json_decode('{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]},{"type":"Point","coordinates":[180,0]}]}',true));
124+
$geometryCollectionFromJson = GeometryCollection::fromArray(json_decode('{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]},{"type":"Point","coordinates":[180,0]}]}', true));
125125

126126
expect($geometryCollectionFromJson)->toEqual($geometryCollection);
127127
});
@@ -140,7 +140,7 @@
140140
new Point(0, 180),
141141
], Srid::WGS84->value);
142142

143-
$geometryCollectionFromJson = GeometryCollection::fromArray(json_decode('{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]},{"type":"Point","coordinates":[180,0]}]}',true), Srid::WGS84->value);
143+
$geometryCollectionFromJson = GeometryCollection::fromArray(json_decode('{"type":"GeometryCollection","geometries":[{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]},{"type":"Point","coordinates":[180,0]}]}', true), Srid::WGS84->value);
144144

145145
expect($geometryCollectionFromJson)->toEqual($geometryCollection);
146146
});
@@ -197,7 +197,7 @@
197197
new Point(0, 180),
198198
]);
199199

200-
$geometryCollectionFromFeatureCollectionJson = GeometryCollection::fromArray(json_decode('{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]}},{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[180,0]}}]}',true));
200+
$geometryCollectionFromFeatureCollectionJson = GeometryCollection::fromArray(json_decode('{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]}},{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[180,0]}}]}', true));
201201

202202
expect($geometryCollectionFromFeatureCollectionJson)->toEqual($geometryCollection);
203203
});
@@ -216,7 +216,7 @@
216216
new Point(0, 180),
217217
], Srid::WGS84);
218218

219-
$geometryCollectionFromFeatureCollectionJson = GeometryCollection::fromArray(json_decode('{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]}},{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[180,0]}}]}',true), Srid::WGS84);
219+
$geometryCollectionFromFeatureCollectionJson = GeometryCollection::fromArray(json_decode('{"type":"FeatureCollection","features":[{"type":"Feature","properties":[],"geometry":{"type":"Polygon","coordinates":[[[180,0],[179,1],[178,2],[177,3],[180,0]]]}},{"type":"Feature","properties":[],"geometry":{"type":"Point","coordinates":[180,0]}}]}', true), Srid::WGS84);
220220

221221
expect($geometryCollectionFromFeatureCollectionJson)->toEqual($geometryCollection);
222222
});

tests/Objects/LineStringTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
new Point(1, 179),
7373
]);
7474

75-
$lineStringFromJson = LineString::fromArray(["type"=>"LineString","coordinates"=>[[180,0],[179,1]]]);
75+
$lineStringFromJson = LineString::fromArray(['type' => 'LineString', 'coordinates' => [[180, 0], [179, 1]]]);
7676

7777
expect($lineStringFromJson)->toEqual($lineString);
7878
});
@@ -83,7 +83,7 @@
8383
new Point(1, 179),
8484
], Srid::WGS84->value);
8585

86-
$lineStringFromJson = LineString::fromArray(["type"=>"LineString","coordinates"=>[[180,0],[179,1]]], Srid::WGS84->value);
86+
$lineStringFromJson = LineString::fromArray(['type' => 'LineString', 'coordinates' => [[180, 0], [179, 1]]], Srid::WGS84->value);
8787

8888
expect($lineStringFromJson)->toEqual($lineString);
8989
});

tests/Objects/MultiLineStringTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
]),
8585
]);
8686

87-
$multiLineStringFromJson = MultiLineString::fromArray(["type"=>"MultiLineString","coordinates"=>[[[180,0],[179,1]]]]);
87+
$multiLineStringFromJson = MultiLineString::fromArray(['type' => 'MultiLineString', 'coordinates' => [[[180, 0], [179, 1]]]]);
8888

8989
expect($multiLineStringFromJson)->toEqual($multiLineString);
9090
});
@@ -97,7 +97,7 @@
9797
]),
9898
], Srid::WGS84->value);
9999

100-
$multiLineStringFromJson = MultiLineString::fromArray(["type"=>"MultiLineString","coordinates"=>[[[180,0],[179,1]]]], Srid::WGS84->value);
100+
$multiLineStringFromJson = MultiLineString::fromArray(['type' => 'MultiLineString', 'coordinates' => [[[180, 0], [179, 1]]]], Srid::WGS84->value);
101101

102102
expect($multiLineStringFromJson)->toEqual($multiLineString);
103103
});

tests/Objects/MultiPointTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
new Point(0, 180),
6767
]);
6868

69-
$multiPointFromJson = MultiPoint::fromArray(["type"=>"MultiPoint","coordinates"=>[[180,0]]]);
69+
$multiPointFromJson = MultiPoint::fromArray(['type' => 'MultiPoint', 'coordinates' => [[180, 0]]]);
7070

7171
expect($multiPointFromJson)->toEqual($multiPoint);
7272
});
@@ -76,7 +76,7 @@
7676
new Point(0, 180),
7777
], Srid::WGS84->value);
7878

79-
$multiPointFromJson = MultiPoint::fromArray(["type"=>"MultiPoint","coordinates"=>[[180,0]]], Srid::WGS84->value);
79+
$multiPointFromJson = MultiPoint::fromArray(['type' => 'MultiPoint', 'coordinates' => [[180, 0]]], Srid::WGS84->value);
8080

8181
expect($multiPointFromJson)->toEqual($multiPoint);
8282
});

tests/Objects/MultiPolygonTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
]),
116116
]);
117117

118-
$multiPolygonFromJson = MultiPolygon::fromArray(["type"=>"MultiPolygon","coordinates"=>[[[[180,0],[179,1],[178,2],[177,3],[180,0]]]]]);
118+
$multiPolygonFromJson = MultiPolygon::fromArray(['type' => 'MultiPolygon', 'coordinates' => [[[[180, 0], [179, 1], [178, 2], [177, 3], [180, 0]]]]]);
119119

120120
expect($multiPolygonFromJson)->toEqual($multiPolygon);
121121
});
@@ -133,7 +133,7 @@
133133
]),
134134
], Srid::WGS84->value);
135135

136-
$multiPolygonFromJson = MultiPolygon::fromArray(["type"=>"MultiPolygon","coordinates"=>[[[[180,0],[179,1],[178,2],[177,3],[180,0]]]]], Srid::WGS84->value);
136+
$multiPolygonFromJson = MultiPolygon::fromArray(['type' => 'MultiPolygon', 'coordinates' => [[[[180, 0], [179, 1], [178, 2], [177, 3], [180, 0]]]]], Srid::WGS84->value);
137137

138138
expect($multiPolygonFromJson)->toEqual($multiPolygon);
139139
});

tests/Objects/PointTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@
5252
it('creates point from Array', function (): void {
5353
$point = new Point(0, 180);
5454

55-
$pointFromJson = Point::fromArray(["type"=>"Point","coordinates"=>[180,0]]);
55+
$pointFromJson = Point::fromArray(['type' => 'Point', 'coordinates' => [180, 0]]);
5656

5757
expect($pointFromJson)->toEqual($point);
5858
});
5959

6060
it('creates point with SRID from Array', function (): void {
6161
$point = new Point(0, 180, Srid::WGS84->value);
6262

63-
$pointFromJson = Point::fromArray(["type"=>"Point","coordinates"=>[180,0]], Srid::WGS84->value);
63+
$pointFromJson = Point::fromArray(['type' => 'Point', 'coordinates' => [180, 0]], Srid::WGS84->value);
6464

6565
expect($pointFromJson)->toEqual($point);
6666
});

tests/Objects/PolygonTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
]),
103103
]);
104104

105-
$polygonFromJson = Polygon::fromArray(["type"=>"Polygon","coordinates"=>[[[180,0],[179,1],[178,2],[177,3],[180,0]]]]);
105+
$polygonFromJson = Polygon::fromArray(['type' => 'Polygon', 'coordinates' => [[[180, 0], [179, 1], [178, 2], [177, 3], [180, 0]]]]);
106106

107107
expect($polygonFromJson)->toEqual($polygon);
108108
});
@@ -118,7 +118,7 @@
118118
]),
119119
], Srid::WGS84->value);
120120

121-
$polygonFromJson = Polygon::fromArray(["type"=>"Polygon","coordinates"=>[[[180,0],[179,1],[178,2],[177,3],[180,0]]]], Srid::WGS84->value);
121+
$polygonFromJson = Polygon::fromArray(['type' => 'Polygon', 'coordinates' => [[[180, 0], [179, 1], [178, 2], [177, 3], [180, 0]]]], Srid::WGS84->value);
122122

123123
expect($polygonFromJson)->toEqual($polygon);
124124
});

0 commit comments

Comments
 (0)