Completed
Pull Request — master (#15)
by Brian
01:16
created

MySqlGrammar   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A typeUuid() 0 4 1
A typeUuidText() 0 4 1
1
<?php
2
3
namespace Spatie\BinaryUuid;
4
5
use Illuminate\Support\Fluent;
6
use Illuminate\Database\Schema\Grammars\MySqlGrammar as IlluminateMySqlGrammar;
7
8
class MySqlGrammar extends IlluminateMySqlGrammar
9
{
10
    protected function typeUuid(Fluent $column)
11
    {
12
        return 'binary(16)';
13
    }
14
15
    protected function typeUuidText(Fluent $column)
0 ignored issues
show
Unused Code introduced by
The parameter $column is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
    {
17
        return 'char(36)';
18
    }
19
}
20