mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Fix errors in Object namespace
This commit is contained in:
parent
b35c45bf5a
commit
8b15bb9e66
17 changed files with 14 additions and 24 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -32,7 +32,6 @@ class Emoji extends BaseDataTransferObject
|
|||
// Optional attributes
|
||||
/**
|
||||
* Unsupported
|
||||
* @var string
|
||||
*/
|
||||
//protected $category;
|
||||
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue