mirror of
https://github.com/friendica/friendica
synced 2025-05-03 14:24:09 +02:00
Code standards
This commit is contained in:
parent
ea0cd6c919
commit
cbb5124d59
4 changed files with 5 additions and 5 deletions
|
@ -125,7 +125,7 @@ class Photo extends BaseObject
|
|||
$data = "";
|
||||
if ($photo["backend-class"] == "") {
|
||||
// legacy data storage in "data" column
|
||||
$i = self::selectFirst(["data"], ["id"=>$photo["id"]]);
|
||||
$i = self::selectFirst(["data"], ["id" => $photo["id"]]);
|
||||
if ($i === false) {
|
||||
return null;
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ class Photo extends BaseObject
|
|||
$fields = self::getFields();
|
||||
$values = array_fill(0, count($fields), "");
|
||||
$photo = array_combine($fields, $values);
|
||||
$photo["backend-class"] = "\Friendica\Model\Storage\SystemResource";
|
||||
$photo["backend-class"] = \Friendica\Model\Storage\SystemResource::class;
|
||||
$photo["backend-ref"] = $filename;
|
||||
$photo["type"] = $mimetype;
|
||||
$photo["cacheable"] = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue