Skip to content

Commit

Permalink
Fix array syntax PHPCS issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MatzeKitt committed Mar 16, 2024
1 parent 8c92538 commit f01b3aa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions includes/entity/class-application.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
* @package Enable_Mastodon_Apps
*/
class Application extends Entity {
protected $_types = [
protected $_types = array(
'name' => 'string',
'client_id' => 'string',
'client_secret' => 'string',

'website' => 'string?',
];
);

/**
* The name of the application.
Expand Down
6 changes: 3 additions & 3 deletions includes/entity/class-poll.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @package Enable_Mastodon_Apps
*/
class Poll extends Entity {
protected $_types = [
protected $_types = array(
'id' => 'string',

'expires_at' => 'string?',
Expand All @@ -33,7 +33,7 @@ class Poll extends Entity {
'options' => 'array',
'emojis' => 'array',
'own_votes' => 'array',
];
);

/**
* The ID of the poll in the database
Expand Down Expand Up @@ -107,5 +107,5 @@ class Poll extends Entity {
*
* @var int[]
*/
public array $own_votes = [];
public array $own_votes = array();
}
4 changes: 2 additions & 2 deletions includes/entity/class-preview-card.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @package Enable_Mastodon_Apps
*/
class Preview_Card extends Entity {
protected $_types = [
protected $_types = array(
'url' => 'string',
'title' => 'string',
'description' => 'string',
Expand All @@ -34,7 +34,7 @@ class Preview_Card extends Entity {

'width' => 'int',
'height' => 'int',
];
);

/**
* Location of linked resource.
Expand Down
12 changes: 6 additions & 6 deletions includes/entity/class-status.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* @package Enable_Mastodon_Apps
*/
class Status extends Entity {
protected $_types = [
protected $_types = array(
'id' => 'string',
'created_at' => 'string',
'spoiler_text' => 'string',
Expand Down Expand Up @@ -56,7 +56,7 @@ class Status extends Entity {
'reblog' => 'Status?',

'application' => 'Application?',
];
);

/**
* The status ID.
Expand Down Expand Up @@ -189,31 +189,31 @@ class Status extends Entity {
*
* @var array
*/
public array $media_attachments = [];
public array $media_attachments = array();

/**
* List of mentions.
* TODO: implement as list of Status_Mention objects
*
* @var array
*/
public array $mentions = [];
public array $mentions = array();

/**
* List of tags of this status.
* TODO: implement as list of Status_Tag objects
*
* @var array
*/
public array $tags = [];
public array $tags = array();

/**
* List of emojis.
* TODO: implement as list of CustomEmoji objects
*
* @var array
*/
public array $emojis = [];
public array $emojis = array();

/**
* The amount of replies to this status.
Expand Down

0 comments on commit f01b3aa

Please sign in to comment.