Code Duplication    Length = 9-9 lines in 2 locations

src/Assert.php 2 locations

@@ 941-949 (lines=9) @@
938
        }
939
    }
940
941
    public static function methodExists($classOrObject, $method, $message = '')
942
    {
943
        if (!method_exists($classOrObject, $method)) {
944
            static::reportInvalidArgument(sprintf(
945
                $message ?: 'Expected the method %s to exist.',
946
                static::valueToString($method)
947
            ));
948
        }
949
    }
950
951
    public static function methodNotExists($classOrObject, $method, $message = '')
952
    {
@@ 951-959 (lines=9) @@
948
        }
949
    }
950
951
    public static function methodNotExists($classOrObject, $method, $message = '')
952
    {
953
        if (method_exists($classOrObject, $method)) {
954
            static::reportInvalidArgument(sprintf(
955
                $message ?: 'Expected the method %s to not exist.',
956
                static::valueToString($method)
957
            ));
958
        }
959
    }
960
961
    public static function keyExists($array, $key, $message = '')
962
    {