We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class StoreMigrationCreationDate extends Migration |
||
|
|
|||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Run the migrations. |
||
| 10 | * |
||
| 11 | * @return void |
||
| 12 | */ |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | \Schema::table('updates', function (Blueprint $table) { |
||
| 16 | $table->timestamp('created_at')->default(NOW()); |
||
| 17 | }); |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Reverse the migrations. |
||
| 22 | * |
||
| 23 | * @return void |
||
| 24 | */ |
||
| 25 | public function down() |
||
| 29 | }); |
||
| 30 | } |
||
| 32 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.