We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
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 |
||
13 | View Code Duplication | class BankServiceProvider extends ServiceProvider |
|
14 | { |
||
15 | use LaravelMigrator; |
||
16 | |||
17 | public function register() |
||
23 | |||
24 | public function registerMigrations() |
||
32 | |||
33 | public function registerFactories() |
||
37 | |||
38 | public function registerSeeders() |
||
46 | } |
||
47 |