HackedFileIncludeEndingsHasher::performHash()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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