More yoda conditions

This commit is contained in:
David Stone
2025-02-09 12:30:02 -07:00
parent d9122a410d
commit 0a4c81c105
97 changed files with 323 additions and 289 deletions

View File

@ -139,7 +139,7 @@ if ( ! class_exists('MUCD_Log') ) {
* @return boolean True on success, False on failure
*/
public function write_log($message): bool {
if ($this->mod !== false && $this->can_write() ) {
if (false !== $this->mod && $this->can_write() ) {
$time = @date('[d/M/Y:H:i:s]');
fwrite($this->fp, "$time $message" . "\r\n");
return true;