Total Complexity | 2 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class CreateApiAuthAppClientsTable extends Migration |
||
9 | { |
||
10 | /** |
||
11 | * Run the migrations. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function up() |
||
16 | { |
||
17 | $tableName = config('apikey.table_name.app_clients'); |
||
18 | |||
19 | Schema::create($tableName, function (Blueprint $table) { |
||
20 | $table->increments('id'); |
||
21 | $table->string('name')->comment('AppName'); |
||
22 | $table->string('appid')->comment('Appid'); |
||
23 | $table->string('secret')->comment('AppSecret'); |
||
24 | $table->boolean('active')->default(1)->comment('Active 0-DeActive 1-Active'); |
||
25 | $table->timestamps(); |
||
26 | $table->softDeletes(); |
||
27 | $table->index('appid'); |
||
28 | $table->index('secret'); |
||
29 | }); |
||
30 | |||
31 | DB::statement("ALTER TABLE `{$tableName}` comment 'AppClients'"); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Reverse the migrations. |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function down() |
||
44 | } |
||
45 | } |
||
46 |
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