Code Duplication    Length = 11-11 lines in 2 locations

src/Database/Schema.php 2 locations

@@ 44-54 (lines=11) @@
41
    /**
42
     * This method creates keyword schema.
43
     */
44
    public function createKeyword()
45
    {
46
        if (! Capsule::schema()->hasTable('keywords')) {
47
            Capsule::schema()->create('keywords', function ($table) {
48
                $table->increments('id');
49
                $table->integer('emoji_id');
50
                $table->string('keyword_name');
51
                $table->timestamps();
52
            });
53
        }
54
    }
55
56
    /**
57
     * This method creates emoji category schema.
@@ 59-69 (lines=11) @@
56
    /**
57
     * This method creates emoji category schema.
58
     */
59
    public function createCategory()
60
    {
61
        if (! Capsule::schema()->hasTable('categories')) {
62
            Capsule::schema()->create('categories', function ($table) {
63
                $table->increments('id');
64
                $table->string('category_name');
65
                $table->timestamps();
66
            });
67
        }
68
    }
69
70
    /**
71
     * This method creates emoji  schema.
72
     */