Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 1002-1010 (lines=9) @@
999
        }
1000
    }
1001
1002
    public static function methodExists($classOrObject, $method, $message = '')
1003
    {
1004
        if (!method_exists($classOrObject, $method)) {
1005
            static::reportInvalidArgument(sprintf(
1006
                $message ?: 'Expected the method %s to exist.',
1007
                static::valueToString($method)
1008
            ));
1009
        }
1010
    }
1011
1012
    public static function methodNotExists($classOrObject, $method, $message = '')
1013
    {
@@ 1012-1020 (lines=9) @@
1009
        }
1010
    }
1011
1012
    public static function methodNotExists($classOrObject, $method, $message = '')
1013
    {
1014
        if (method_exists($classOrObject, $method)) {
1015
            static::reportInvalidArgument(sprintf(
1016
                $message ?: 'Expected the method %s to not exist.',
1017
                static::valueToString($method)
1018
            ));
1019
        }
1020
    }
1021
1022
    public static function keyExists($array, $key, $message = '')
1023
    {