| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| 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()->getHasSecureOrigin() && !$this->header()->hasAllowFrom()) { |
||
| 23 | $observations->addError(new XFrameOptionsWithInsecureValueError()); |
||
| 24 | } else { |
||
| 25 | $observations->addKudos(new XFrameOptionsWithSecureOriginKudos()); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->addObservations($observations); |
||
| 29 | } |
||
| 36 |