More yoda conditions
This commit is contained in:
@ -241,7 +241,7 @@ class CPanel_Host_Provider extends Base_Host_Provider {
|
||||
*/
|
||||
public function load_api() {
|
||||
|
||||
if ($this->api === null) {
|
||||
if (null === $this->api) {
|
||||
$username = defined('WU_CPANEL_USERNAME') ? WU_CPANEL_USERNAME : '';
|
||||
$password = defined('WU_CPANEL_PASSWORD') ? WU_CPANEL_PASSWORD : '';
|
||||
$host = defined('WU_CPANEL_HOST') ? WU_CPANEL_HOST : '';
|
||||
|
@ -243,7 +243,7 @@ class CPanel_API {
|
||||
|
||||
$reply = json_decode((string) $reply, true);
|
||||
|
||||
if (isset($reply['status']) && $reply['status'] == 1) { // phpcs:ignore
|
||||
if (isset($reply['status']) && 1 == $reply['status']) { // phpcs:ignore
|
||||
|
||||
$this->cpsess = $reply['security_token'];
|
||||
$this->homepage = $this->get_base_url() . $reply['redirect'];
|
||||
|
Reference in New Issue
Block a user