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 CreateCampaignsTable 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() |
||
47 | |||
48 | /** |
||
49 | * Reverse the migrations. |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | public function down() |
||
57 | } |
||
58 |