Code standards

This commit is contained in:
Michael 2023-09-02 15:55:50 +00:00
parent 30d10c60d2
commit cfc639ffe4

View file

@ -104,10 +104,10 @@ class Engagement
Logger::debug('Engagement stored', ['fields' => $engagement, 'ret' => $ret]);
}
private static function getMediaType(int $uri_id) : int
private static function getMediaType(int $uri_id): int
{
$media = Post\Media::getByURIId($uri_id);
$type = 0;
$type = 0;
foreach ($media as $entry) {
if ($entry['type'] == Post\Media::IMAGE) {
$type = $type | 1;