Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelTO authored and MarcelTO committed Aug 15, 2013
1 parent b94675d commit 8af59fc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions library/Zend/Db/Adapter/Driver/Sqlsrv/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public function getSql()
}

/**
* @param string $sql
* @param string $sql
* @throws Exception\RuntimeException
* @return Statement
*/
Expand All @@ -204,6 +204,7 @@ public function prepare($sql = null)
$this->resource = sqlsrv_prepare($this->sqlsrv, $sql, $pRef, $this->options);

$this->isPrepared = true;

return $this;
}

Expand Down Expand Up @@ -294,7 +295,7 @@ protected function bindParametersFromContainer()
$params = array($value, \SQLSRV_PARAM_IN, null, null);
$this->parameterReferences[$position++] = $params;
}
}elseif(is_array($value)){
} elseif (is_array($value)) {
$this->parameterReferences[$position++] = $value;
} else {
$params = array($value, \SQLSRV_PARAM_IN, null, null);
Expand All @@ -305,9 +306,9 @@ protected function bindParametersFromContainer()

public function setQueryTimeout($queryTimeout)
{
if(is_int($queryTimeout)){
if (is_int($queryTimeout)) {
$this->options['QueryTimeout'] = $queryTimeout;
}else{
} else {
$message = 'Invalid argument provided to ';
$message.= __METHOD__ . ' method in class ' . __CLASS__;
throw new Exception\InvalidArgumentException($message);
Expand All @@ -316,9 +317,9 @@ public function setQueryTimeout($queryTimeout)

public function setSendStreamParamsAtExec($sendStreamParamsAtExec)
{
if(is_bool($sendStreamParamsAtExec)){
if (is_bool($sendStreamParamsAtExec)) {
$this->options['SendStreamParamsAtExec'] = $sendStreamParamsAtExec;
}else{
} else {
$message = 'Invalid argument provided to ';
$message.= __METHOD__ . ' method in class ' . __CLASS__;
throw new Exception\InvalidArgumentException($message);
Expand Down

0 comments on commit 8af59fc

Please sign in to comment.