Completed
Push — master ( c60cf3...36f595 )
by Sebastien
07:49
created

HackedFileIncludeEndingsHasher::fetchLines()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 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
   * @inheritdoc
11
   */
12
  public function performHash($filename) {
13
    return sha1_file($filename);
14
  }
15
16
  /**
17
   * @inheritdoc
18
   */
19
  public function fetchLines($filename) {
20
    return file($filename);
21
  }
22
}
23