Skip to content
This repository
Browse code

CS fixes for paginator adapter, removing fluid interface

  • Loading branch information...
commit 7bd56c948b2a9a4f636d39449bf26d935edaac1e 1 parent 45e2b24
Marco Pivetta authored June 01, 2012
11  src/DoctrineORMModule/Paginator/Adapter.php
@@ -24,7 +24,7 @@
24 24
 use Zend\Paginator\Adapter\AdapterInterface;
25 25
 
26 26
 /**
27  
- * Paginator adapter for Zend Paginator
  27
+ * Paginator adapter for the Zend\Paginator component
28 28
  *
29 29
  * @license MIT
30 30
  * @link    http://www.doctrine-project.org/
@@ -55,11 +55,10 @@ public function __construct(Paginator $paginator)
55 55
     public function setPaginator(Paginator $paginator)
56 56
     {
57 57
         $this->paginator = $paginator;
58  
-        return $this;
59 58
     }
60 59
 
61 60
     /**
62  
-     * @return \Doctrine\ORM\Tools\Pagination\Paginator
  61
+     * @return Paginator
63 62
      */
64 63
     public function getPaginator()
65 64
     {
@@ -76,8 +75,7 @@ public function getItems($offset, $itemCountPerPage)
76 75
             ->setFirstResult($offset)
77 76
             ->setMaxResults($itemCountPerPage);
78 77
 
79  
-        return $this->paginator
80  
-                    ->getIterator();
  78
+        return $this->paginator->getIterator();
81 79
     }
82 80
 
83 81
     /**
@@ -85,7 +83,6 @@ public function getItems($offset, $itemCountPerPage)
85 83
      */
86 84
     public function count()
87 85
     {
88  
-        return $this->paginator
89  
-                    ->count();
  86
+        return $this->paginator->count();
90 87
     }
91 88
 }

0 notes on commit 7bd56c9

Please sign in to comment.
Something went wrong with that request. Please try again.