From e14250d263d61be23f8aa64564fafc420adf0487 Mon Sep 17 00:00:00 2001 From: Jordan Hall Date: Wed, 28 Mar 2018 14:39:42 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Objects/Sources/WordPressPostSource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Objects/Sources/WordPressPostSource.php b/src/Objects/Sources/WordPressPostSource.php index 3109dca..9abe0f3 100644 --- a/src/Objects/Sources/WordPressPostSource.php +++ b/src/Objects/Sources/WordPressPostSource.php @@ -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; }