@@ -326,7 +326,8 @@
Loading
326 326
327 327
        foreach ($mainModels as $class => $title) {
328 328
            $classInst = Injector::inst()->get($class);
329 -
            if (ClassInfo::hasMethod($classInst, 'isArchiveFieldEnabled')
329 +
            if (
330 +
                ClassInfo::hasMethod($classInst, 'isArchiveFieldEnabled')
330 331
                && $classInst->isArchiveFieldEnabled()
331 332
            ) {
332 333
                $forms->push(ArrayData::create([

@@ -37,7 +37,7 @@
Loading
37 37
38 38
                if ($page && !$this->isEnabled($page)) {
39 39
                    // Injector is not used to prevent an infinite loop
40 -
                    return new CMSPageHistoryController();
40 +
                    return new CMSPageHistoryViewerController();
41 41
                }
42 42
            }
43 43
        }

@@ -26,12 +26,12 @@
Loading
26 26
    /**
27 27
     * @var string
28 28
     */
29 -
    const FORM_NAME_VERSION = 'versionForm';
29 +
    public const FORM_NAME_VERSION = 'versionForm';
30 30
31 31
    /**
32 32
     * @var string
33 33
     */
34 -
    const FORM_NAME_COMPARE = 'compareForm';
34 +
    public const FORM_NAME_COMPARE = 'compareForm';
35 35
36 36
    private static $url_segment = 'historyviewer';
37 37

@@ -25,7 +25,7 @@
Loading
25 25
     *
26 26
     * @var string
27 27
     */
28 -
    const TYPE_HISTORY = 'history';
28 +
    public const TYPE_HISTORY = 'history';
29 29
30 30
    /**
31 31
     * Define context types that will automatically be converted to readonly forms

@@ -29,7 +29,8 @@
Loading
29 29
        $name = $field->getName();
30 30
31 31
        // Do not compare generated security data
32 -
        if (($form = $field->getForm())
32 +
        if (
33 +
            ($form = $field->getForm())
33 34
            && ($securityToken = $form->getSecurityToken())
34 35
            && ($securityTokenName = $securityToken->getName())
35 36
            && $securityTokenName === $name
Files Complexity Coverage
src 143 42.29%
Project Totals (13 files) 143 42.29%
346.3
10=-f0
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