Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function onAfterInit() |
||
27 | { |
||
28 | $locales = Locale::get()->exclude(['IsGlobalDefault' => true]); |
||
29 | /** @var BaseIndex $owner */ |
||
30 | $owner = $this->owner; |
||
31 | $copyFields = $owner->getCopyFields(); |
||
32 | /** @var Locale $locale */ |
||
33 | foreach ($locales as $locale) { |
||
34 | foreach ($copyFields as $copyField => $values) { |
||
35 | $owner->addCopyField($locale->Locale . $copyField, $values); |
||
36 | } |
||
49 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.