Passed
Push — master ( b91912...ff5896 )
by Robbie
07:30 queued 10s
created

ElementalLeftAndMainExtension::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace DNADesign\Elemental\Extensions;
4
5
use SilverStripe\Core\Extension;
6
use SilverStripe\View\Requirements;
7
8
class ElementalLeftAndMainExtension extends Extension
9
{
10
11
    public function init()
12
    {
13
        Requirements::add_i18n_javascript('dnadesign/silverstripe-elemental:client/lang');
0 ignored issues
show
Deprecated Code introduced by Werner M. Krauß
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

13
        /** @scrutinizer ignore-deprecated */ Requirements::add_i18n_javascript('dnadesign/silverstripe-elemental:client/lang');
Loading history...
14
    }
15
}
16