Skip to content
Permalink
Browse files

Simplify ValueBinder::placeholder()

Remove un-necessary code.
  • Loading branch information...
markstory committed Sep 22, 2014
1 parent ac5282d commit b7ae2a539309338445b0fbb9c3da77e8310733c1
Showing with 3 additions and 6 deletions.
  1. +3 −6 src/Database/ValueBinder.php
@@ -63,14 +63,11 @@ public function bind($param, $value, $type = 'string') {
* @return string to be used as a placeholder in a query expression
*/
public function placeholder($token) {
$param = $token;
$number = $this->_bindingsCount++;
if ($param[0] !== ':' || $param !== '?') {
$param = sprintf(':c%s', $number);
if ($token[0] !== ':' || $token !== '?') {
$token = sprintf(':c%s', $number);
}
return $param;
return $token;
}
/**

0 comments on commit b7ae2a5

Please sign in to comment.
You can’t perform that action at this time.