Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 959-967 (lines=9) @@
956
        }
957
    }
958
959
    public static function methodExists($classOrObject, $method, $message = '')
960
    {
961
        if (!method_exists($classOrObject, $method)) {
962
            static::reportInvalidArgument(sprintf(
963
                $message ?: 'Expected the method %s to exist.',
964
                static::valueToString($method)
965
            ));
966
        }
967
    }
968
969
    public static function methodNotExists($classOrObject, $method, $message = '')
970
    {
@@ 969-977 (lines=9) @@
966
        }
967
    }
968
969
    public static function methodNotExists($classOrObject, $method, $message = '')
970
    {
971
        if (method_exists($classOrObject, $method)) {
972
            static::reportInvalidArgument(sprintf(
973
                $message ?: 'Expected the method %s to not exist.',
974
                static::valueToString($method)
975
            ));
976
        }
977
    }
978
979
    public static function keyExists($array, $key, $message = '')
980
    {