From 1edf0a0981dfbd13554e43e6c3030d5e0ff69756 Mon Sep 17 00:00:00 2001 From: Alexander Kochetov Date: Sat, 4 Jan 2014 18:42:22 +0400 Subject: [PATCH] FixtureController code style fixes and typo fixes --- framework/yii/console/controllers/FixtureController.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/framework/yii/console/controllers/FixtureController.php b/framework/yii/console/controllers/FixtureController.php index d870166..d5aa8e9 100644 --- a/framework/yii/console/controllers/FixtureController.php +++ b/framework/yii/console/controllers/FixtureController.php @@ -106,9 +106,8 @@ class FixtureController extends Controller */ public function actionApply(array $fixtures) { - if ($this->getFixtureManager() == null) { - throw new Exception('Fixture manager is not configured properly. ' - . 'Please refer to official documentation for this purposes.'); + if ($this->getFixtureManager() === null) { + throw new Exception('Fixture manager is not configured properly. Please refer to official documentation for this purposes.'); } if (!$this->confirmApply($fixtures)) { @@ -148,7 +147,7 @@ class FixtureController extends Controller $path = Yii::getAlias($this->fixturePath, false); if (!is_dir($path) || !is_writable($path)) { - throw new Exception("The fixtures path \"{$this->fixturePath}\" not exist or is not writable"); + throw new Exception("The fixtures path \"{$this->fixturePath}\" not exist or is not writable."); } }