Fix some doc comments

This commit is contained in:
Dylan K. Taylor
2017-02-06 14:50:05 +00:00
parent 7c8586684e
commit 0c35c16727
11 changed files with 25 additions and 27 deletions

View File

@ -26,8 +26,6 @@ use pocketmine\Server;
/**
* Class Config
*
* Config Class for simple config manipulation of multiple formats.
*/
class Config{
@ -48,9 +46,9 @@ class Config{
/** @var string */
private $file;
/** @var boolean */
/** @var bool */
private $correct = false;
/** @var integer */
/** @var int */
private $type = Config::DETECT;
public static $formats = [
@ -168,7 +166,7 @@ class Config{
}
/**
* @return boolean
* @return bool
*/
public function check(){
return $this->correct === true;
@ -177,7 +175,7 @@ class Config{
/**
* @param bool $async
*
* @return boolean
* @return bool
*/
public function save($async = false){
if($this->correct === true){
@ -224,7 +222,7 @@ class Config{
/**
* @param $k
*
* @return boolean|mixed
* @return bool|mixed
*/
public function __get($k){
return $this->get($k);
@ -241,7 +239,7 @@ class Config{
/**
* @param $k
*
* @return boolean
* @return bool
*/
public function __isset($k){
return $this->exists($k);
@ -315,7 +313,7 @@ class Config{
* @param $k
* @param mixed $default
*
* @return boolean|mixed
* @return bool|mixed
*/
public function get($k, $default = false){
return ($this->correct and isset($this->config[$k])) ? $this->config[$k] : $default;
@ -345,7 +343,7 @@ class Config{
* @param $k
* @param bool $lowercase If set, searches Config in single-case / lowercase.
*
* @return boolean
* @return bool
*/
public function exists($k, $lowercase = false){
if($lowercase === true){
@ -384,7 +382,7 @@ class Config{
* @param $default
* @param $data
*
* @return integer
* @return int
*/
private function fillDefaults($default, &$data){
$changed = 0;