]> git.mxchange.org Git - friendica.git/commitdiff
Cleanup unused imports, excessive line length in Mastodon FollowRequest factory
authorHank Grabowski <hankgrabowski@gmail.com>
Wed, 15 Feb 2023 20:43:57 +0000 (15:43 -0500)
committerHank Grabowski <hankgrabowski@gmail.com>
Wed, 15 Feb 2023 20:43:57 +0000 (15:43 -0500)
src/Factory/Api/Mastodon/FollowRequest.php

index fcb2c9df8c5ba51246156994526047bac20c533a..5674196a930797c0c48a108eb4c9cfb7fdf7e1cb 100644 (file)
@@ -26,8 +26,6 @@ use Friendica\BaseFactory;
 use Friendica\Collection\Api\Mastodon\Fields;
 use Friendica\Contact\Introduction\Entity\Introduction;
 use Friendica\Database\DBA;
-use Friendica\Model\APContact;
-use Friendica\Model\Contact;
 use Friendica\Network\HTTPException;
 use ImagickException;
 use Psr\Log\LoggerInterface;
@@ -51,7 +49,8 @@ class FollowRequest extends BaseFactory
         */
        public function createFromIntroduction(Introduction $introduction): \Friendica\Object\Api\Mastodon\Account
        {
-               $account = DBA::selectFirst('account-user-view', [], ['id' => $introduction->cid, 'uid' => [0, $introduction->uid]]);
+               $account = DBA::selectFirst('account-user-view', [], ['id' => $introduction->cid,
+                       'uid' => [0, $introduction->uid]]);
                if (empty($account)) {
                        $this->logger->warning('Wrong introduction data', ['Introduction' => $introduction]);
                        throw new HTTPException\InternalServerErrorException('Wrong introduction data');