Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function getTransactionName(Request $request): string |
||
25 | { |
||
26 | // Extract some attributes from the request |
||
27 | $topic = $request->attributes->get(self::ATTRIBUTE_TOPIC); |
||
28 | $contentType = $request->attributes->get(self::ATTRIBUTE_CONTENT_TYPE); |
||
29 | |||
30 | if ($contentType !== null) { |
||
31 | return "{$topic}@{$contentType}"; |
||
32 | } |
||
33 | |||
34 | return $topic; |
||
35 | } |
||
36 | |||
38 |