Coding standards

This commit is contained in:
Michael 2021-11-23 14:55:52 +00:00
parent b56ccbcf2b
commit 4373a66f74
5 changed files with 11 additions and 14 deletions

View file

@ -50,7 +50,7 @@ class Activities extends BaseFactory
* @return Array
* @throws HTTPException\InternalServerErrorException
*/
public function createFromUriId(int $uriId, int $uid): Array
public function createFromUriId(int $uriId, int $uid): array
{
$activities = [
'like' => [],
@ -62,6 +62,7 @@ class Activities extends BaseFactory
];
$condition = ['uid' => $uid, 'thr-parent-id' => $uriId, 'gravity' => GRAVITY_ACTIVITY];
$ret = Post::selectForUser($uid, ['author-id', 'verb'], $condition);
while ($parent_item = Post::fetch($ret)) {

View file

@ -23,7 +23,6 @@ namespace Friendica\Factory\Api\Twitter;
use Friendica\App\BaseURL;
use Friendica\BaseFactory;
use Friendica\Collection\Api\Mastodon\Mentions;
use Friendica\Model\Contact;
use Friendica\Model\Tag;
use Friendica\Network\HTTPException;
@ -46,7 +45,7 @@ class Mention extends BaseFactory
* @return Array
* @throws HTTPException\InternalServerErrorException
*/
public function createFromUriId(int $uriId): Array
public function createFromUriId(int $uriId): array
{
$mentions = [];
$tags = Tag::getByURIId($uriId, [Tag::MENTION, Tag::EXCLUSIVE_MENTION, Tag::IMPLICIT_MENTION]);

View file

@ -27,8 +27,6 @@ use Friendica\Content\Text\HTML;
use Friendica\Database\Database;
use Friendica\Factory\Api\Friendica\Activities;
use Friendica\Factory\Api\Twitter\User as TwitterUser;
use Friendica\Factory\Api\Twitter\Hashtag;
use Friendica\Factory\Api\Twitter\Mention;
use Friendica\Factory\Api\Twitter\Url;
use Friendica\Model\Post;
use Friendica\Model\Verb;

View file

@ -87,7 +87,6 @@ class Media extends BaseDataTransferObject
]
];
}
}
/**