Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('h5p_contents', function (Blueprint $table) { |
||
17 | $table->bigIncrements('id'); |
||
18 | $table->timestamps(); |
||
19 | $table->bigInteger('user_id')->unsigned(); |
||
20 | $table->string('title'); |
||
21 | $table->bigInteger('library_id')->unsigned(); |
||
22 | $table->text('parameters'); |
||
23 | $table->text('filtered'); |
||
24 | $table->string('slug', 127); |
||
25 | $table->string('embed_type', 127); |
||
26 | $table->bigInteger('disable')->unsigned()->default(0); |
||
27 | $table->string('content_type', 127)->nullable(); |
||
28 | $table->string('author', 127)->nullable(); |
||
29 | $table->string('license', 7)->nullable(); |
||
30 | $table->text('keywords', 65535)->nullable(); |
||
|
|||
31 | $table->text('description', 65535)->nullable(); |
||
32 | }); |
||
45 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.