Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class CreateLaravelBlockerTypesTable extends Migration |
||
9 | { |
||
10 | /** |
||
11 | * Run the migrations. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function up() |
||
16 | { |
||
17 | $blocked = new BlockedType(); |
||
18 | $connection = $blocked->getConnectionName(); |
||
19 | $table = $blocked->getTableName(); |
||
20 | $tableCheck = Schema::connection($connection)->hasTable($table); |
||
21 | |||
22 | if (!$tableCheck) { |
||
23 | Schema::connection($connection)->create($table, function (Blueprint $table) { |
||
24 | $table->increments('id'); |
||
25 | $table->string('slug')->unique(); |
||
26 | $table->string('name'); |
||
27 | $table->timestamps(); |
||
28 | $table->softDeletes(); |
||
29 | }); |
||
30 | } |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * Reverse the migrations. |
||
35 | * |
||
36 | * @return void |
||
37 | */ |
||
38 | public function down() |
||
45 | } |
||
46 | } |
||
47 |
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