Fix PHP 7.0 Coding Standards

This commit is contained in:
Philipp 2021-05-22 23:45:15 +02:00
parent 83cb4edc36
commit 965cd8b096
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
8 changed files with 16 additions and 15 deletions

View file

@ -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;