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

ElementalLeftAndMainExtension   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 3 1
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