]> git.mxchange.org Git - friendica.git/commitdiff
Fix errors in Object namespace
authorArt4 <art4@wlabs.de>
Fri, 6 Dec 2024 21:55:04 +0000 (21:55 +0000)
committerArt4 <art4@wlabs.de>
Fri, 6 Dec 2024 21:55:04 +0000 (21:55 +0000)
17 files changed:
src/Object/Api/Mastodon/Activity.php
src/Object/Api/Mastodon/Application.php
src/Object/Api/Mastodon/Emoji.php
src/Object/Api/Mastodon/Error.php
src/Object/Api/Mastodon/ListEntity.php
src/Object/Api/Mastodon/Preferences.php
src/Object/Api/Mastodon/Status/Counts.php
src/Object/Api/Mastodon/Status/UserAttributes.php
src/Object/Api/Mastodon/Tag.php
src/Object/Api/Twitter/Attachment.php
src/Object/Api/Twitter/Hashtag.php
src/Object/Api/Twitter/Media.php
src/Object/Api/Twitter/Mention.php
src/Object/Api/Twitter/SavedSearch.php
src/Object/Api/Twitter/Url.php
src/Object/Image.php
src/Object/Log/ParsedLogLine.php

index cab2b30068344fdb50c9fcceb8721d5c2a9966e1..5617bc7e7f97d13aca7caf16c4d12f8a435f41c8 100644 (file)
@@ -28,7 +28,6 @@ class Activity extends BaseDataTransferObject
        /**
         * Creates an activity
         *
-        * @param array   $item
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(int $week, int $statuses, int $logins, int $registrations)
index 789b445d0c0e7a160d6de876641c21c3926dea57..50837f90cb3c22488209dc73742d0d7f29fbe71b 100644 (file)
@@ -34,7 +34,6 @@ class Application extends BaseDataTransferObject
        /**
         * Creates an application entry
         *
-        * @param array   $item
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(string $name, string $client_id = null, string $client_secret = null, int $id = null, string $redirect_uri = null, string $website = null, string $vapid_key = null)
index 8edbccc36f6ca4d4339f985e1bc46306c984ac62..a91f158e726d4c8d5f51c46dc2450b95c5871c98 100644 (file)
@@ -32,7 +32,6 @@ class Emoji extends BaseDataTransferObject
        // Optional attributes
        /**
         * Unsupported
-        * @var string
         */
        //protected $category;
 
