Everywhere yoda conditions are

This commit is contained in:
David Stone
2025-02-09 00:20:10 -07:00
parent d74f6d1a53
commit be0ab98895
213 changed files with 691 additions and 412 deletions

View File

@ -35,6 +35,7 @@ class Session_Cookie implements Session {
* @var boolean
*/
protected $loaded = false;
/**
* @var string
*/
@ -91,6 +92,7 @@ class Session_Cookie implements Session {
return is_array($this->data) && isset($this->data[ $key ]) ? $this->data[ $key ] : null;
}
/**
* Set the value of a session key.
*
@ -105,6 +107,7 @@ class Session_Cookie implements Session {
return true;
}
/**
* Appends values to a given key, instead of replacing it.
*
@ -121,6 +124,7 @@ class Session_Cookie implements Session {
return true;
}
/**
* Writes to the session and closes the connection.
*
@ -129,7 +133,7 @@ class Session_Cookie implements Session {
*/
public function commit($expire = null): bool {
if ($expire === null) {
if (null === $expire) {
$expire = HOUR_IN_SECONDS;
}