fix remaining multiline @var annotations

This commit is contained in:
Dylan K. Taylor 2020-01-22 14:44:36 +00:00
parent aad1eb5b3e
commit 9cd6b3e1c7
16 changed files with 23 additions and 69 deletions

View File

@ -30,9 +30,7 @@ use pocketmine\utils\TextFormat;
* Handles the achievement list and a bit more
*/
abstract class Achievement{
/**
* @var array[]
*/
/** @var array[] */
public static $list = [
/*"openInventory" => array(
"name" => "Taking Inventory",

View File

@ -50,9 +50,7 @@ abstract class Command{
/** @var string[] */
private $aliases = [];
/**
* @var string[]
*/
/** @var string[] */
private $activeAliases = [];
/** @var CommandMap|null */

View File

@ -79,9 +79,7 @@ use function trim;
class SimpleCommandMap implements CommandMap{
/**
* @var Command[]
*/
/** @var Command[] */
protected $knownCommands = [];
/** @var Server */

View File

@ -430,9 +430,7 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
]);
}
/**
* @var Player[]
*/
/** @var Player[] */
protected $hasSpawned = [];
/** @var int */

View File

@ -31,9 +31,7 @@ use function in_array;
use function spl_object_hash;
class HandlerList{
/**
* @var HandlerList[] classname => HandlerList
*/
/** @var HandlerList[] classname => HandlerList */
private static $allLists = [];
/**

View File

@ -35,9 +35,7 @@ class EntityExplodeEvent extends EntityEvent implements Cancellable{
/** @var Position */
protected $position;
/**
* @var Block[]
*/
/** @var Block[] */
protected $blocks;
/** @var float */

View File

@ -40,9 +40,7 @@ class PlayerChatEvent extends PlayerEvent implements Cancellable{
/** @var string */
protected $format;
/**
* @var CommandSender[]
*/
/** @var CommandSender[] */
protected $recipients = [];
/**

View File

@ -30,9 +30,7 @@ use pocketmine\network\SourceInterface;
* @deprecated
*/
class NetworkInterfaceCrashEvent extends NetworkInterfaceEvent{
/**
* @var \Throwable
*/
/** @var \Throwable */
private $exception;
public function __construct(SourceInterface $interface, \Throwable $throwable){

View File

@ -32,9 +32,7 @@ use function strtolower;
use function trim;
class BanEntry{
/**
* @var string
*/
/** @var string */
public static $format = "Y-m-d H:i:s O";
/** @var string */

View File

@ -35,14 +35,10 @@ class PermissibleBase implements Permissible{
/** @var Permissible */
private $parent = null;
/**
* @var PermissionAttachment[]
*/
/** @var PermissionAttachment[] */
private $attachments = [];
/**
* @var PermissionAttachmentInfo[]
*/
/** @var PermissionAttachmentInfo[] */
private $permissions = [];
public function __construct(ServerOperator $opable){

View File

@ -132,9 +132,7 @@ class Permission{
/** @var string */
private $description;
/**
* @var bool[]
*/
/** @var bool[] */
private $children;
/** @var string */

View File

@ -30,9 +30,7 @@ class PermissionAttachment{
/** @var PermissionRemovedExecutor */
private $removed = null;
/**
* @var bool[]
*/
/** @var bool[] */
private $permissions = [];
/** @var Permissible */

View File

@ -75,9 +75,7 @@ class PluginDescription{
/** @var int */
private $order = PluginLoadOrder::POSTWORLD;
/**
* @var Permission[]
*/
/** @var Permission[] */
private $permissions = [];
/**

View File

@ -76,19 +76,13 @@ class PluginManager{
/** @var SimpleCommandMap */
private $commandMap;
/**
* @var Plugin[]
*/
/** @var Plugin[] */
protected $plugins = [];
/**
* @var Plugin[]
*/
/** @var Plugin[] */
protected $enabledPlugins = [];
/**
* @var PluginLoader[]
*/
/** @var PluginLoader[] */
protected $fileAssociations = [];
/** @var string|null */

View File

@ -36,14 +36,10 @@ class TaskScheduler{
/** @var bool */
private $enabled = true;
/**
* @var ReversePriorityQueue<Task>
*/
/** @var ReversePriorityQueue<Task> */
protected $queue;
/**
* @var TaskHandler[]
*/
/** @var TaskHandler[] */
protected $tasks = [];
/** @var int */

View File

@ -35,24 +35,16 @@ class Random{
public const Z = 521288629;
public const W = 88675123;
/**
* @var int
*/
/** @var int */
private $x;
/**
* @var int
*/
/** @var int */
private $y;
/**
* @var int
*/
/** @var int */
private $z;
/**
* @var int
*/
/** @var int */
private $w;
/** @var int */