index 220f00e8be956da7465e632ded396d1c617ada2a..945ebfc592c8bf3a5e2a3321a43fb37d0ecd6e2c 100644 (file)
@@ -23,9 +23,6 @@ class Error extends BaseDataTransferObject
 
        /**
         * Creates an error record
-        *
-        * @param string $error
-        * @param string error_description
         */
        public function __construct(string $error, string $error_description)
        {
index ab3b6363ad4a50c896bfbb4d3761b4744426294d..0bd613d0f97b0d3ece8be0682d7e3af636b5ed88 100644 (file)
@@ -26,8 +26,6 @@ class ListEntity extends BaseDataTransferObject
        /**
         * Creates an list record
         *
-        * @param int $id
-        * @param string $title
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(string $id, string $title, string $policy)
index 68f3c922a801b9796e37cc809d6297c90caa930b..fcae499d923c5a82d8626f7cce2285160eeccf69 100644 (file)
@@ -45,10 +45,6 @@ class Preferences extends BaseDataTransferObject
        /**
         * Creates a preferences record.
         *
-        * @param BaseURL $baseUrl
-        * @param array   $publicContact Full contact table record with uid = 0
-        * @param array   $apcontact     Optional full apcontact table record
-        * @param array   $userContact   Optional full contact table record with uid != 0
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(string $visibility, bool $sensitive, string $language, string $media, bool $spoilers)
index f273b342e7f52d57341f5600349f32035110f08f..a28508d2ea0d573ecac7f9f6fdebc58a92b9849a 100644 (file)
@@ -12,6 +12,9 @@ namespace Friendica\Object\Api\Mastodon\Status;
  *
  * @see https://docs.joinmastodon.org/entities/status
  *
+ * @property-read int $replies
+ * @property-read int $reblogs
+ * @property-read int $favourites
  * @property-read int $dislikes
  */
 class Counts
index e30961303d0c99d9af4c8be6b47ee3279ef7aeb8..0e7ae09e9dc446792eb1c0c6100413519f4c7e10 100644 (file)
@@ -10,6 +10,12 @@ namespace Friendica\Object\Api\Mastodon\Status;
 /**
  * Class UserAttributes
  *
+ * @property-read bool $favourited
+ * @property-read bool $reblogged
+ * @property-read bool $muted
+ * @property-read bool $bookmarked
+ * @property-read bool $pinned
+ *
  * @see https://docs.joinmastodon.org/entities/status
  */
 class UserAttributes
index 12851a9131fddc6cebfeb4b85c5f3036072bd7c4..3c14a5e61650c2f24e14c974bf6368909f1d2796 100644 (file)
@@ -32,7 +32,7 @@ class Tag extends BaseDataTransferObject
         * @param BaseURL $baseUrl
         * @param array   $tag       tag-view record
         * @param array   $history
-        * @param array   $following "true" if the user is following this tag
+        * @param bool    $following "true" if the user is following this tag
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(BaseURL $baseUrl, array $tag, array $history = [], bool $following = false)
index 3e5af7d3cf5ad7f8fdc87621b4b5e882d0836100..8c5bcea305a82aeae39f84b0192d1527d223224e 100644 (file)
@@ -26,7 +26,6 @@ class Attachment extends BaseDataTransferObject
        /**
         * Creates an Attachment entity array
         *
-        * @param array $attachment
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(array $media)
index 9c8d688025178d7ec7b0c9f04d9d29d9570d0e6d..de8ed71cf6598b26e6aa693f61feb86a1aa39aef 100644 (file)
@@ -24,7 +24,6 @@ class Hashtag extends BaseDataTransferObject
        /**
         * Creates a hashtag
         *
-        * @param array $attachment
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(string $name, array $indices)
index 3650613c0ee53e6f0b751b9ba99cef842e4c3f61..19f98f1a29747d06e281ca036b26e7fa3a1423de 100644 (file)
@@ -41,7 +41,6 @@ class Media extends BaseDataTransferObject
        /**
         * Creates a media entity array
         *
-        * @param array $attachment
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(array $media, string $url, array $indices)
index 113f682b516c992933e5aaeb485c60816e056a76..e5d257e9d36091e60bcff4813520e83b3d0274dc 100644 (file)
@@ -31,7 +31,6 @@ class Mention extends BaseDataTransferObject
        /**
         * Creates a mention record from an tag-view record.
         *
-        * @param BaseURL $baseUrl
         * @param array   $tag     tag-view record
         * @param array   $contact contact table record
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
index fafb1acec9994f5bd8a53bf0de1103d918ee2e45..28f62f83f42d7096106489456dd5eb5d7da78f57 100644 (file)
@@ -34,7 +34,6 @@ class SavedSearch extends BaseDataTransferObject
        /**
         * Creates a saved search record from a search record.
         *
-        * @param BaseURL $baseUrl
         * @param array   $search Full search table record
         */
        public function __construct(array $search)
index f16bec63417bec7afa8e5c4bb54a10964d459585..92c272715593923aa4d26ad98ebe0fa075bbf026 100644 (file)
@@ -28,7 +28,6 @@ class Url extends BaseDataTransferObject
        /**
         * Creates an URL entity array
         *
-        * @param array $attachment
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
        public function __construct(array $media, array $indices)
index 8a06b37fbdef84860cbd7bad1cd720b911b8caab..43b6d916070d72c2a795847bc15e0c0b86e7f640 100644 (file)
@@ -13,7 +13,7 @@ use Friendica\Util\Images;
 use Imagick;
 use ImagickDraw;
 use ImagickPixel;
-use GDImage;
+use GdImage;
 use kornrunner\Blurhash\Blurhash;
 
 /**
@@ -21,7 +21,7 @@ use kornrunner\Blurhash\Blurhash;
  */
 class Image
 {
-       /** @var GDImage|Imagick|resource */
+       /** @var GdImage|Imagick|resource */
        private $image;
 
        /*
@@ -41,7 +41,7 @@ class Image
         * @param string $data     Image data
         * @param string $type     optional, default ''
         * @param string $filename optional, default ''
-        * @param string $imagick  optional, default 'true'
+        * @param bool   $imagick  optional, default 'true'
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         * @throws \ImagickException
         */
@@ -765,7 +765,6 @@ class Image
        /**
         * Create a blurhash out of a given image string
         *
-        * @param string $img_str
         * @return string
         */
        public function getBlurHash(): string
index 0a861c617ed6d9ab661d1b32cd6f5af31c2ccf05..1d9802bb3292e73a72ab3bac38089b4e3d929370 100644 (file)
@@ -39,7 +39,7 @@ class ParsedLogLine
        public $logline;
 
        /**
-        * @param int line id
+        * @param int $id line id
         * @param string $logline Source log line to parse
         */
        public function __construct(int $id, string $logline)