'null === ...' can be used.

(cherry picked from commit ec96f65)
This commit is contained in:
Yuriy Pikhtarev 2017-05-05 00:59:05 +03:00 committed by Vasily Komrakov
commit 64df3c5538
No known key found for this signature in database
GPG key ID: 558236680C20A69A
8 changed files with 47 additions and 47 deletions

View file

@ -593,7 +593,7 @@ class bbcode
if (!$bb_cfg['spam_filter_file_path']) {
return $text;
}
if (is_null($spam_words)) {
if (null === $spam_words) {
$spam_words = file_get_contents($bb_cfg['spam_filter_file_path']);
$spam_words = strtolower($spam_words);
$spam_words = explode("\n", $spam_words);
@ -738,7 +738,7 @@ class bbcode
{
global $datastore;
if (is_null($this->smilies)) {
if (null === $this->smilies) {
$this->smilies = $datastore->get('smile_replacements');
}
if ($this->smilies) {