Use Yoda conditions (and strict comparisons), we must
This commit is contained in:
parent
1b084bb52c
commit
2e311ed267
5 changed files with 32 additions and 32 deletions
|
@ -1057,7 +1057,7 @@ class MCI_Footnotes_Settings {
|
|||
*/
|
||||
public static function instance() {
|
||||
// No instance defined yet, load it.
|
||||
if ( self::$a_obj_instance === null ) {
|
||||
if ( ! self::$a_obj_instance ) {
|
||||
self::$a_obj_instance = new self();
|
||||
}
|
||||
// Return a singleton of this class.
|
||||
|
|
Reference in a new issue