Passed
Push — extents ( 6d8774...01b6e3 )
by Doug
61:12
created

Extent4347::__invoke()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 282
Code Lines 57

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.037

Importance

Changes 0
Metric Value
cc 1
eloc 57
nc 1
nop 0
dl 0
loc 282
ccs 2
cts 3
cp 0.6667
crap 1.037
rs 8.9381
c 0
b 0
f 0

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
<?php
2
/**
3
 * PHPCoord.
4
 *
5
 * @author Doug Wright
6
 */
7
declare(strict_types=1);
8
9
namespace PHPCoord\Geometry\Extents\BoundingBoxOnly;
10
11
/**
12
 * North America/USA - Wisconsin - Marinette.
13
 * @internal
14
 */
15
class Extent4347
16
{
17 8
    public function __invoke(): array
18
    {
19
        return
20
        [
21
            [
22
                [
23 8
                    [-87.577472852853, 45.795617611819], [-88.428091478963, 45.795617611819], [-88.428091478963, 44.965637116573], [-87.577472852853, 44.965637116573], [-87.577472852853, 45.795617611819],
24
                ],
25
            ],
26
            [
27
                [
28
                    [-87.48997275611, 45.061197771666], [-87.506312553881, 45.061197771666], [-87.506312553881, 45.054680493549], [-87.48997275611, 45.054680493549], [-87.48997275611, 45.061197771666],
29
                ],
30
            ],
31
            [
32
                [
33
                    [-87.636341518578, 44.980903043034], [-87.649067378075, 44.980903043034], [-87.649067378075, 44.977769305078], [-87.636341518578, 44.977769305078], [-87.636341518578, 44.980903043034],
34
                ],
35
            ],
36
            [
37
                [
38
                    [-87.587819180461, 45.082884312367], [-87.592115106224, 45.082884312367], [-87.592115106224, 45.07872868127], [-87.587819180461, 45.07872868127], [-87.587819180461, 45.082884312367],
39
                ],
40
            ],
41
            [
42
                [
43
                    [-87.589692082439, 45.084671167033], [-87.592065339994, 45.084671167033], [-87.592065339994, 45.082646848063], [-87.589692082439, 45.082646848063], [-87.589692082439, 45.084671167033],
44
                ],
45
            ],
46
            [
47
                [
48
                    [-87.738203616521, 44.967630091186], [-87.745235560557, 44.967630091186], [-87.745235560557, 44.967108335747], [-87.738203616521, 44.967108335747], [-87.738203616521, 44.967630091186],
49
                ],
50
            ],
51
            [
52
                [
53
                    [-87.64870629884, 44.983487724093], [-87.651361801912, 44.983487724093], [-87.651361801912, 44.981776737327], [-87.64870629884, 44.981776737327], [-87.64870629884, 44.983487724093],
54
                ],
55
            ],
56
            [
57
                [
58
                    [-87.581282412363, 45.076709916851], [-87.587618730751, 45.076709916851], [-87.587618730751, 45.075132558678], [-87.581282412363, 45.075132558678], [-87.581282412363, 45.076709916851],
59
                ],
60
            ],
61
            [
62
                [
63
                    [-87.750922240428, 44.96718621469], [-87.753316695009, 44.96718621469], [-87.753316695009, 44.966643209894], [-87.750922240428, 44.966643209894], [-87.750922240428, 44.96718621469],
64
                ],
65
            ],
66
            [
67
                [
68
                    [-87.647739614128, 44.976585271928], [-87.649842072958, 44.976585271928], [-87.649842072958, 44.975762795533], [-87.647739614128, 44.975762795533], [-87.647739614128, 44.976585271928],
69
                ],
70
            ],
71
            [
72
                [
73
                    [-87.587393646059, 45.078977899899], [-87.588663324208, 45.078977899899], [-87.588663324208, 45.077803483004], [-87.587393646059, 45.077803483004], [-87.587393646059, 45.078977899899],
74
                ],
75
            ],
76
            [
77
                [
78
                    [-87.746750639477, 44.967444795337], [-87.748527992412, 44.967444795337], [-87.748527992412, 44.967044303286], [-87.746750639477, 44.967044303286], [-87.746750639477, 44.967444795337],
79
                ],
80
            ],
81
            [
82
                [
83
                    [-87.709891740083, 44.972433271697], [-87.71105276187, 44.972433271697], [-87.71105276187, 44.971848371659], [-87.709891740083, 44.971848371659], [-87.709891740083, 44.972433271697],
84
                ],
85
            ],
86
            [
87
                [
88
                    [-87.754105448981, 44.966638546274], [-87.755341865523, 44.966638546274], [-87.755341865523, 44.966325617274], [-87.754105448981, 44.966325617274], [-87.754105448981, 44.966638546274],
89
                ],
90
            ],
91
            [
92
                [
93
                    [-87.58657613669, 45.077980405464], [-87.587634296369, 45.077980405464], [-87.587634296369, 45.077522687635], [-87.58657613669, 45.077522687635], [-87.58657613669, 45.077980405464],
94
                ],
95
            ],
96
            [
97
                [
98
                    [-87.724481697324, 44.970772162899], [-87.725554855272, 44.970772162899], [-87.725554855272, 44.970325432874], [-87.724481697324, 44.970325432874], [-87.724481697324, 44.970772162899],
99
                ],
100
            ],
101
            [
102
                [
103
                    [-87.737194147299, 44.968640774641], [-87.738365874251, 44.968640774641], [-87.738365874251, 44.968187255862], [-87.737194147299, 44.968187255862], [-87.737194147299, 44.968640774641],
104
                ],
105
            ],
106
            [
107
                [
108
                    [-87.732911814765, 44.969536523475], [-87.733746775964, 44.969536523475], [-87.733746775964, 44.96922578116], [-87.732911814765, 44.96922578116], [-87.732911814765, 44.969536523475],
109
                ],
110
            ],
111
            [
112
                [
113
                    [-87.646604388524, 44.983665771873], [-87.647042283827, 44.983665771873], [-87.647042283827, 44.983008694531], [-87.646604388524, 44.983008694531], [-87.646604388524, 44.983665771873],
114
                ],
115
            ],
116
            [
117
                [
118
                    [-87.735212417495, 44.969175638569], [-87.73613058523, 44.969175638569], [-87.73613058523, 44.968855470818], [-87.735212417495, 44.968855470818], [-87.735212417495, 44.969175638569],
119
                ],
120
            ],
121
            [
122
                [
123
                    [-87.706667326388, 44.972806245506], [-87.707733411129, 44.972806245506], [-87.707733411129, 44.972567339029], [-87.706667326388, 44.972567339029], [-87.706667326388, 44.972806245506],
124
                ],
125
            ],
126
            [
127
                [
128
                    [-87.647563202847, 44.981475166986], [-87.648170513678, 44.981475166986], [-87.648170513678, 44.980863720383], [-87.647563202847, 44.980863720383], [-87.647563202847, 44.981475166986],
129
                ],
130
            ],
131
            [
132
                [
133
                    [-87.586941411222, 45.077227738726], [-87.587677147652, 45.077227738726], [-87.587677147652, 45.076887993111], [-87.586941411222, 45.076887993111], [-87.586941411222, 45.077227738726],
134
                ],
135
            ],
136
            [
137
                [
138
                    [-87.649962191618, 44.97595778867], [-87.650579719362, 44.97595778867], [-87.650579719362, 44.975605700206], [-87.649962191618, 44.975605700206], [-87.649962191618, 44.97595778867],
139
                ],
140
            ],
141
            [
142
                [
143
                    [-87.731368261538, 44.969895687461], [-87.731770890398, 44.969895687461], [-87.731770890398, 44.969447001114], [-87.731368261538, 44.969447001114], [-87.731368261538, 44.969895687461],
144
                ],
145
            ],
146
            [
147
                [
148
                    [-87.736471674149, 44.968995326526], [-87.737056816447, 44.968995326526], [-87.737056816447, 44.968698349067], [-87.736471674149, 44.968698349067], [-87.736471674149, 44.968995326526],
149
                ],
150
            ],
151
            [
152
                [
153
                    [-87.647085044735, 44.976566311466], [-87.647546513635, 44.976566311466], [-87.647546513635, 44.976176529026], [-87.647085044735, 44.976176529026], [-87.647085044735, 44.976566311466],
154
                ],
155
            ],
156
            [
157
                [
158
                    [-87.73406161392, 44.969313208799], [-87.734657238003, 44.969313208799], [-87.734657238003, 44.969127542095], [-87.73406161392, 44.969127542095], [-87.73406161392, 44.969313208799],
159
                ],
160
            ],
161
            [
162
                [
163
                    [-87.646310259986, 44.976547503268], [-87.646674385044, 44.976547503268], [-87.646674385044, 44.976213245882], [-87.646310259986, 44.976213245882], [-87.646310259986, 44.976547503268],
164
                ],
165
            ],
166
            [
167
                [
168
                    [-87.64893226424, 44.977402231165], [-87.649256123463, 44.977402231165], [-87.649256123463, 44.977007482897], [-87.64893226424, 44.977007482897], [-87.64893226424, 44.977402231165],
169
                ],
170
            ],
171
            [
172
                [
173
                    [-87.705151919803, 44.972867427908], [-87.705717755707, 44.972867427908], [-87.705717755707, 44.972659880629], [-87.705151919803, 44.972659880629], [-87.705151919803, 44.972867427908],
174
                ],
175
            ],
176
            [
177
                [
178
                    [-87.592231154262, 45.082892914656], [-87.592555182303, 45.082892914656], [-87.592555182303, 45.082526193993], [-87.592231154262, 45.082526193993], [-87.592231154262, 45.082892914656],
179
                ],
180
            ],
181
            [
182
                [
183
                    [-87.648826304895, 44.97687141237], [-87.649127126059, 44.97687141237], [-87.649127126059, 44.976520420005], [-87.648826304895, 44.976520420005], [-87.648826304895, 44.97687141237],
184
                ],
185
            ],
186
            [
187
                [
188
                    [-87.732180800291, 44.969793798469], [-87.732705146293, 44.969793798469], [-87.732705146293, 44.969605786976], [-87.732180800291, 44.969605786976], [-87.732180800291, 44.969793798469],
189
                ],
190
            ],
191
            [
192
                [
193
                    [-87.588692383542, 45.078250386701], [-87.588970368605, 45.078250386701], [-87.588970368605, 45.077889316196], [-87.588692383542, 45.077889316196], [-87.588692383542, 45.078250386701],
194
                ],
195
            ],
196
            [
197
                [
198
                    [-87.582144322599, 45.077589369524], [-87.582537749926, 45.077589369524], [-87.582537749926, 45.077265518292], [-87.582144322599, 45.077265518292], [-87.582144322599, 45.077589369524],
199
                ],
200
            ],
201
            [
202
                [
203
                    [-87.70775929961, 44.972998492147], [-87.708260865064, 44.972998492147], [-87.708260865064, 44.972778482561], [-87.70775929961, 44.972778482561], [-87.70775929961, 44.972998492147],
204
                ],
205
            ],
206
            [
207
                [
208
                    [-87.709548798431, 44.972546348239], [-87.710073217238, 44.972546348239], [-87.710073217238, 44.972342743169], [-87.709548798431, 44.972342743169], [-87.709548798431, 44.972546348239],
209
                ],
210
            ],
211
            [
212
                [
213
                    [-87.586297730859, 45.077198802611], [-87.586546844693, 45.077198802611], [-87.586546844693, 45.076831548565], [-87.586297730859, 45.076831548565], [-87.586297730859, 45.077198802611],
214
                ],
215
            ],
216
            [
217
                [
218
                    [-87.592357775029, 45.083067892444], [-87.592749941532, 45.083067892444], [-87.592749941532, 45.082739629329], [-87.592357775029, 45.082739629329], [-87.592357775029, 45.083067892444],
219
                ],
220
            ],
221
            [
222
                [
223
                    [-87.587207375706, 45.079499422625], [-87.587535399093, 45.079499422625], [-87.587535399093, 45.07924274781], [-87.587207375706, 45.07924274781], [-87.587207375706, 45.079499422625],
224
                ],
225
            ],
226
            [
227
                [
228
                    [-87.586464741251, 45.077543637085], [-87.586649508367, 45.077543637085], [-87.586649508367, 45.077297386018], [-87.586464741251, 45.077297386018], [-87.586464741251, 45.077543637085],
229
                ],
230
            ],
231
            [
232
                [
233
                    [-87.592432946993, 45.082556838602], [-87.5927408502, 45.082556838602], [-87.5927408502, 45.082298759539], [-87.592432946993, 45.082298759539], [-87.592432946993, 45.082556838602],
234
                ],
235
            ],
236
            [
237
                [
238
                    [-87.586390376491, 45.076163757043], [-87.586724211146, 45.076163757043], [-87.586724211146, 45.07596797024], [-87.586390376491, 45.07596797024], [-87.586390376491, 45.076163757043],
239
                ],
240
            ],
241
            [
242
                [
243
                    [-87.582443865888, 45.074522938912], [-87.582676305095, 45.074522938912], [-87.582676305095, 45.074370027864], [-87.582443865888, 45.074370027864], [-87.582443865888, 45.074522938912],
244
                ],
245
            ],
246
            [
247
                [
248
                    [-87.588686974911, 45.078529767808], [-87.588904917125, 45.078529767808], [-87.588904917125, 45.078374824423], [-87.588686974911, 45.078374824423], [-87.588686974911, 45.078529767808],
249
                ],
250
            ],
251
            [
252
                [
253
                    [-87.586880885793, 45.078258472801], [-87.587067031862, 45.078258472801], [-87.587067031862, 45.078116334619], [-87.586880885793, 45.078116334619], [-87.586880885793, 45.078258472801],
254
                ],
255
            ],
256
            [
257
                [
258
                    [-87.587487691974, 45.081288415797], [-87.587680821206, 45.081288415797], [-87.587680821206, 45.08118308203], [-87.587487691974, 45.08118308203], [-87.587487691974, 45.081288415797],
259
                ],
260
            ],
261
            [
262
                [
263
                    [-87.586504957649, 45.076798810204], [-87.586667178403, 45.076798810204], [-87.586667178403, 45.076678259632], [-87.586504957649, 45.076678259632], [-87.586504957649, 45.076798810204],
264
                ],
265
            ],
266
            [
267
                [
268
                    [-87.588131149307, 45.082407855577], [-87.588279416757, 45.082407855577], [-87.588279416757, 45.082303688691], [-87.588131149307, 45.082303688691], [-87.588131149307, 45.082407855577],
269
                ],
270
            ],
271
            [
272
                [
273
                    [-87.586517359921, 45.078238239583], [-87.586671414737, 45.078238239583], [-87.586671414737, 45.078134770776], [-87.586517359921, 45.078134770776], [-87.586517359921, 45.078238239583],
274
                ],
275
            ],
276
            [
277
                [
278
                    [-87.587312522062, 45.077446540264], [-87.587443141082, 45.077446540264], [-87.587443141082, 45.07734349156], [-87.587312522062, 45.07734349156], [-87.587312522062, 45.077446540264],
279
                ],
280
            ],
281
            [
282
                [
283
                    [-87.587457487383, 45.079613905931], [-87.587589319781, 45.079613905931], [-87.587589319781, 45.079513292763], [-87.587457487383, 45.079513292763], [-87.587457487383, 45.079613905931],
284
                ],
285
            ],
286
            [
287
                [
288
                    [-87.58686082619, 45.077345250931], [-87.5869630631, 45.077345250931], [-87.5869630631, 45.07724966316], [-87.58686082619, 45.07724966316], [-87.58686082619, 45.077345250931],
289
                ],
290
            ],
291
            [
292
                [
293
                    [-87.587074618274, 45.077374420654], [-87.587189937596, 45.077374420654], [-87.587189937596, 45.077306084409], [-87.587074618274, 45.077306084409], [-87.587074618274, 45.077374420654],
294
                ],
295
            ],
296
            [
297
                [
298
                    [-87.585602238679, 45.075866470588], [-87.585713151917, 45.075866470588], [-87.585713151917, 45.075790816557], [-87.585602238679, 45.075790816557], [-87.585602238679, 45.075866470588],
299
                ],
300
            ],
301
        ];
302
    }
303
}
304