mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:50:11 +00:00
Fix PHP 7.0 Coding Standards
This commit is contained in:
parent
83cb4edc36
commit
965cd8b096
8 changed files with 16 additions and 15 deletions
|
@ -114,7 +114,8 @@ class Status extends BaseDataTransferObject
|
|||
$this->visibility = $visibility[$item['private']];
|
||||
|
||||
$languages = json_decode($item['language'], true);
|
||||
$this->language = is_array($languages) ? array_key_first($languages) : null;
|
||||
reset($languages);
|
||||
$this->language = is_array($languages) ? key($languages) : null;
|
||||
|
||||
$this->uri = $item['uri'];
|
||||
$this->url = $item['plink'] ?? null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue