| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 42.86 % |
| Changes | 0 | ||
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 |
||
| 7 | class CreateFirewallTable extends Migration { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Run the migration. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | View Code Duplication | public function up() |
|
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Reverse the migration. |
||
| 29 | * |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | public function down() |
||
| 38 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths