| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 4 | 
| CRAP Score | 2 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 13 | public static function get(RequestInterface $request, string $name, ?string $value = null) : Cookie  | 
            ||
| 14 |     { | 
            ||
| 15 | $cookies = Cookies::fromRequest($request);  | 
            ||
| 16 | $cookie = $cookies->get($name);  | 
            ||
| 17 | 1 | ||
| 18 |         if ($cookie) { | 
            ||
| 19 | 1 | return $cookie;  | 
            |
| 20 | 1 | }  | 
            |
| 21 | 1 | ||
| 22 | return Cookie::create($name, $value);  | 
            ||
| 23 | }  | 
            ||
| 24 | |||
| 58 |