| Conditions | 1 |
| Paths | 1 |
| Total Lines | 57 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
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:
If many parameters/temporary variables are present:
| 1 | <?php |
||
| 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 | ], |
||
| 79 |