Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 852-860 (lines=9) @@
849
        }
850
    }
851
852
    public static function methodExists($classOrObject, $method, $message = '')
853
    {
854
        if (!method_exists($classOrObject, $method)) {
855
            static::reportInvalidArgument(sprintf(
856
                $message ?: 'Expected the method %s to exist.',
857
                static::valueToString($method)
858
            ));
859
        }
860
    }
861
862
    public static function methodNotExists($classOrObject, $method, $message = '')
863
    {
@@ 862-870 (lines=9) @@
859
        }
860
    }
861
862
    public static function methodNotExists($classOrObject, $method, $message = '')
863
    {
864
        if (method_exists($classOrObject, $method)) {
865
            static::reportInvalidArgument(sprintf(
866
                $message ?: 'Expected the method %s to not exist.',
867
                static::valueToString($method)
868
            ));
869
        }
870
    }
871
872
    public static function keyExists($array, $key, $message = '')
873
    {