From 2eb91acefdd986b2be159995a6b06fe1f4b088ad Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 5 Jan 2014 23:33:11 +0400 Subject: [PATCH] CS fix --- framework/yii/console/controllers/FixtureController.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/framework/yii/console/controllers/FixtureController.php b/framework/yii/console/controllers/FixtureController.php index 08f9fae..0b400e8 100644 --- a/framework/yii/console/controllers/FixtureController.php +++ b/framework/yii/console/controllers/FixtureController.php @@ -141,13 +141,11 @@ class FixtureController extends Controller $transaction = Yii::$app->db->beginTransaction(); - try - { + try { $this->loadFixtures($foundFixtures); $transaction->commit(); - } catch (\Exception $e) - { + } catch (\Exception $e) { $transaction->rollback(); $this->stdout("Exception occured, transaction rollback. Tables will be in same state.\n", Console::BG_RED); throw $e; @@ -173,8 +171,7 @@ class FixtureController extends Controller $transaction = Yii::$app->db->beginTransaction(); - try - { + try { $this->getDbConnection()->createCommand()->checkIntegrity(false)->execute(); foreach($tables as $table) { @@ -186,8 +183,7 @@ class FixtureController extends Controller $this->getDbConnection()->createCommand()->checkIntegrity(true)->execute(); $transaction->commit(); - } catch (\Exception $e) - { + } catch (\Exception $e) { $transaction->rollback(); $this->stdout("Exception occured, transaction rollback. Tables will be in same state.\n", Console::BG_RED); throw $e;