| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('cms_menus', function(Blueprint $table) |
||
| 16 | { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->string('name', 30)->nullable(); |
||
| 19 | $table->string('type', 30)->default('url'); |
||
| 20 | $table->string('path', 50)->nullable(); |
||
| 21 | $table->string('color', 30)->nullable(); |
||
| 22 | $table->string('icon', 30)->nullable(); |
||
| 23 | $table->integer('parent_id')->nullable(); |
||
| 24 | $table->boolean('is_active')->default(1); |
||
| 25 | $table->boolean('is_dashboard')->default(0); |
||
| 26 | $table->integer('sorting')->nullable(); |
||
| 27 | $table->timestamps(); |
||
| 28 | $table->text('cms_privileges', 65535)->nullable(); |
||
|
|
|||
| 29 | }); |
||
| 44 |
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.