Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
44 | public function attributeLabels() |
||
45 | { |
||
46 | $labels = parent::attributeLabels(); |
||
47 | $trackerTypeLabels = [ |
||
48 | TrackerType::ACCOUNT => [ |
||
49 | 'names' => 'Accounts', |
||
50 | ], |
||
51 | TrackerType::TAG => [ |
||
52 | 'names' => 'Tags', |
||
53 | ], |
||
54 | ]; |
||
55 | |||
56 | return ArrayHelper::merge($labels, ArrayHelper::getValue($trackerTypeLabels, $this->scenario, [])); |
||
57 | } |
||
71 | } |