Passed
Push — master ( 1c4ceb...50b2e6 )
by Doug
44:53
created

Extent4616::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 57
Code Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 12
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 57
rs 9.8666

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
 * Europe-FSU/UK - Great Britain onshore; Isle of Man.
13
 * @internal
14
 */
15
class Extent4616
16
{
17
    public function __invoke(): array
18
    {
19
        return
20
        [
21
            [
22
                [
23
                    [-6.1155071393363, 50.094507935654], [-6.5529959019099, 50.094507935654], [-6.5529959019099, 49.815037348282], [-6.1155071393363, 49.815037348282], [-6.1155071393363, 50.094507935654],
24
                ],
25
            ],
26
            [
27
                [
28
                    [-4.1657989462362, 54.4856967817], [-4.9532261463896, 54.4856967817], [-4.9532261463896, 54.014583683853], [-4.1657989462362, 54.014583683853], [-4.1657989462362, 54.4856967817],
29
                ],
30
            ],
31
            [
32
                [
33
                    [-8.4153510827661, 57.918520578339], [-8.6861861839429, 57.918520578339], [-8.6861861839429, 57.714042802463], [-8.4153510827661, 57.714042802463], [-8.4153510827661, 57.918520578339],
34
                ],
35
            ],
36
            [
37
                [
38
                    [-7.4155244713965, 58.385145297537], [-7.7696749080438, 58.385145297537], [-7.7696749080438, 58.197333408905], [-7.4155244713965, 58.197333408905], [-7.4155244713965, 58.385145297537],
39
                ],
40
            ],
41
            [
42
                [
43
                    [-6.015714136928, 58.610142511616], [-7.8529620080481, 58.610142511616], [-7.8529620080481, 56.730851001136], [-6.015714136928, 56.730851001136], [-6.015714136928, 58.610142511616],
44
                ],
45
            ],
46
            [
47
                [
48
                    [-4.2493383922157, 59.168448303124], [-4.5701667742384, 59.168448303124], [-4.5701667742384, 58.997299694988], [-4.2493383922157, 58.997299694988], [-4.2493383922157, 59.168448303124],
49
                ],
50
            ],
51
            [
52
                [
53
                    [-5.6658257632783, 59.210079439204], [-5.9866507674789, 59.210079439204], [-5.9866507674789, 59.038931559673], [-5.6658257632783, 59.038931559673], [-5.6658257632783, 59.210079439204],
54
                ],
55
            ],
56
            [
57
                [
58
                    [1.9002468741098, 59.485109788093], [-7.152990162742, 59.485109788093], [-7.152990162742, 49.865033270393], [1.9002468741098, 49.865033270393], [1.9002468741098, 59.485109788093],
59
                ],
60
            ],
61
            [
62
                [
63
                    [-1.4497418155776, 59.635109379205], [-1.8205641955219, 59.635109379205], [-1.8205641955219, 59.430630158382], [-1.4497418155776, 59.430630158382], [-1.4497418155776, 59.635109379205],
64
                ],
65
            ],
66
            [
67
                [
68
                    [-1.9163990097398, 60.243367273649], [-2.2705550554994, 60.243367273649], [-2.2705550554994, 60.030554930301], [-1.9163990097398, 60.030554930301], [-1.9163990097398, 60.243367273649],
69
                ],
70
            ],
71
            [
72
                [
73
                    [-0.56660295858671, 60.926651214189], [-1.887288096732, 60.926651214189], [-1.887288096732, 59.772266548621], [-0.56660295858671, 59.772266548621], [-0.56660295858671, 60.926651214189],
74
                ],
75
            ],
76
        ];
77
    }
78
}
79