Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 1008-1016 (lines=9) @@
1005
        }
1006
    }
1007
1008
    public static function keyExists($array, $key, $message = '')
1009
    {
1010
        if (!(isset($array[$key]) || array_key_exists($key, $array))) {
1011
            static::reportInvalidArgument(sprintf(
1012
                $message ?: 'Expected the key %s to exist.',
1013
                static::valueToString($key)
1014
            ));
1015
        }
1016
    }
1017
1018
    public static function keyNotExists($array, $key, $message = '')
1019
    {
@@ 1018-1026 (lines=9) @@
1015
        }
1016
    }
1017
1018
    public static function keyNotExists($array, $key, $message = '')
1019
    {
1020
        if (isset($array[$key]) || array_key_exists($key, $array)) {
1021
            static::reportInvalidArgument(sprintf(
1022
                $message ?: 'Expected the key %s to not exist.',
1023
                static::valueToString($key)
1024
            ));
1025
        }
1026
    }
1027
1028
    public static function count($array, $number, $message = '')
1029
    {