Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 887-895 (lines=9) @@
884
        }
885
    }
886
887
    public static function methodExists($classOrObject, $method, $message = '')
888
    {
889
        if (!method_exists($classOrObject, $method)) {
890
            static::reportInvalidArgument(sprintf(
891
                $message ?: 'Expected the method %s to exist.',
892
                static::valueToString($method)
893
            ));
894
        }
895
    }
896
897
    public static function methodNotExists($classOrObject, $method, $message = '')
898
    {
@@ 897-905 (lines=9) @@
894
        }
895
    }
896
897
    public static function methodNotExists($classOrObject, $method, $message = '')
898
    {
899
        if (method_exists($classOrObject, $method)) {
900
            static::reportInvalidArgument(sprintf(
901
                $message ?: 'Expected the method %s to not exist.',
902
                static::valueToString($method)
903
            ));
904
        }
905
    }
906
907
    public static function keyExists($array, $key, $message = '')
908
    {