Skip to content

Commit

Permalink
Merge pull request #9 from rapidwebltd/analysis-X05k4x
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
DivineOmega authored Mar 28, 2018
2 parents 73435e0 + e14250d commit 0d169d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Objects/Sources/WordPressPostSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function countDataRows()
$sql = $this->getPostSQL([]);
$fromPos = stripos($sql, 'from');
$limitPos = strripos($sql, 'limit');
$sqlSuffix = substr($sql, $fromPos, $limitPos-$fromPos);
$sqlSuffix = substr($sql, $fromPos, $limitPos - $fromPos);

$sql = 'count (*) '.$sqlSuffix;
}
Expand Down

0 comments on commit 0d169d5

Please sign in to comment.