@@ -135,7 +135,7 @@ public function getTotalItems()
135135 */
136136 public function getLastItem ()
137137 {
138- return (is_array ($ this ->items ) == true ) ? end ($ this ->items ) : Self::UNKNOWN ;
138+ return (\ is_array ($ this ->items ) == true ) ? \ end ($ this ->items ) : Self::UNKNOWN ;
139139 }
140140
141141 /**
@@ -165,7 +165,7 @@ public function getPerPage()
165165 */
166166 public function getItemsCount ()
167167 {
168- return count ($ this ->items );
168+ return \ count ($ this ->items );
169169 }
170170
171171 /**
@@ -206,7 +206,7 @@ public function getPaginatorData()
206206 */
207207 public static function create ($ source , $ page = 1 , $ perPage = Self::DEFAULT_PER_PAGE )
208208 {
209- if (is_null ($ source ) == true || empty ($ source ) == true ) {
209+ if (\ is_null ($ source ) == true || empty ($ source ) == true ) {
210210 return new Self ();
211211 };
212212
@@ -223,7 +223,7 @@ public static function create($source, $page = 1, $perPage = Self::DEFAULT_PER_P
223223 $ paginator = new ArrayPaginator ($ source ->toArray (),$ page ,$ perPage );
224224 break ;
225225 }
226- case is_array ($ source ): {
226+ case \ is_array ($ source ): {
227227 $ paginator = new ArrayPaginator ($ source ,$ page ,$ perPage );
228228 break ;
229229 }
@@ -247,7 +247,8 @@ public static function create($source, $page = 1, $perPage = Self::DEFAULT_PER_P
247247 protected function sliceItems ($ items )
248248 {
249249 $ offset = ($ this ->currentPage - 1 ) * $ this ->getPerPage ();
250- return array_slice ($ items ,$ offset ,$ this ->getPerPage ());
250+
251+ return \array_slice ($ items ,$ offset ,$ this ->getPerPage ());
251252 }
252253
253254 /**
@@ -257,6 +258,6 @@ protected function sliceItems($items)
257258 */
258259 protected function calcLastPage ()
259260 {
260- return max ((int )ceil ($ this ->total / $ this ->perPage ), 1 );
261+ return \ max ((int )\ ceil ($ this ->total / $ this ->perPage ), 1 );
261262 }
262263}
0 commit comments