Completed
Push — master ( 08e890...83653b )
by Dev
02:28
created

MultipleCheckInHeaders   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
wmc 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A check() 0 7 3
1
<?php
2
3
namespace PiedWeb\Curl;
4
5
/**
6
 * This class is an example.
7
 */
8
class MultipleCheckInHeaders
9
{
10
    protected $code;
11
12 6
    public function check($line)
13
    {
14 6
        if (Helper::checkStatusCode($line)) {
15 3
            $this->code = 200;
16
        }
17
18 6
        return 200 == $this->code && Helper::checkContentType($line);
19
    }
20
}
21