Some PhpStorm cleanup

This commit is contained in:
Dylan K. Taylor 2017-02-12 12:36:02 +00:00
parent 5a12f40074
commit 8f9c52507a
5 changed files with 3 additions and 9 deletions

View File

@ -65,7 +65,6 @@ namespace {
} }
namespace pocketmine { namespace pocketmine {
use pocketmine\network\protocol\Info as ProtocolInfo;
use pocketmine\utils\Binary; use pocketmine\utils\Binary;
use pocketmine\utils\MainLogger; use pocketmine\utils\MainLogger;
use pocketmine\utils\ServerKiller; use pocketmine\utils\ServerKiller;

View File

@ -65,9 +65,6 @@ abstract class Command{
/** @var string */ /** @var string */
protected $usageMessage; protected $usageMessage;
/** @var string */
private $permission = null;
/** @var string */ /** @var string */
private $permissionMessage = null; private $permissionMessage = null;

View File

@ -35,7 +35,6 @@ class CommandReader extends Thread{
protected $buffer; protected $buffer;
private $shutdown = false; private $shutdown = false;
private $type = self::TYPE_STREAM; private $type = self::TYPE_STREAM;
private $lastLine = -1;
public function __construct(){ public function __construct(){
$this->buffer = new \Threaded; $this->buffer = new \Threaded;
@ -89,6 +88,7 @@ class CommandReader extends Thread{
/** /**
* Checks if the specified stream is a FIFO pipe. * Checks if the specified stream is a FIFO pipe.
* *
* @param resource $stream
* @return bool * @return bool
*/ */
private function isPipe($stream) : bool{ private function isPipe($stream) : bool{

View File

@ -36,8 +36,6 @@ class ChunkUtils{
$result = str_repeat("\x00", 4096); $result = str_repeat("\x00", 4096);
if($array !== $result){ if($array !== $result){
$i = 0; $i = 0;
$zM = 0;
$yM = 0;
for($x = 0; $x < 16; ++$x){ for($x = 0; $x < 16; ++$x){
$zM = $x + 256; $zM = $x + 256;
for($z = $x; $z < $zM; $z += 16){ for($z = $x; $z < $zM; $z += 16){

View File

@ -58,13 +58,13 @@ class Installer{
$this->lang = new InstallerLang($lang); $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()){ if(!$this->showLicense()){
return false; return false;
} }
echo "[?] " . $this->lang->skip_installer . " (y/N): "; echo "[?] " . $this->lang->get("skip_installer") . " (y/N): ";
if(strtolower($this->getInput()) === "y"){ if(strtolower($this->getInput()) === "y"){
return true; return true;
} }