Completed
Push — master ( cfcf82...657c44 )
by Nick
21:51 queued 16:40
created
classes/Db/Query.php 1 patch
Braces   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -130,7 +130,9 @@  discard block
 block discarded – undo
130 130
             $this->error($this->conn->errorCode() . ': ' . $this->conn->errorInfo()[2]);
131 131
         }
132 132
 
133
-        if (!$this->success) return;
133
+        if (!$this->success) {
134
+            return;
135
+        }
134 136
 
135 137
         if ((!$pdoStatement) or (empty($pdoStatement))) {
136 138
             // A failed query.
@@ -180,8 +182,9 @@  discard block
 block discarded – undo
180 182
      * @param string $column_name
181 183
      */
182 184
     public function field($row_index, $column_name) {
183
-        if ($this->rows > 0)
184
-            return $this->data[$row_index][$column_name];
185
+        if ($this->rows > 0) {
186
+                    return $this->data[$row_index][$column_name];
187
+        }
185 188
         return "";
186 189
     }
187 190
 
@@ -196,8 +199,9 @@  discard block
 block discarded – undo
196 199
      * @param integer $row_index
197 200
      */
198 201
     public function row($row_index) {
199
-        if ($this->success && $this->rows > 0)
200
-            return $this->data[$row_index];
202
+        if ($this->success && $this->rows > 0) {
203
+                    return $this->data[$row_index];
204
+        }
201 205
         return array();
202 206
     }
203 207
 
Please login to merge, or discard this patch.