src/Validators/StatusCodes.php
public function validate(string ...$urls): ResultInterface
    {
        $messages = array_filter(
            array_map(function (string $url): ?string {
                return $this->getMessage($url);
            }, $urls)
        );

        return $this->report(...$messages);
    }
public function validate(string ...$urls): ResultInterface
    {
        $messages = array_filter(
            array_map(function (string $url): ?string {
                return $this->getMessage($url);
            }, $urls)
        );

        return $this->report(...$messages);
    }
public function validate ( string ... $ urls ) : ResultInterface { $ messages = array_filter ( array_map ( function ( string $ url ) : ? string { return $ this -> getMessage ( $ url ) ; } , $ urls ) ) ; return $ this -> report ( ... $ messages ) ; }
Validates URLs return expected status code.

@param string ...$urls Urls to be checked.

@return ResultInterface
Validates URLs return expected status code .