Completed
Push — master ( 533f80...ba63a0 )
by Ricardo
04:00
created

CreatePrepareWorkflowTables   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 45.16 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 3
dl 14
loc 31
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 14 14 1
A down() 0 3 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

1
<?php
2
3
4
use Illuminate\Database\Schema\Blueprint;
5
use Illuminate\Database\Migrations\Migration;
6
7
class CreatePrepareWorkflowTables extends Migration
8
{
9
    /**
10
     * Run the migrations.
11
     *
12
     * @return void
13
     */
14 View Code Duplication
    public function up()
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
15
    {
16
17
        Schema::create(
18
            'stage_steps', function (Blueprint $table) {
19
                $table->increments('id');
20
                $table->string('name');
21
                $table->string('icon')->nullable();
22
                $table->integer('status')->default(1);
23
                $table->timestamps();
24
            }
25
        );
26
        
27
    }
28
29
    /**
30
     * Reverse the migrations.
31
     *
32
     * @return void
33
     */
34
    public function down()
35
    {
36
    }
37
}
38