Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 1 | Features | 1 |
1 | <?php namespace StudioBonito\SilverStripe\GoogleAnalytics\Extensions; |
||
28 | 3 | public function updateCMSFields(FieldList $fields) |
|
29 | { |
||
30 | 3 | $fields->addFieldsToTab( |
|
31 | 3 | 'Root.Services.GoogleAnalytics', |
|
32 | array( |
||
33 | 3 | $trackingIdTextField = new TextField( |
|
34 | 3 | 'GoogleAnalyticsTrackingID', |
|
35 | 3 | _t('GoogleAnalytics.TRACKINGID', 'Tracking ID') |
|
36 | 3 | ) |
|
37 | 3 | ) |
|
38 | 3 | ); |
|
39 | |||
40 | 3 | $trackingIdTextField->setDescription(_t('GoogleAnalytics.TRACKINGID_DESC', 'e.g. \'UA-12345678-1\'')); |
|
41 | } |
||
42 | } |
This check marks private properties in classes that are never used. Those properties can be removed.