Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
18 | public function process(ParsedHeaders $parsedHeaders): void |
||
19 | { |
||
20 | $observations = new ObservationCollection(); |
||
21 | |||
22 | if ($this->header()->leaksServerVersion()) { |
||
23 | $observations->addWarning(new ServerDisclosedVersionNumberWarning()); |
||
24 | } else { |
||
25 | $observations->addKudos(new ServerDoesNotLeakVersionKudos()); |
||
26 | } |
||
27 | |||
28 | $this->addObservations($observations); |
||
29 | } |
||
36 |