Lots of typos fixed, undefined variables, unused code

This commit is contained in:
Shoghi Cervantes
2014-02-19 01:55:42 +01:00
parent 3d3111fef6
commit f1b5f83fd4
35 changed files with 63 additions and 251 deletions

View File

@@ -76,7 +76,6 @@ class Config{
*/
public function __construct($file, $type = CONFIG_DETECT, $default = array(), &$correct = null){
$this->load($file, $type, $default);
$correct = $this->check();
}
public function reload(){
@@ -84,7 +83,6 @@ class Config{
unset($this->correct);
unset($this->type);
$this->load($this->file);
$correct = $this->check();
}
public function fixYAMLIndexes($str){
@@ -141,7 +139,6 @@ class Config{
default:
$this->correct = false;
return false;
break;
}
if(!is_array($this->config)){
$this->config = $default;

View File

@@ -107,7 +107,7 @@ class NBT{
}
public function writeTAG_FLOAT($v){
$this->binary .= Utils::writeLFloar($v);
$this->binary .= Utils::writeLFloat($v);
}
public function writeTAG_DOUBLE($v){

View File

@@ -620,7 +620,7 @@ class Utils{
}
public static function writeLLong($value){
return strrev(Utils::writeLong($str));
return strrev(Utils::writeLong($value));
}

View File

@@ -33,6 +33,7 @@ class VersionString{
private $release;
private $minor;
private $development = false;
private $generation;
public function __construct($version = MAJOR_VERSION){
if(is_int($version)){
$this->minor = $version & 0x1F;

View File

@@ -87,7 +87,7 @@ class AsyncMultipleQueue extends Thread{
$d = array();
for($c = 0; $c < $cnt; ++$c){
$key = $this->get(Utils::readShort($this->get(2), false));
$d[$key] = $this->get(Utils::readInt($this->get(4), false));
$d[$key] = $this->get(Utils::readInt($this->get(4)));
}
$res = (string) Utils::curl_post($url, $d, $timeout);
$this->lock();