• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / Yoast-SEO-for-TYPO3 / 13327579701

14 Feb 2025 10:43AM UTC coverage: 1.276%. First build
13327579701

push

github

web-flow
Merge pull request #597 from Yoast/feature/v11

[FEATURE] Release 11.0.0

21 of 894 new or added lines in 76 files covered. (2.35%)

35 of 2744 relevant lines covered (1.28%)

0.04 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Classes/Service/Preview/HttpOptionSetter.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace YoastSeoForTypo3\YoastSeo\Service\Preview;
6

7
class HttpOptionSetter
8
{
9
    public function setHttpOptions(): void
10
    {
NEW
11
        $GLOBALS['TYPO3_CONF_VARS']['HTTP']['verify'] = false;
×
NEW
12
        if (!isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['yoast_seo']['previewSettings']['basicAuth'])) {
×
NEW
13
            return;
×
14
        }
15

NEW
16
        $basicAuth = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['yoast_seo']['previewSettings']['basicAuth'];
×
NEW
17
        if (!is_array($basicAuth) || !isset($basicAuth['username'], $basicAuth['password'])) {
×
NEW
18
            return;
×
19
        }
20

NEW
21
        if (!empty($basicAuth['username']) && !empty($basicAuth['password'])) {
×
NEW
22
            $GLOBALS['TYPO3_CONF_VARS']['HTTP']['auth'] = [
×
NEW
23
                $basicAuth['username'],
×
NEW
24
                $basicAuth['password'],
×
NEW
25
            ];
×
26
        }
27
    }
28
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc