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

HackedFileIncludeEndingsHasher   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A performHash() 0 3 1
A fetchLines() 0 3 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