From a2d4af5449046754959486c7b18cd35c6b9f6ff7 Mon Sep 17 00:00:00 2001 From: Naomi Date: Mon, 29 Jul 2013 17:22:44 -0400 Subject: [PATCH] CRLF --- .../controllers/PlayouthistoryController.php | 2 +- .../application/services/HistoryService.php | 24 +++++++++---------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/airtime_mvc/application/controllers/PlayouthistoryController.php b/airtime_mvc/application/controllers/PlayouthistoryController.php index 6dbb82332..c0c323932 100644 --- a/airtime_mvc/application/controllers/PlayouthistoryController.php +++ b/airtime_mvc/application/controllers/PlayouthistoryController.php @@ -212,7 +212,7 @@ class PlayouthistoryController extends Zend_Controller_Action $params = $request->getPost(); Logging::info($params); - $historyService = new Application_Service_HistoryService(); + $historyService = new Application_Service_HistoryService(); $historyService->createItemTemplate($params); } diff --git a/airtime_mvc/application/services/HistoryService.php b/airtime_mvc/application/services/HistoryService.php index 027be3d2d..b1248a255 100644 --- a/airtime_mvc/application/services/HistoryService.php +++ b/airtime_mvc/application/services/HistoryService.php @@ -474,18 +474,18 @@ class Application_Service_HistoryService public function createItemTemplate($fields) { - $this->con->beginTransaction(); - - try { - - $template = new CcPlayoutHistoryTemplate(); - - $this->con->commit(); - } - catch (Exception $e) { - $this->con->rollback(); - Logging::info($e); - throw $e; + $this->con->beginTransaction(); + + try { + + $template = new CcPlayoutHistoryTemplate(); + + $this->con->commit(); + } + catch (Exception $e) { + $this->con->rollback(); + Logging::info($e); + throw $e; } }