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

MySqlGrammar::typeUuidText()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 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