Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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