| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public static function getEtag(Request $request, Response $response): string |
||
| 38 | { |
||
| 39 | if (static::$etagGenerateCallback) { |
||
| 40 | $etag = call_user_func(static::$etagGenerateCallback, $request, $response); |
||
| 41 | } else { |
||
| 42 | $etag = static::defaultGetEtag($response); |
||
| 43 | } |
||
| 44 | |||
| 45 | return (string) Str::of($etag)->start('"')->finish('"'); |
||
| 46 | } |
||
| 59 |