Completed
Push — master ( 40ea99...4590e9 )
by Elf
02:06
created

Base64IntegerDriver   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A decode() 0 4 1
1
<?php
2
3
namespace ElfSundae\Laravel\Hashid;
4
5
class Base64IntegerDriver extends Base64Driver
6
{
7
    /**
8
     * Decode the data.
9
     *
10
     * @param  mixed  $data
11
     * @return int
12
     */
13 1
    public function decode($data)
14
    {
15 1
        return (int) parent::decode($data);
16
    }
17
}
18