Passed
Push — master ( 0a000c...cb48e6 )
by Nicolaas
04:03
created

LeftAndMainExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 2
c 1
b 1
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 3 1
1
<?php
2
3
namespace Sunnysideup\CMSNiceties\Extensions;
4
5
use SilverStripe\Admin\LeftAndMain;
6
use SilverStripe\Core\Extension;
7
use SilverStripe\View\Requirements;
8
9
/**
10
 * Class \Sunnysideup\CMSNiceties\Extensions\LeftAndMainExtension.
11
 *
12
 * @property LeftAndMain|LeftAndMainExtension $owner
13
 */
14
class LeftAndMainExtension extends Extension
15
{
16
    public function init()
17
    {
18
        Requirements::add_i18n_javascript('sunnysideup/cms-niceties: client/lang');
0 ignored issues
show
Deprecated Code introduced by
The function SilverStripe\View\Requir...::add_i18n_javascript() has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

18
        /** @scrutinizer ignore-deprecated */ Requirements::add_i18n_javascript('sunnysideup/cms-niceties: client/lang');
Loading history...
19
    }
20
}
21