Code standards
This commit is contained in:
parent
30d10c60d2
commit
cfc639ffe4
|
@ -104,10 +104,10 @@ class Engagement
|
||||||
Logger::debug('Engagement stored', ['fields' => $engagement, 'ret' => $ret]);
|
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);
|
$media = Post\Media::getByURIId($uri_id);
|
||||||
$type = 0;
|
$type = 0;
|
||||||
foreach ($media as $entry) {
|
foreach ($media as $entry) {
|
||||||
if ($entry['type'] == Post\Media::IMAGE) {
|
if ($entry['type'] == Post\Media::IMAGE) {
|
||||||
$type = $type | 1;
|
$type = $type | 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user