Completed
Push — master ( 3e1f6e...114870 )
by Žilvinas
03:03
created

Bdoc::guess()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
ccs 0
cts 4
cp 0
rs 9.4285
cc 2
eloc 4
nc 2
nop 2
crap 6
1
<?php
2
namespace Isign\DocumentTypeGuesser;
3
4
class Bdoc implements DocumentTypeGuesserInterface
5
{
6
    public function guess($content, $extension)
7
    {
8
        if ($extension != 'bdoc') {
9
            return;
10
        }
11
12
        return 'bdoc';
13
    }
14
}
15