Proper type is string
This commit is contained in:
parent
41f34c4261
commit
f3b57008b5
|
@ -317,7 +317,7 @@ class Photo
|
||||||
* @param Image $image Image object with data
|
* @param Image $image Image object with data
|
||||||
* @param integer $uid User ID
|
* @param integer $uid User ID
|
||||||
* @param integer $cid Contact ID
|
* @param integer $cid Contact ID
|
||||||
* @param integer $rid Resource ID
|
* @param string $rid Resource ID
|
||||||
* @param string $filename Filename
|
* @param string $filename Filename
|
||||||
* @param string $album Album name
|
* @param string $album Album name
|
||||||
* @param integer $scale Scale
|
* @param integer $scale Scale
|
||||||
|
@ -331,7 +331,7 @@ class Photo
|
||||||
* @return boolean True on success
|
* @return boolean True on success
|
||||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||||
*/
|
*/
|
||||||
public static function store(Image $image, int $uid, int $cid, int $rid, string $filename, string $album, int $scale, int $type = self::DEFAULT, string $allow_cid = '', string $allow_gid = '', string $deny_cid = '', string $deny_gid = '', string $desc = ''): bool
|
public static function store(Image $image, int $uid, int $cid, string $rid, string $filename, string $album, int $scale, int $type = self::DEFAULT, string $allow_cid = '', string $allow_gid = '', string $deny_cid = '', string $deny_gid = '', string $desc = ''): bool
|
||||||
{
|
{
|
||||||
$photo = self::selectFirst(['guid'], ['`resource-id` = ? AND `guid` != ?', $rid, '']);
|
$photo = self::selectFirst(['guid'], ['`resource-id` = ? AND `guid` != ?', $rid, '']);
|
||||||
if (DBA::isResult($photo)) {
|
if (DBA::isResult($photo)) {
|
||||||
|
@ -476,7 +476,7 @@ class Photo
|
||||||
* @param integer $uid user id
|
* @param integer $uid user id
|
||||||
* @param integer $cid contact id
|
* @param integer $cid contact id
|
||||||
* @param boolean $quit_on_error optional, default false
|
* @param boolean $quit_on_error optional, default false
|
||||||
* @return array
|
* @return array|bool Array on success, false on error
|
||||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||||
* @throws \ImagickException
|
* @throws \ImagickException
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user