FML Update 1.4
This commit is contained in:
		| @@ -32,7 +32,7 @@ class AddBuddy extends Element { | ||||
| 	 * @param string $login (optional) Buddy login | ||||
| 	 */ | ||||
| 	public function __construct($login = null) { | ||||
| 		if (!is_null($login)) { | ||||
| 		if ($login !== null) { | ||||
| 			$this->setLogin($login); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -34,7 +34,7 @@ class AddFavorite extends Element { | ||||
| 	 * @param string $login (optional) Server login | ||||
| 	 */ | ||||
| 	public function __construct($login = null) { | ||||
| 		if (!is_null($login)) { | ||||
| 		if ($login !== null) { | ||||
| 			$this->setLogin($login); | ||||
| 		} | ||||
| 	} | ||||
| @@ -71,7 +71,7 @@ class AddFavorite extends Element { | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xmlElement = parent::render($domDocument); | ||||
| 		if (is_null($this->serverIp)) { | ||||
| 		if ($this->serverIp === null) { | ||||
| 			$loginElement = $domDocument->createElement('login', $this->login); | ||||
| 			$xmlElement->appendChild($loginElement); | ||||
| 		} else { | ||||
|   | ||||
| @@ -38,13 +38,13 @@ class GetSkin extends Element { | ||||
| 	 * @param string $url  (optional) Skin url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $file = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name !== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($file)) { | ||||
| 		if ($file !== null) { | ||||
| 			$this->setFile($file); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url !== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -32,7 +32,7 @@ class Go_To extends Element { | ||||
| 	 * @param string $link (optional) Goto link | ||||
| 	 */ | ||||
| 	public function __construct($link = null) { | ||||
| 		if (!is_null($link)) { | ||||
| 		if ($link !== null) { | ||||
| 			$this->setLink($link); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -37,13 +37,13 @@ class InstallMacroblock extends Element { | ||||
| 	 * @param string $url  (optional) Macroblock url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $file = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name !== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($file)) { | ||||
| 		if ($file !== null) { | ||||
| 			$this->setFile($file); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url !== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -35,10 +35,10 @@ class InstallMap extends Element { | ||||
| 	 * @param string $url  (optional) Map url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name !== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url !== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -38,13 +38,13 @@ class InstallPack extends Element { | ||||
| 	 * @param string $url  (optional) Pack url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $file = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name !== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($file)) { | ||||
| 		if ($file !== null) { | ||||
| 			$this->setFile($file); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url !== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -35,10 +35,10 @@ class InstallReplay extends Element { | ||||
| 	 * @param string $url  (optional) Replay url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name!== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url!== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -38,13 +38,13 @@ class InstallScript extends Element { | ||||
| 	 * @param string $url  (optional) Script url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $file = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name !== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($file)) { | ||||
| 		if ($file !== null) { | ||||
| 			$this->setFile($file); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url !== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -38,13 +38,13 @@ class InstallSkin extends Element { | ||||
| 	 * @param string $url  (optional) Skin url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $file = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name !== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($file)) { | ||||
| 		if ($file !== null) { | ||||
| 			$this->setFile($file); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url !== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -34,7 +34,7 @@ class JoinServer extends Element { | ||||
| 	 * @param string $login (optional) Server login | ||||
| 	 */ | ||||
| 	public function __construct($login = null) { | ||||
| 		if (!is_null($login)) { | ||||
| 		if ($login !== null) { | ||||
| 			$this->setLogin($login); | ||||
| 		} | ||||
| 	} | ||||
| @@ -71,7 +71,7 @@ class JoinServer extends Element { | ||||
| 	 */ | ||||
| 	public function render(\DOMDocument $domDocument) { | ||||
| 		$xmlElement = parent::render($domDocument); | ||||
| 		if (is_null($this->serverIp)) { | ||||
| 		if ($this->serverIp === null) { | ||||
| 			$loginElement = $domDocument->createElement('login', $this->login); | ||||
| 			$xmlElement->appendChild($loginElement); | ||||
| 		} else { | ||||
|   | ||||
| @@ -35,10 +35,10 @@ class PlayMap extends Element { | ||||
| 	 * @param string $url  (optional) Map url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name !== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url !== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -35,10 +35,10 @@ class PlayReplay extends Element { | ||||
| 	 * @param string $url  (optional) Replay url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name !== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url !== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -32,7 +32,7 @@ class ShowMessage extends Element { | ||||
| 	 * @param string $message (optional) Message text | ||||
| 	 */ | ||||
| 	public function __construct($message = null) { | ||||
| 		if (!is_null($message)) { | ||||
| 		if ($message !== null) { | ||||
| 			$this->setMessage($message); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
| @@ -35,10 +35,10 @@ class ViewReplay extends Element { | ||||
| 	 * @param string $url  (optional) Replay url | ||||
| 	 */ | ||||
| 	public function __construct($name = null, $url = null) { | ||||
| 		if (!is_null($name)) { | ||||
| 		if ($name !== null) { | ||||
| 			$this->setName($name); | ||||
| 		} | ||||
| 		if (!is_null($url)) { | ||||
| 		if ($url !== null) { | ||||
| 			$this->setUrl($url); | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user