Total Complexity | 6 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class AddSocialitesColumnsToUsers extends Migration |
||
8 | { |
||
9 | /** |
||
10 | * Run the migrations. |
||
11 | * |
||
12 | * @return void |
||
13 | */ |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::table(config('laravel-oauth.users.table'), function (Blueprint $table) { |
||
17 | foreach (config('laravel-oauth.providers') as $provider => $status) { |
||
18 | if ($status === true) { |
||
19 | $table->string($provider.'_id')->nullable(); |
||
20 | } |
||
21 | } |
||
22 | }); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Reverse the migrations. |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | public function down() |
||
36 | } |
||
37 | } |
||
41 |
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