From 6f59c829781acac13f8b3fb3516663ec2b50b923 Mon Sep 17 00:00:00 2001 From: fabrixxm Date: Thu, 22 Nov 2018 16:57:41 +0100 Subject: [PATCH] Code standards --- mod/photos.php | 2 +- src/Model/Photo.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/photos.php b/mod/photos.php index b637d69694..c72b66f259 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -690,7 +690,7 @@ function photos_post(App $a) * they acquire comments, likes, dislikes, and/or tags */ - $r = Photo::select([], ["`album` = ? AND `uid` = ? AND `created` > UTC_TIMESTAMP() - INTERVAL 3 HOUR", $album, $page_owner_uid]); + $r = Photo::select([], ['`album` = ? AND `uid` = ? AND `created` > UTC_TIMESTAMP() - INTERVAL 3 HOUR', $album, $page_owner_uid]); if (!DBA::isResult($r) || ($album == L10n::t('Profile Photos'))) { $visible = 1; diff --git a/src/Model/Photo.php b/src/Model/Photo.php index edb4bc0e26..f65f495b56 100644 --- a/src/Model/Photo.php +++ b/src/Model/Photo.php @@ -67,7 +67,7 @@ class Photo extends BaseObject } /** - * @brief Get a photo for user id + * @brief Get photos for user id * * @param integer $uid User id * @param string $resourceid Rescource ID of the photo @@ -543,6 +543,6 @@ class Photo extends BaseObject */ public static function newResource() { - return system::createGUID(32, false); + return System::createGUID(32, false); } } -- 2.39.5