From 139950fac26ab124001df2dcec49a085cfcd0507 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Wed, 5 Sep 2012 17:44:09 -0400 Subject: [PATCH] PSR fixes --- airtime_mvc/application/common/Database.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/common/Database.php b/airtime_mvc/application/common/Database.php index 96e6e6770..d0ee39b78 100644 --- a/airtime_mvc/application/common/Database.php +++ b/airtime_mvc/application/common/Database.php @@ -1,6 +1,7 @@ prepare($sql); foreach ($paramValueMap as $param => $v) { @@ -10,7 +11,7 @@ class Application_Common_Database{ if ($stmt->execute()) { if ($type == 'single') { $rows = $stmt->fetch(PDO::FETCH_ASSOC); - } else if ($type == 'column'){ + } elseif ($type == 'column'){ $rows = $stmt->fetchColumn(); } else { $rows = $stmt->fetchAll(PDO::FETCH_ASSOC); @@ -21,4 +22,4 @@ class Application_Common_Database{ } return $rows; } -} \ No newline at end of file +}