Completed
Push — master ( 2f5a59...1aef96 )
by Julien
10:27 queued 03:33
created

CreateLtVenueTable   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 34
Duplicated Lines 47.06 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 16
loc 34
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 16 16 1
A down() 0 4 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
use Illuminate\Database\Migrations\Migration;
4
use Illuminate\Database\Schema\Blueprint;
5
6
class CreateLtVenueTable extends Migration
7
{
8
    /**
9
     * Run the migrations.
10
     *
11
     * @return void
12
     */
13 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...
14
    {
15
        Schema::create('venue', function (Blueprint $table) {
16
            $table->increments('id');
17
            $table->string('venue_name');
18
            $table->string('address')->nullable();
19
            $table->string('details')->nullable();
20
            $table->string('city')->nullable();
21
            $table->string('CP')->nullable();
22
            $table->string('state')->nullable();
23
            $table->string('latitude')->nullable();
24
            $table->string('longitude')->nullable();
25
            $table->timestamps();
26
            $table->engine = 'InnoDB';
27
        });
28
    }
29
30
    /**
31
     * Reverse the migrations.
32
     *
33
     * @return void
34
     */
35
    public function down()
36
    {
37
        Schema::drop('venue');
38
    }
39
}
40