| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 20 | public function getMediaDynamicUrl(MediaDynamicUrlMessage $message): string | ||
| 21 |     { | ||
| 22 | $path = sprintf( | ||
| 23 | 'sites/%d/media/%d/dynamic_url/%s', | ||
| 24 | $message->getSiteId(), | ||
| 25 | $message->getId(), | ||
| 26 | $message->getFormat() | ||
| 27 | ); | ||
| 28 | |||
| 29 |         $response = $this->getClient()->sendRequest('GET', $path); | ||
| 30 | |||
| 31 | return (string) $response['url']; | ||
| 32 | } | ||
| 33 | |||
| 55 | 
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.