These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /* |
||
4 | * NOTICE OF LICENSE |
||
5 | * |
||
6 | * Part of the Rinvex Fort Package. |
||
7 | * |
||
8 | * This source file is subject to The MIT License (MIT) |
||
9 | * that is bundled with this package in the LICENSE file. |
||
10 | * |
||
11 | * Package: Rinvex Fort Package |
||
12 | * License: The MIT License (MIT) |
||
13 | * Link: https://rinvex.com |
||
14 | */ |
||
15 | |||
16 | use Illuminate\Support\Facades\Schema; |
||
17 | use Illuminate\Database\Schema\Blueprint; |
||
18 | use Illuminate\Database\Migrations\Migration; |
||
19 | |||
20 | class CreateRinvexFortAbilitiesTable extends Migration |
||
21 | { |
||
22 | /** |
||
23 | * Run the migrations. |
||
24 | * |
||
25 | * @return void |
||
26 | */ |
||
27 | public function up() |
||
28 | { |
||
29 | Schema::create(config('rinvex.fort.tables.abilities'), function (Blueprint $table) { |
||
0 ignored issues
–
show
|
|||
30 | // Columns |
||
31 | $table->increments('id'); |
||
32 | $table->string('action'); |
||
33 | $table->string('resource'); |
||
34 | $table->string('policy')->nullable(); |
||
35 | $table->string('title'); |
||
36 | $table->text('description')->nullable(); |
||
37 | $table->timestamps(); |
||
38 | $table->softDeletes(); |
||
39 | |||
40 | // Indexes |
||
41 | $table->unique(['action', 'resource']); |
||
42 | |||
43 | // Engine |
||
44 | $table->engine = 'InnoDB'; |
||
45 | }); |
||
46 | } |
||
47 | |||
48 | /** |
||
49 | * Reverse the migrations. |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | public function down() |
||
54 | { |
||
55 | Schema::drop(config('rinvex.fort.tables.abilities')); |
||
56 | } |
||
57 | } |
||
58 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.