From bea50f52469e488bc81217f25593885bd19101e4 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 9 Feb 2012 20:00:25 -0500 Subject: [PATCH] Fix whitespace. --- lib/Cake/View/Elements/sql_dump.ctp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/Cake/View/Elements/sql_dump.ctp b/lib/Cake/View/Elements/sql_dump.ctp index 9e637251d..bdbbb7592 100644 --- a/lib/Cake/View/Elements/sql_dump.ctp +++ b/lib/Cake/View/Elements/sql_dump.ctp @@ -37,7 +37,7 @@ if ($noLogs || isset($_forced_from_dbo_)): foreach ($logs as $source => $logInfo): $text = $logInfo['count'] > 1 ? 'queries' : 'query'; printf( - '', + '
', preg_replace('/[^A-Za-z0-9_]/', '_', uniqid(time(), true)) ); printf('', $source, $logInfo['count'], $text, $logInfo['time']); @@ -49,13 +49,13 @@ if ($noLogs || isset($_forced_from_dbo_)): $i) : $i += array('error' => ''); - if(!empty($i['params']) && is_array($i['params'])) { + if (!empty($i['params']) && is_array($i['params'])) { $bindParam = $bindType = null; - if(preg_match('/.+ :.+/', $i['query'])) { + if (preg_match('/.+ :.+/', $i['query'])) { $bindType = true; } - foreach($i['params'] as $bindKey => $bindVal) { - if($bindType === true) { + foreach ($i['params'] as $bindKey => $bindVal) { + if ($bindType === true) { $bindParam .= h($bindKey) ." => " . h($bindVal) . ", "; } else { $bindParam .= h($bindVal) . ", ";
(%s) %s %s took %s ms