Boolean and Null should be compared strictly.

This commit is contained in:
Andrés Montañez
2014-10-11 14:43:57 -02:00
parent 5d39e46d9e
commit f20091afc6
11 changed files with 25 additions and 25 deletions
+2 -2
View File
@@ -131,7 +131,7 @@ class Console
$command = Factory::get($commandName, $config);
if ($command instanceOf RequiresEnvironment) {
if ($config->getEnvironment() == false) {
if ($config->getEnvironment() === false) {
throw new Exception('You must specify an environment for this command.');
}
}
@@ -222,7 +222,7 @@ class Console
public static function log($message)
{
if (self::$logEnabled) {
if (self::$log == null) {
if (self::$log === null) {
self::$logFile = realpath(getcwd() . '/.mage/logs') . '/log-' . date('Ymd-His') . '.log';
self::$log = fopen(self::$logFile, 'w');
}