| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 16 |
| Lines | 6 |
| Ratio | 28.57 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('specialities', function (Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('code'); |
||
| 19 | $table->string('name'); |
||
| 20 | $table->timestamps(); |
||
| 21 | }); |
||
| 22 | Schema::create('speciality_user', function (Blueprint $table) { |
||
| 23 | $table->integer('user_id')->unsigned(); |
||
| 24 | $table->integer('speciality_id')->unsigned(); |
||
| 25 | $table->timestamps(); |
||
| 26 | $table->unique(['user_id', 'speciality_id']); |
||
| 27 | }); |
||
| 28 | View Code Duplication | Schema::create('speciality_submodule', function (Blueprint $table) { |
|
| 29 | $table->integer('speciality_id')->unsigned(); |
||
| 30 | $table->integer('submodule_id')->unsigned(); |
||
| 31 | $table->timestamps(); |
||
| 32 | $table->unique(['speciality_id', 'submodule_id']); |
||
| 33 | }); |
||
| 34 | } |
||
| 35 | /** |
||
| 46 | } |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.