Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 777-785 (lines=9) @@
774
        }
775
    }
776
777
    public static function methodExists($classOrObject, $method, $message = '')
778
    {
779
        if (!method_exists($classOrObject, $method)) {
780
            static::reportInvalidArgument(sprintf(
781
                $message ?: 'Expected the method %s to exist.',
782
                static::valueToString($method)
783
            ));
784
        }
785
    }
786
787
    public static function methodNotExists($classOrObject, $method, $message = '')
788
    {
@@ 787-795 (lines=9) @@
784
        }
785
    }
786
787
    public static function methodNotExists($classOrObject, $method, $message = '')
788
    {
789
        if (method_exists($classOrObject, $method)) {
790
            static::reportInvalidArgument(sprintf(
791
                $message ?: 'Expected the method %s to not exist.',
792
                static::valueToString($method)
793
            ));
794
        }
795
    }
796
797
    public static function keyExists($array, $key, $message = '')
798
    {