Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

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