Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -2,23 +2,24 @@
Loading
2 2
3 3
namespace SilverStripe\StaticPublishQueue;
4 4
5 +
use SilverStripe\View\SSViewer;
6 +
use SilverStripe\ORM\DataObject;
7 +
use SilverStripe\View\ArrayData;
8 +
use SilverStripe\Core\CoreKernel;
5 9
use SilverStripe\Control\Director;
6 -
use SilverStripe\Control\HTTPApplication;
7 -
use SilverStripe\Control\HTTPRequestBuilder;
10 +
use SilverStripe\Core\Environment;
11 +
use SilverStripe\View\Requirements;
8 12
use SilverStripe\Control\HTTPResponse;
9 -
use SilverStripe\Control\HTTPResponse_Exception;
13 +
use SilverStripe\ORM\FieldType\DBField;
14 +
use SilverStripe\Control\HTTPApplication;
10 15
use SilverStripe\Core\Config\Configurable;
11 -
use SilverStripe\Core\CoreKernel;
12 16
use SilverStripe\Core\Injector\Injectable;
13 -
use SilverStripe\Core\Manifest\ModuleLoader;
14 -
use SilverStripe\ORM\DataObject;
15 17
use SilverStripe\ORM\FieldType\DBDatetime;
16 -
use SilverStripe\ORM\FieldType\DBField;
17 -
use SilverStripe\StaticPublishQueue\Contract\StaticPublisher;
18 -
use SilverStripe\View\ArrayData;
19 -
use SilverStripe\View\Requirements;
20 18
use SilverStripe\View\Requirements_Backend;
21 -
use SilverStripe\View\SSViewer;
19 +
use SilverStripe\Control\HTTPRequestBuilder;
20 +
use SilverStripe\Core\Manifest\ModuleLoader;
21 +
use SilverStripe\Control\HTTPResponse_Exception;
22 +
use SilverStripe\StaticPublishQueue\Contract\StaticPublisher;
22 23
23 24
abstract class Publisher implements StaticPublisher
24 25
{
@@ -78,6 +79,11 @@
Loading
78 79
            SSViewer::set_themes($rawThemes);
79 80
        }
80 81
        try {
82 +
            $ssl = Environment::getEnv('SS_STATIC_FORCE_SSL');
83 +
            if (is_null($ssl)) {
84 +
                $ssl = $urlParts['scheme'] == 'https' ? true : false;
85 +
            }
86 +
81 87
            // try to add all the server vars that would be needed to create a static cache
82 88
            $request = HTTPRequestBuilder::createFromVariables(
83 89
                [
@@ -85,7 +91,7 @@
Loading
85 91
                        'REQUEST_URI' => isset($urlParts['path']) ? $urlParts['path'] : '',
86 92
                        'REQUEST_METHOD' => 'GET',
87 93
                        'REMOTE_ADDR' => '127.0.0.1',
88 -
                        'HTTPS' => $urlParts['scheme'] == 'https' ? 'on' : 'off',
94 +
                        'HTTPS' => $ssl ? 'on' : 'off',
89 95
                        'QUERY_STRING' => isset($urlParts['query']) ? $urlParts['query'] : '',
90 96
                        'REQUEST_TIME' => DBDatetime::now()->getTimestamp(),
91 97
                        'REQUEST_TIME_FLOAT' => (float)DBDatetime::now()->getTimestamp(),
Files Complexity Coverage
src 131 56.73%
Project Totals (9 files) 131 56.73%
199.3
TRAVIS_PHP_VERSION=7.1
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading