HackedFileIncludeEndingsHasher   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A performHash() 0 4 1
A fetchLines() 0 4 1
1
<?php
2
3
namespace Cerbere\Model\Hacked;
4
5
/**
6
 * This is a much faster, but potentially less useful file hasher.
7
 */
8
class HackedFileIncludeEndingsHasher extends HackedFileHasher
9
{
10
    /**
11
     * @inheritdoc
12
     */
13
    public function performHash($filename)
14
    {
15
        return sha1_file($filename);
16
    }
17
18
    /**
19
     * @inheritdoc
20
     */
21
    public function fetchLines($filename)
22
    {
23
        return file($filename);
24
    }
25
}
26