Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 869-877 (lines=9) @@
866
        }
867
    }
868
869
    public static function methodExists($classOrObject, $method, $message = '')
870
    {
871
        if (!method_exists($classOrObject, $method)) {
872
            static::reportInvalidArgument(sprintf(
873
                $message ?: 'Expected the method %s to exist.',
874
                static::valueToString($method)
875
            ));
876
        }
877
    }
878
879
    public static function methodNotExists($classOrObject, $method, $message = '')
880
    {
@@ 879-887 (lines=9) @@
876
        }
877
    }
878
879
    public static function methodNotExists($classOrObject, $method, $message = '')
880
    {
881
        if (method_exists($classOrObject, $method)) {
882
            static::reportInvalidArgument(sprintf(
883
                $message ?: 'Expected the method %s to not exist.',
884
                static::valueToString($method)
885
            ));
886
        }
887
    }
888
889
    public static function keyExists($array, $key, $message = '')
890
    {