Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 1011-1019 (lines=9) @@
1008
        }
1009
    }
1010
1011
    public static function methodExists($classOrObject, $method, $message = '')
1012
    {
1013
        if (!method_exists($classOrObject, $method)) {
1014
            static::reportInvalidArgument(sprintf(
1015
                $message ?: 'Expected the method %s to exist.',
1016
                static::valueToString($method)
1017
            ));
1018
        }
1019
    }
1020
1021
    public static function methodNotExists($classOrObject, $method, $message = '')
1022
    {
@@ 1021-1029 (lines=9) @@
1018
        }
1019
    }
1020
1021
    public static function methodNotExists($classOrObject, $method, $message = '')
1022
    {
1023
        if (method_exists($classOrObject, $method)) {
1024
            static::reportInvalidArgument(sprintf(
1025
                $message ?: 'Expected the method %s to not exist.',
1026
                static::valueToString($method)
1027
            ));
1028
        }
1029
    }
1030
1031
    public static function keyExists($array, $key, $message = '')
1032
    {