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 |
||
| 8 | View Code Duplication | class CreateCommentsTable extends Migration |
|
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var \Illuminate\Database\Schema\Builder |
||
| 12 | */ |
||
| 13 | protected $schema; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Migration constructor. |
||
| 17 | */ |
||
| 18 | public function __construct() |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Run the migrations. |
||
| 25 | * |
||
| 26 | * @return void |
||
| 27 | */ |
||
| 28 | public function up() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Reverse the migrations. |
||
| 46 | * |
||
| 47 | * @return void |
||
| 48 | */ |
||
| 49 | public function down() |
||
| 53 | } |
||
| 54 |