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

Extent1349::__invoke()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 272
Code Lines 55

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1.037

Importance

Changes 0
Metric Value
cc 1
eloc 55
nc 1
nop 0
dl 0
loc 272
ccs 2
cts 3
cp 0.6667
crap 1.037
rs 8.9818
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/North America - NAD27.
13
 * @internal
14
 */
15
class Extent1349
16
{
17 8
    public function __invoke(): array
18
    {
19
        return
20
        [
21
            [
22
                [
23 8
                    [-81.542521176293, 7.6891491100854], [-81.924630690547, 7.6891491100854], [-81.924630690547, 7.268354947453], [-81.542521176293, 7.268354947453], [-81.542521176293, 7.6891491100854],
24
                ],
25
            ],
26
            [
27
                [
28
                    [-78.781847925669, 8.5137458080606], [-79.010690090626, 8.5137458080606], [-79.010690090626, 8.2206967894493], [-78.781847925669, 8.2206967894493], [-78.781847925669, 8.5137458080606],
29
                ],
30
            ],
31
            [
32
                [
33
                    [-86.212754271182, 16.485944768305], [-86.684970590137, 16.485944768305], [-86.684970590137, 16.220144758943], [-86.212754271182, 16.220144758943], [-86.212754271182, 16.485944768305],
34
                ],
35
            ],
36
            [
37
                [
38
                    [-61.616474493116, 17.214155605589], [-61.941607192222, 17.214155605589], [-61.941607192222, 16.941125586707], [-61.616474493116, 16.941125586707], [-61.616474493116, 17.214155605589],
39
                ],
40
            ],
41
            [
42
                [
43
                    [-87.728585041559, 17.599182250398], [-87.986896220851, 17.599182250398], [-87.986896220851, 17.224840931062], [-87.728585041559, 17.224840931062], [-87.728585041559, 17.599182250398],
44
                ],
45
            ],
46
            [
47
                [
48
                    [-61.678497557179, 17.772903579618], [-61.925327657817, 17.772903579618], [-61.925327657817, 17.49196069931], [-61.678497557179, 17.49196069931], [-61.678497557179, 17.772903579618],
49
                ],
50
            ],
51
            [
52
                [
53
                    [-64.511770248413, 17.841344833374], [-64.946893692017, 17.841344833374], [-64.946893692017, 17.627809524536], [-64.511770248413, 17.627809524536], [-64.511770248413, 17.841344833374],
54
                ],
55
            ],
56
            [
57
                [
58
                    [-67.828320855315, 18.140553893191], [-67.964708119677, 18.140553893191], [-67.964708119677, 18.033837276611], [-67.828320855315, 18.033837276611], [-67.828320855315, 18.140553893191],
59
                ],
60
            ],
61
            [
62
                [
63
                    [-65.250145883768, 18.213488502861], [-65.629925588668, 18.213488502861], [-65.629925588668, 18.034137571316], [-65.250145883768, 18.034137571316], [-65.250145883768, 18.213488502861],
64
                ],
65
            ],
66
            [
67
                [
68
                    [-65.195683527659, 18.377363138602], [-65.372741461718, 18.377363138602], [-65.372741461718, 18.253867038336], [-65.195683527659, 18.253867038336], [-65.195683527659, 18.377363138602],
69
                ],
70
            ],
71
            [
72
                [
73
                    [-64.27379868985, 18.561816058163], [-65.089876235164, 18.561816058163], [-65.089876235164, 18.246569250502], [-64.27379868985, 18.246569250502], [-64.27379868985, 18.561816058163],
74
                ],
75
            ],
76
            [
77
                [
78
                    [-65.551771544836, 18.568502441581], [-67.317513025429, 18.568502441581], [-67.317513025429, 17.873236377703], [-65.551771544836, 17.873236377703], [-65.551771544836, 18.568502441581],
79
                ],
80
            ],
81
            [
82
                [
83
                    [-64.250663003074, 18.77198985672], [-64.432394034159, 18.77198985672], [-64.432394034159, 18.667264842612], [-64.250663003074, 18.667264842612], [-64.250663003074, 18.77198985672],
84
                ],
85
            ],
86
            [
87
                [
88
                    [-110.85883560519, 18.916067749317], [-111.12437762719, 18.916067749317], [-111.12437762719, 18.666283618298], [-110.85883560519, 18.666283618298], [-110.85883560519, 18.916067749317],
89
                ],
90
            ],
91
            [
92
                [
93
                    [-106.27595847159, 21.765826829331], [-106.6985957424, 21.765826829331], [-106.6985957424, 21.369711865771], [-106.27595847159, 21.369711865771], [-106.27595847159, 21.765826829331],
94
                ],
95
            ],
96
            [
97
                [
98
                    [-109.72911884549, 24.416513609137], [-109.97821883757, 24.416513609137], [-109.97821883757, 24.082086622527], [-109.72911884549, 24.082086622527], [-109.72911884549, 24.416513609137],
99
                ],
100
            ],
101
            [
102
                [
103
                    [-115.08696078982, 28.420106361365], [-115.38041007212, 28.420106361365], [-115.38041007212, 27.975158741178], [-115.08696078982, 27.975158741178], [-115.08696078982, 28.420106361365],
104
                ],
105
            ],
106
            [
107
                [
108
                    [-118.1811200244, 29.243235673454], [-118.46079431337, 29.243235673454], [-118.46079431337, 28.831753817254], [-118.1811200244, 28.831753817254], [-118.1811200244, 29.243235673454],
109
                ],
110
            ],
111
            [
112
                [
113
                    [-113.06849321871, 29.635617388037], [-113.65747352001, 29.635617388037], [-113.65747352001, 28.968102080317], [-113.06849321871, 28.968102080317], [-113.06849321871, 29.635617388037],
114
                ],
115
            ],
116
            [
117
                [
118
                    [-130.91155451651, 54.224029872093], [-133.22252313924, 54.224029872093], [-133.22252313924, 51.894748466686], [-130.91155451651, 51.894748466686], [-130.91155451651, 54.224029872093],
119
                ],
120
            ],
121
            [
122
                [
123
                    [-111.37206875166, 68.360508886693], [-111.90867408135, 68.360508886693], [-111.90867408135, 68.170875451572], [-111.37206875166, 68.170875451572], [-111.37206875166, 68.360508886693],
124
                ],
125
            ],
126
            [
127
                [
128
                    [-101.54924970877, 68.873921368634], [-102.44781021053, 68.873921368634], [-102.44781021053, 68.516909649256], [-101.54924970877, 68.516909649256], [-101.54924970877, 68.873921368634],
129
                ],
130
            ],
131
            [
132
                [
133
                    [-99.843756817374, 69.180062601839], [-100.76468011722, 69.180062601839], [-100.76468011722, 68.658239435698], [-99.843756817374, 68.658239435698], [-99.843756817374, 69.180062601839],
134
                ],
135
            ],
136
            [
137
                [
138
                    [-97.090564044548, 70.012846058855], [-97.631198519047, 70.012846058855], [-97.631198519047, 69.802676891878], [-97.090564044548, 69.802676891878], [-97.090564044548, 70.012846058855],
139
                ],
140
            ],
141
            [
142
                [
143
                    [-100.07563602631, 70.726155126364], [-100.82422993183, 70.726155126364], [-100.82422993183, 70.399355375367], [-100.07563602631, 70.399355375367], [-100.07563602631, 70.726155126364],
144
                ],
145
            ],
146
            [
147
                [
148
                    [-107.41774777955, 73.673968867008], [-108.24878557551, 73.673968867008], [-108.24878557551, 73.489878671591], [-107.41774777955, 73.489878671591], [-107.41774777955, 73.673968867008],
149
                ],
150
            ],
151
            [
152
                [
153
                    [-100.73202993908, 73.812681049509], [-119.28746747044, 73.812681049509], [-119.28746747044, 68.4034411858], [-100.73202993908, 68.4034411858], [-100.73202993908, 73.812681049509],
154
                ],
155
            ],
156
            [
157
                [
158
                    [-96.143819059208, 74.169212095123], [-102.92336287712, 74.169212095123], [-102.92336287712, 71.22046105438], [-96.143819059208, 71.22046105438], [-96.143819059208, 74.169212095123],
159
                ],
160
            ],
161
            [
162
                [
163
                    [-98.339916929127, 74.392269462124], [-99.033161833477, 74.392269462124], [-99.033161833477, 74.248249917918], [-98.339916929127, 74.248249917918], [-98.339916929127, 74.392269462124],
164
                ],
165
            ],
166
            [
167
                [
168
                    [-115.1522106333, 74.599827382936], [-126.13732656016, 74.599827382936], [-126.13732656016, 71.030918336009], [-115.1522106333, 71.030918336009], [-115.1522106333, 74.599827382936],
169
                ],
170
            ],
171
            [
172
                [
173
                    [-97.083327790838, 74.679205293633], [-97.966089634503, 74.679205293633], [-97.966089634503, 74.405208755275], [-97.083327790838, 74.405208755275], [-97.083327790838, 74.679205293633],
174
                ],
175
            ],
176
            [
177
                [
178
                    [-95.072471616729, 74.693136853421], [-96.037712358841, 74.693136853421], [-96.037712358841, 74.446278601322], [-95.072471616729, 74.446278601322], [-95.072471616729, 74.693136853421],
179
                ],
180
            ],
181
            [
182
                [
183
                    [-103.40411713953, 75.485201425216], [-105.0401281209, 75.485201425216], [-105.0401281209, 74.968378674109], [-103.40411713953, 74.968378674109], [-103.40411713953, 75.485201425216],
184
                ],
185
            ],
186
            [
187
                [
188
                    [-94.09814103342, 76.035905330907], [-95.09691543902, 76.035905330907], [-95.09691543902, 75.696011500524], [-94.09814103342, 75.696011500524], [-94.09814103342, 76.035905330907],
189
                ],
190
            ],
191
            [
192
                [
193
                    [-117.27160957234, 76.166763755148], [-119.59727083698, 76.166763755148], [-119.59727083698, 75.447424076127], [-117.27160957234, 75.447424076127], [-117.27160957234, 76.166763755148],
194
                ],
195
            ],
196
            [
197
                [
198
                    [-78.603684266794, 76.170463270582], [-79.944349741719, 76.170463270582], [-79.944349741719, 75.761396508016], [-78.603684266794, 75.761396508016], [-78.603684266794, 76.170463270582],
199
                ],
200
            ],
201
            [
202
                [
203
                    [-94.637331269486, 76.18645987771], [-95.338174764167, 76.18645987771], [-95.338174764167, 75.997675646234], [-94.637331269486, 75.997675646234], [-94.637331269486, 76.18645987771],
204
                ],
205
            ],
206
            [
207
                [
208
                    [-93.22709047006, 76.806968015747], [-104.86264591763, 76.806968015747], [-104.86264591763, 74.571561907797], [-93.22709047006, 74.571561907797], [-93.22709047006, 76.806968015747],
209
                ],
210
            ],
211
            [
212
                [
213
                    [-105.20152220725, 76.906982643169], [-117.86285031721, 76.906982643169], [-117.86285031721, 74.348185788726], [-105.20152220725, 74.348185788726], [-105.20152220725, 76.906982643169],
214
                ],
215
            ],
216
            [
217
                [
218
                    [-113.2467488609, 76.940903075415], [-115.07998110626, 76.940903075415], [-115.07998110626, 76.654368686275], [-113.2467488609, 76.654368686275], [-113.2467488609, 76.940903075415],
219
                ],
220
            ],
221
            [
222
                [
223
                    [-113.45256700432, 77.201725810428], [-114.13953207599, 77.201725810428], [-114.13953207599, 77.054907111406], [-113.45256700432, 77.054907111406], [-113.45256700432, 77.201725810428],
224
                ],
225
            ],
226
            [
227
                [
228
                    [-94.997541398826, 77.294227499831], [-95.844244737803, 77.294227499831], [-95.844244737803, 77.114352317094], [-94.997541398826, 77.114352317094], [-94.997541398826, 77.294227499831],
229
                ],
230
            ],
231
            [
232
                [
233
                    [-115.17652268412, 77.599333117105], [-123.23509813465, 77.599333117105], [-123.23509813465, 75.675941644494], [-115.17652268412, 75.675941644494], [-115.17652268412, 77.599333117105],
234
                ],
235
            ],
236
            [
237
                [
238
                    [-89.426739789272, 77.704208046663], [-91.50879221507, 77.704208046663], [-91.50879221507, 77.087162370725], [-89.426739789272, 77.087162370725], [-89.426739789272, 77.704208046663],
239
                ],
240
            ],
241
            [
242
                [
243
                    [-47.743430543984, 77.755761391272], [-192.34928894043, 77.755761391272], [-192.34928894043, 7.1561746674648], [-47.743430543984, 7.1561746674648], [-47.743430543984, 77.755761391272],
244
                ],
245
            ],
246
            [
247
                [
248
                    [-103.79042384456, 77.812092491793], [-106.3103950633, 77.812092491793], [-106.3103950633, 77.022554583125], [-103.79042384456, 77.022554583125], [-103.79042384456, 77.812092491793],
249
                ],
250
            ],
251
            [
252
                [
253
                    [-92.887768909953, 77.857825252316], [-96.544497809839, 77.857825252316], [-96.544497809839, 77.383524891703], [-92.887768909953, 77.383524891703], [-92.887768909953, 77.857825252316],
254
                ],
255
            ],
256
            [
257
                [
258
                    [-100.70883306545, 77.95135720416], [-102.74956086271, 77.95135720416], [-102.74956086271, 77.626391209983], [-100.70883306545, 77.626391209983], [-100.70883306545, 77.95135720416],
259
                ],
260
            ],
261
            [
262
                [
263
                    [-109.35893412213, 78.160223973303], [-115.33670633367, 78.160223973303], [-115.33670633367, 77.273715393843], [-109.35893412213, 77.273715393843], [-109.35893412213, 78.160223973303],
264
                ],
265
            ],
266
            [
267
                [
268
                    [-109.02559402573, 78.808006766663], [-113.56374633156, 78.808006766663], [-113.56374633156, 78.217586227277], [-109.02559402573, 78.217586227277], [-109.02559402573, 78.808006766663],
269
                ],
270
            ],
271
            [
272
                [
273
                    [-94.082556834823, 78.868651381235], [-98.642076758486, 78.868651381235], [-98.642076758486, 77.737423143282], [-94.082556834823, 77.737423143282], [-94.082556834823, 78.868651381235],
274
                ],
275
            ],
276
            [
277
                [
278
                    [-98.722401330847, 79.418526438756], [-105.8700877757, 79.418526438756], [-105.8700877757, 77.728830730678], [-98.722401330847, 77.728830730678], [-98.722401330847, 79.418526438756],
279
                ],
280
            ],
281
            [
282
                [
283
                    [-98.385047229622, 80.20030013193], [-100.45831258738, 80.20030013193], [-100.45831258738, 79.614660269582], [-98.385047229622, 79.614660269582], [-98.385047229622, 80.20030013193],
284
                ],
285
            ],
286
            [
287
                [
288
                    [-60.725126850261, 83.16267232269], [-97.67905402451, 83.16267232269], [-97.67905402451, 74.407400211037], [-60.725126850261, 74.407400211037], [-60.725126850261, 83.16267232269],
289
                ],
290
            ],
291
        ];
292
    }
293
}
294