Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 839-847 (lines=9) @@
836
        }
837
    }
838
839
    public static function methodExists($classOrObject, $method, $message = '')
840
    {
841
        if (!method_exists($classOrObject, $method)) {
842
            static::reportInvalidArgument(sprintf(
843
                $message ?: 'Expected the method %s to exist.',
844
                static::valueToString($method)
845
            ));
846
        }
847
    }
848
849
    public static function methodNotExists($classOrObject, $method, $message = '')
850
    {
@@ 849-857 (lines=9) @@
846
        }
847
    }
848
849
    public static function methodNotExists($classOrObject, $method, $message = '')
850
    {
851
        if (method_exists($classOrObject, $method)) {
852
            static::reportInvalidArgument(sprintf(
853
                $message ?: 'Expected the method %s to not exist.',
854
                static::valueToString($method)
855
            ));
856
        }
857
    }
858
859
    public static function keyExists($array, $key, $message = '')
860
    {