Lint php
parent
9635b87237
commit
9afd99de2a
|
@ -18,7 +18,7 @@ trait TimelineQueryAlbums
|
||||||
$album = $this->getAlbumIfAllowed($query->getConnection(), $uid, $albumId);
|
$album = $this->getAlbumIfAllowed($query->getConnection(), $uid, $albumId);
|
||||||
|
|
||||||
// Check permission
|
// Check permission
|
||||||
if ($album === null) {
|
if (null === $album) {
|
||||||
throw new \Exception("Album {$albumId} not found");
|
throw new \Exception("Album {$albumId} not found");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ trait TimelineQueryAlbums
|
||||||
{
|
{
|
||||||
// Split name and uid
|
// Split name and uid
|
||||||
$parts = explode('/', $albumId);
|
$parts = explode('/', $albumId);
|
||||||
if (count($parts) !== 2) {
|
if (2 !== \count($parts)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$albumUid = $parts[0];
|
$albumUid = $parts[0];
|
||||||
|
|
Loading…
Reference in New Issue