Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | protected function setUpDatabase() |
||
25 | { |
||
26 | Schema::create('test_models', function (Blueprint $table) { |
||
27 | $table->increments('id'); |
||
28 | $table->timestamps(); |
||
29 | }); |
||
30 | |||
31 | Schema::create('test_model_translations', function (Blueprint $table) { |
||
32 | $table->increments('id'); |
||
33 | $table->unsignedInteger('test_model_id'); |
||
34 | $table->string('locale'); |
||
35 | $table->string('name'); |
||
36 | $table->timestamps(); |
||
37 | |||
38 | $table->unique(['locale', 'test_model_id']); |
||
39 | $table->foreign('test_model_id')->references('id')->on('test_models'); |
||
40 | }); |
||
43 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.