Code Duplication    Length = 7-7 lines in 2 locations

Assert.php 2 locations

@@ 23-29 (lines=7) @@
20
     * @param float  $value
21
     * @param string $message
22
     */
23
    public static function latitude($value, string $message = '')
24
    {
25
        self::float($value, $message);
26
        if ($value < -90 || $value > 90) {
27
            throw new InvalidArgument(sprintf($message ?: 'Latitude should be between -90 and 90. Got: %s', $value));
28
        }
29
    }
30
31
    /**
32
     * @param float  $value
@@ 35-41 (lines=7) @@
32
     * @param float  $value
33
     * @param string $message
34
     */
35
    public static function longitude($value, string $message = '')
36
    {
37
        self::float($value, $message);
38
        if ($value < -180 || $value > 180) {
39
            throw new InvalidArgument(sprintf($message ?: 'Longitude should be between -180 and 180. Got: %s', $value));
40
        }
41
    }
42
43
    /**
44
     * @param mixed  $value