block: Avoid use of is_null() PHP function where necessary
authorDerick Alangi <alangiderick@gmail.com>
Fri, 11 Jan 2019 15:49:44 +0000 (16:49 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Fri, 11 Jan 2019 15:49:44 +0000 (16:49 +0100)
commit78b005d86d5582aa47687f7622c9987312c3c368
tree793f84e0f3868477e58f48c047cdffad80a3f816
parentc3f45c864a4f316624f47a622680eb440b98dfc7
block: Avoid use of is_null() PHP function where necessary

WRT performance, is_null() is a few nanoseconds slower than === null
due to function call overhead. Also, I personally think using the
identical check on null is slightly more readable than using is_null().

Change-Id: I83cd7a6ca49acc548a7f46b2c37dfa189889bd19
includes/block/BlockRestriction.php