Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
skalmi committed Mar 31, 2014
1 parent 28cdd23 commit d0ccc8a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Model/Datasource/HttpSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ abstract class HttpSource extends DataSource {
*
* @var array
*/
protected $_log_row = array();
protected $_logRow = array();

/**
* Constructor
Expand Down Expand Up @@ -336,15 +336,15 @@ public function logRequest() {

$this->logPrepare();

$this->_requestsLog[] = $this->_log_row;
$this->_requestsLog[] = $this->_logRow;
$this->_requestsTime += $this->took;
if (count($this->_requestsLog) > $this->_requestsLogMax) {
array_shift($this->_requestsLog);
}

if (!empty($this->error)) {
$this->_log_row['query'] .= "\nERROR: ".$this->error;
$this->log(get_class($this) . ': ' . $this->error . "\n" . $this->_log_row['query'], LOG_ERR);
$this->_logRow['query'] .= "\nERROR: " . $this->error;
$this->log(get_class($this) . ': ' . $this->error . "\n" . $this->_logRow['query'], LOG_ERR);
}
}

Expand All @@ -354,7 +354,7 @@ public function logRequest() {
* @return void
*/
public function logPrepare() {
$this->_log_row = array(
$this->_logRow = array(
'query' => mb_strlen($this->query) > static::LOG_MAX_LENGTH ? mb_substr($this->query, 0, static::LOG_MAX_LENGTH) . ' ' . static::LOG_TRUNCATED : $this->query,
'affected' => $this->affected,
'numRows' => $this->numRows,
Expand Down

0 comments on commit d0ccc8a

Please sign in to comment.