| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | public static function DaftRouterHttpRoute(array $args, string $method = 'GET') : string |
||
| 46 | { |
||
| 47 | if ( |
||
| 48 | ! isset( |
||
| 49 | $args['name'], |
||
| 50 | $args['value'], |
||
| 51 | $args['secure'], |
||
| 52 | $args['http'], |
||
| 53 | $args['same-site'] |
||
| 54 | ) |
||
| 55 | ) { |
||
| 56 | throw new InvalidArgumentException('cookie args not specified!'); |
||
| 57 | } |
||
| 58 | |||
| 59 | return sprintf( |
||
| 60 | '/cookie-test/%s/%s/%u/%u/%s', |
||
| 61 | $args['name'], |
||
| 62 | $args['value'], |
||
| 63 | $args['secure'], |
||
| 64 | $args['http'], |
||
| 65 | $args['same-site'] |
||
| 66 | ); |
||
| 69 |