Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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