Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 826-834 (lines=9) @@
823
        }
824
    }
825
826
    public static function methodExists($classOrObject, $method, $message = '')
827
    {
828
        if (!method_exists($classOrObject, $method)) {
829
            static::reportInvalidArgument(sprintf(
830
                $message ?: 'Expected the method %s to exist.',
831
                static::valueToString($method)
832
            ));
833
        }
834
    }
835
836
    public static function methodNotExists($classOrObject, $method, $message = '')
837
    {
@@ 836-844 (lines=9) @@
833
        }
834
    }
835
836
    public static function methodNotExists($classOrObject, $method, $message = '')
837
    {
838
        if (method_exists($classOrObject, $method)) {
839
            static::reportInvalidArgument(sprintf(
840
                $message ?: 'Expected the method %s to not exist.',
841
                static::valueToString($method)
842
            ));
843
        }
844
    }
845
846
    public static function keyExists($array, $key, $message = '')
847
    {