| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 52 | public function getBundleKeyLabels() |
||
| 53 | { |
||
| 54 | // Previously we made 'vocabulary_machine_name' available as a more |
||
| 55 | // human-friendly alternative to 'vid' for the bundle field identifier. |
||
| 56 | // This is now unnecessary as the label 'vocabulary' is available |
||
| 57 | // automatically, but it is supported here for backwards-compatibility. |
||
| 58 | $bundleKeyLabels = parent::getBundleKeyLabels(); |
||
| 59 | $bundleKeyLabels[] = 'vocabulary_machine_name'; |
||
| 60 | return $bundleKeyLabels; |
||
| 61 | } |
||
| 62 | } |
||
| 63 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.