| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | 1 | public static function fromAttributeNameAndRequest(string $attributeName, ServerRequestInterface $request) : self |
|
| 13 | { |
||
| 14 | 1 | return new self(sprintf( |
|
| 15 | 1 | 'Provided request contains no matching session attribute "%s", attributes %s exist', |
|
| 16 | $attributeName, |
||
| 17 | 1 | json_encode(array_keys($request->getAttributes())) |
|
| 18 | )); |
||
| 19 | } |
||
| 20 | } |
||
| 21 |