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 * Handles the achievement list and a bit more
*/ */
abstract class Achievement{ abstract class Achievement{
/** /** @var array[] */
* @var array[]
*/
public static $list = [ public static $list = [
/*"openInventory" => array( /*"openInventory" => array(
"name" => "Taking Inventory", "name" => "Taking Inventory",

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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