Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
| 1 | <?php |
||
| 23 | final class DoctrineRiakFactory extends AbstractDoctrineAdapterFactory |
||
| 24 | { |
||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | public function getAdapter(array $config) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * {@inheritdoc} |
||
| 38 | */ |
||
| 39 | View Code Duplication | protected static function configureOptionResolver(OptionsResolver $resolver) |
|
| 51 | } |
||
| 52 |
This class, trait or interface has been deprecated.