Skip to content
This repository was archived by the owner on Feb 8, 2019. It is now read-only.

Commit 9bd0610

Browse files
InkoHXStyleCIBot
authored andcommitted
Apply fixes from StyleCI
1 parent 902ef97 commit 9bd0610

File tree

8 files changed

+27
-21
lines changed

8 files changed

+27
-21
lines changed

src/VectorNetworkProject/TheMix/command/PingCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,20 @@ public function __construct(Plugin $owner)
3030

3131
/**
3232
* @param CommandSender $sender
33-
* @param string $commandLabel
34-
* @param array $args
33+
* @param string $commandLabel
34+
* @param array $args
3535
*
3636
* @return bool
3737
*/
3838
public function execute(CommandSender $sender, string $commandLabel, array $args): bool
3939
{
4040
if (!$sender instanceof Player) {
4141
$sender->sendMessage(TextFormat::RED.'このコマンドはプレイヤーのみ実行可能です。');
42+
4243
return true;
4344
}
4445
$sender->sendMessage(TextFormat::RED.$sender->getPing().TextFormat::YELLOW.'ms');
46+
4547
return true;
4648
}
4749
}

src/VectorNetworkProject/TheMix/command/TpsCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ public function __construct(Plugin $owner)
3030

3131
/**
3232
* @param CommandSender $sender
33-
* @param string $commandLabel
34-
* @param array $args
33+
* @param string $commandLabel
34+
* @param array $args
3535
*
3636
* @return bool
3737
*/
3838
public function execute(CommandSender $sender, string $commandLabel, array $args): bool
3939
{
4040
$sender->sendMessage(TextFormat::GREEN.'TPS: '.Server::getInstance()->getTicksPerSecond().'/20');
41+
4142
return true;
4243
}
4344
}

src/VectorNetworkProject/TheMix/event/game/PlayerLevelChangeEvent.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class PlayerLevelChangeEvent extends PlayerEvent implements Cancellable
2727
* PlayerLevelChangeEvent constructor.
2828
*
2929
* @param Player $player
30-
* @param int $oldlevel
31-
* @param int $newlevel
32-
* @param bool $complete
30+
* @param int $oldlevel
31+
* @param int $newlevel
32+
* @param bool $complete
3333
*/
3434
public function __construct(Player $player, int $oldlevel, int $newlevel, bool $complete = false)
3535
{
@@ -50,7 +50,7 @@ public function getNewLevel(): int
5050
}
5151

5252
/**
53-
* 古いレベルを返します
53+
* 古いレベルを返します.
5454
*
5555
* @return int
5656
*/

src/VectorNetworkProject/TheMix/event/game/PlayerMaxXpChangeEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PlayerMaxXpChangeEvent extends PlayerEvent implements Cancellable
2121
* PlayerMaxXpChangeEvent constructor.
2222
*
2323
* @param Player $player
24-
* @param int $max
24+
* @param int $max
2525
*/
2626
public function __construct(Player $player, int $max)
2727
{

src/VectorNetworkProject/TheMix/event/game/PlayerXpChangeEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PlayerXpChangeEvent extends PlayerEvent implements Cancellable
2121
* PlayerXpChangeEvent constructor.
2222
*
2323
* @param Player $player
24-
* @param int $xp
24+
* @param int $xp
2525
*/
2626
public function __construct(Player $player, int $xp)
2727
{

src/VectorNetworkProject/TheMix/game/level/Level.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,24 @@ class Level
1919
public const FILE_NAME = 'Level';
2020

2121
/* @var string */
22-
public const LEVEL = "level";
22+
public const LEVEL = 'level';
2323

2424
public static function init(): array
2525
{
2626
return [
27-
'level' => 1,
28-
'xp' => 0,
29-
'max' => 15,
27+
'level' => 1,
28+
'xp' => 0,
29+
'max' => 15,
3030
'prestige' => 0,
31-
'complete' => false
31+
'complete' => false,
3232
];
3333
}
3434

3535
/**
3636
* プレイヤーのレベルを設定します。
3737
*
3838
* @param Player $player
39-
* @param int $level
39+
* @param int $level
4040
*
4141
* @throws \Error
4242
*
@@ -88,6 +88,7 @@ public static function addLevel(Player $player): void
8888
public static function getLevel(Player $player): int
8989
{
9090
$db = new JSON($player->getXuid(), self::FILE_NAME);
91+
9192
return $db->get(self::LEVEL);
9293
}
9394

src/VectorNetworkProject/TheMix/game/level/XP.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class XP
2626
* プレイヤーのXPを変更します。
2727
*
2828
* @param Player $player
29-
* @param int $xp
29+
* @param int $xp
3030
*
3131
* @return void
3232
*/
@@ -44,8 +44,8 @@ public static function setXP(Player $player, int $xp): void
4444
* プレイヤーのXPを増やします。
4545
*
4646
* @param Player $player
47-
* @param int $min
48-
* @param int $max
47+
* @param int $min
48+
* @param int $max
4949
*
5050
* @return void
5151
*/
@@ -70,14 +70,15 @@ public static function addXP(Player $player, int $min = 10, int $max = 15): void
7070
public static function getXP(Player $player): int
7171
{
7272
$db = new JSON($player->getXuid(), Level::FILE_NAME);
73+
7374
return $db->get(self::XP);
7475
}
7576

7677
/**
7778
* プレイヤーのMaxXPを変更します。
7879
*
7980
* @param Player $player
80-
* @param int $max
81+
* @param int $max
8182
*
8283
* @return void
8384
*/
@@ -101,6 +102,7 @@ public static function setMaxXP(Player $player, int $max): void
101102
public static function getMaxXP(Player $player): int
102103
{
103104
$db = new JSON($player->getXuid(), Level::FILE_NAME);
105+
104106
return $db->get(self::MAX);
105107
}
106108
}

src/VectorNetworkProject/TheMix/task/UpdateScoreboardTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class UpdateScoreboardTask extends Task
2525
* UpdateScoreboardTask constructor.
2626
*
2727
* @param Scoreboard $scoreboard
28-
* @param Player $player
28+
* @param Player $player
2929
*/
3030
public function __construct(Scoreboard $scoreboard, Player $player)
3131
{

0 commit comments

Comments
 (0)