Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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