mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 08:17:34 +00:00
Some PhpStorm cleanup
This commit is contained in:
parent
5a12f40074
commit
8f9c52507a
@ -65,7 +65,6 @@ namespace {
|
||||
}
|
||||
|
||||
namespace pocketmine {
|
||||
use pocketmine\network\protocol\Info as ProtocolInfo;
|
||||
use pocketmine\utils\Binary;
|
||||
use pocketmine\utils\MainLogger;
|
||||
use pocketmine\utils\ServerKiller;
|
||||
|
@ -65,9 +65,6 @@ abstract class Command{
|
||||
/** @var string */
|
||||
protected $usageMessage;
|
||||
|
||||
/** @var string */
|
||||
private $permission = null;
|
||||
|
||||
/** @var string */
|
||||
private $permissionMessage = null;
|
||||
|
||||
|
@ -35,7 +35,6 @@ class CommandReader extends Thread{
|
||||
protected $buffer;
|
||||
private $shutdown = false;
|
||||
private $type = self::TYPE_STREAM;
|
||||
private $lastLine = -1;
|
||||
|
||||
public function __construct(){
|
||||
$this->buffer = new \Threaded;
|
||||
@ -89,6 +88,7 @@ class CommandReader extends Thread{
|
||||
/**
|
||||
* Checks if the specified stream is a FIFO pipe.
|
||||
*
|
||||
* @param resource $stream
|
||||
* @return bool
|
||||
*/
|
||||
private function isPipe($stream) : bool{
|
||||
|
@ -36,8 +36,6 @@ class ChunkUtils{
|
||||
$result = str_repeat("\x00", 4096);
|
||||
if($array !== $result){
|
||||
$i = 0;
|
||||
$zM = 0;
|
||||
$yM = 0;
|
||||
for($x = 0; $x < 16; ++$x){
|
||||
$zM = $x + 256;
|
||||
for($z = $x; $z < $zM; $z += 16){
|
||||
|
@ -58,13 +58,13 @@ class Installer{
|
||||
$this->lang = new InstallerLang($lang);
|
||||
|
||||
|
||||
echo "[*] " . $this->lang->language_has_been_selected . "\n";
|
||||
echo "[*] " . $this->lang->get("language_has_been_selected") . "\n";
|
||||
|
||||
if(!$this->showLicense()){
|
||||
return false;
|
||||
}
|
||||
|
||||
echo "[?] " . $this->lang->skip_installer . " (y/N): ";
|
||||
echo "[?] " . $this->lang->get("skip_installer") . " (y/N): ";
|
||||
if(strtolower($this->getInput()) === "y"){
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user