CreateEpormasCounterTable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
dl 0
loc 22
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A down() 0 3 1
A up() 0 14 1
1
<?php
2
3
use Illuminate\Support\Facades\Schema;
4
use Illuminate\Database\Migrations\Migration;
0 ignored issues
show
Bug introduced by
The type Illuminate\Database\Migrations\Migration was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
5
use Illuminate\Database\Schema\Blueprint;
0 ignored issues
show
Bug introduced by
The type Illuminate\Database\Schema\Blueprint was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
6
7
class CreateEpormasCounterTable extends Migration {
8
9
	public function up()
10
	{
11
		Schema::create('epormas_counter', function(Blueprint $table) {
12
			$table->increments('id');
13
			$table->timestamps();
14
			$table->softDeletes();
15
			$table->integer('tahun')->unsigned()->index();
16
			$table->string('bulan', 2)->index();
17
			$table->datetime('tanggal')->index();
18
			$table->integer('count')->unsigned()->index();
19
			$table->string('via')->index();
20
			$table->integer('user_id')->unsigned()->index();
21
			$table->integer('category_id')->unsigned()->index();
22
			$table->integer('city_id')->unsigned()->index();
23
		});
24
	}
25
26
	public function down()
27
	{
28
		Schema::dropIfExists('epormas_counter');
29
	}
30
}
31