More yoda conditions
This commit is contained in:
1 parent
d9122a410d
commit
0a4c81c105
97 files changed
+323
-289
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user