From e0fa72135d992aa1c25b781fe2cc8f4aa7ee5a51 Mon Sep 17 00:00:00 2001 From: "Paul M. Jones" Date: Mon, 9 Nov 2015 09:33:41 -0600 Subject: [PATCH] internal rename of array key variable --- src/Common/Select.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Common/Select.php b/src/Common/Select.php index 5d69b00..953c69a 100644 --- a/src/Common/Select.php +++ b/src/Common/Select.php @@ -260,25 +260,24 @@ protected function addColWithAlias($spec) /** * - * Remove a column via it's alias + * Remove a column via its alias. * - * @param string $value The column to remove + * @param string $alias The column to remove * * @return null * */ - public function removeCol($value) + public function removeCol($alias) { - if (isset($this->cols[$value])) { - unset($this->cols[$value]); + if (isset($this->cols[$alias])) { + unset($this->cols[$alias]); return true; } - $index = array_search($value, $this->cols); + $index = array_search($alias, $this->cols); if ($index !== false) { unset($this->cols[$index]); - return true; }