Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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