@@ -166,21 +166,21 @@ public function rollBack()
166166
167167 /**
168168 * Generates and executes SQL query.
169- * @param string statement
169+ * @param string
170170 * @param mixed [parameters, ...]
171171 * @return ResultSet
172172 */
173- public function query ($ statement )
173+ public function query ($ sql )
174174 {
175175 $ this ->connect ();
176176
177- $ args = is_array ($ statement ) ? $ statement : func_get_args (); // accepts arrays only internally
178- list ($ statement , $ params ) = count ($ args ) > 1
177+ $ args = is_array ($ sql ) ? $ sql : func_get_args (); // accepts arrays only internally
178+ list ($ sql , $ params ) = count ($ args ) > 1
179179 ? $ this ->preprocessor ->process ($ args )
180180 : [$ args [0 ], []];
181181
182182 try {
183- $ result = new ResultSet ($ this , $ statement , $ params );
183+ $ result = new ResultSet ($ this , $ sql , $ params );
184184 } catch (PDOException $ e ) {
185185 $ this ->onQuery ($ this , $ e );
186186 throw $ e ;
@@ -191,26 +191,25 @@ public function query($statement)
191191
192192
193193 /**
194- * @param string statement
195- * @param array
194+ * @param string
196195 * @return ResultSet
197196 */
198- public function queryArgs ($ statement , array $ params )
197+ public function queryArgs ($ sql , array $ params )
199198 {
200- array_unshift ($ params , $ statement );
199+ array_unshift ($ params , $ sql );
201200 return $ this ->query ($ params );
202201 }
203202
204203
205204 /**
206205 * @return [string, array]
207206 */
208- public function preprocess ($ statement )
207+ public function preprocess ($ sql )
209208 {
210209 $ this ->connect ();
211210 return func_num_args () > 1
212211 ? $ this ->preprocessor ->process (func_get_args ())
213- : [$ statement , []];
212+ : [$ sql , []];
214213 }
215214
216215
@@ -219,7 +218,7 @@ public function preprocess($statement)
219218
220219 /**
221220 * Shortcut for query()->fetch()
222- * @param string statement
221+ * @param string
223222 * @param mixed [parameters, ...]
224223 * @return Row
225224 */
@@ -231,7 +230,7 @@ public function fetch($args)
231230
232231 /**
233232 * Shortcut for query()->fetchField()
234- * @param string statement
233+ * @param string
235234 * @param mixed [parameters, ...]
236235 * @return mixed
237236 */
@@ -243,7 +242,7 @@ public function fetchField($args)
243242
244243 /**
245244 * Shortcut for query()->fetchPairs()
246- * @param string statement
245+ * @param string
247246 * @param mixed [parameters, ...]
248247 * @return array
249248 */
@@ -255,7 +254,7 @@ public function fetchPairs($args)
255254
256255 /**
257256 * Shortcut for query()->fetchAll()
258- * @param string statement
257+ * @param string
259258 * @param mixed [parameters, ...]
260259 * @return array
261260 */
0 commit comments