Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 785-793 (lines=9) @@
782
        }
783
    }
784
785
    public static function methodExists($classOrObject, $method, $message = '')
786
    {
787
        if (!method_exists($classOrObject, $method)) {
788
            static::reportInvalidArgument(sprintf(
789
                $message ?: 'Expected the method %s to exist.',
790
                static::valueToString($method)
791
            ));
792
        }
793
    }
794
795
    public static function methodNotExists($classOrObject, $method, $message = '')
796
    {
@@ 795-803 (lines=9) @@
792
        }
793
    }
794
795
    public static function methodNotExists($classOrObject, $method, $message = '')
796
    {
797
        if (method_exists($classOrObject, $method)) {
798
            static::reportInvalidArgument(sprintf(
799
                $message ?: 'Expected the method %s to not exist.',
800
                static::valueToString($method)
801
            ));
802
        }
803
    }
804
805
    public static function keyExists($array, $key, $message = '')
806
    {