GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

MysqlGrammar   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 32
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A compileFulltext() 0 4 1
A compileDropFulltext() 0 8 1
1
<?php
2
3
namespace Milkmeowo\Framework\Database\Schema\Grammars;
4
5
use Illuminate\Support\Fluent;
6
use Illuminate\Database\Schema\Blueprint;
7
use Illuminate\Database\Schema\Grammars\MySqlGrammar as BaseMySqlGrammar;
8
9
class MysqlGrammar extends BaseMySqlGrammar
10
{
11
    /**
12
     * Compile a fulltext key command.
13
     *
14
     * @param Blueprint $blueprint
15
     * @param Fluent    $command
16
     *
17
     * @return string
18
     */
19
    public function compileFulltext(Blueprint $blueprint, Fluent $command)
20
    {
21
        return $this->compileKey($blueprint, $command, 'fulltext');
22
    }
23
24
    /**
25
     * Compile a drop fulltext key command.
26
     *
27
     * @param Blueprint $blueprint
28
     * @param Fluent    $command
29
     *
30
     * @return string
31
     */
32
    public function compileDropFulltext(Blueprint $blueprint, Fluent $command)
33
    {
34
        $table = $this->wrapTable($blueprint);
35
36
        $index = $this->wrap($command->index);
37
38
        return "alter table {$table} drop index {$index}";
39
    }
40
}
41