Skip to content

Commit

Permalink
Merge pull request #1774 from creocoder/fixture-controller-code-style…
Browse files Browse the repository at this point in the history
…-fixes

FixtureController code style fixes and typo fixes
  • Loading branch information
cebe committed Jan 4, 2014
2 parents 74e7064 + 1edf0a0 commit f361556
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions framework/yii/console/controllers/FixtureController.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@ public function beforeAction($action)
*/
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)) {
Expand Down Expand Up @@ -148,7 +147,7 @@ public function checkRequirements()
$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.");
}

}
Expand Down

0 comments on commit f361556

Please sign in to comment.