original_string: protected function makePagerFromArray($data, $page = 1, $limit = 10)
      {
          $adapter = new ArrayAdapter($data);
          $pager   = new Pagerfanta($adapter);
          $pager->setMaxPerPage($limit);
          $pager->setCurrentPage($page);
  
          return $pager;
      }
code: protected function makePagerFromArray($data, $page = 1, $limit = 10)
      {
          $adapter = new ArrayAdapter($data);
          $pager   = new Pagerfanta($adapter);
          $pager->setMaxPerPage($limit);
          $pager->setCurrentPage($page);
  
          return $pager;
      }
code_tokens: protected function makePagerFromArray ( $ data , $ page = 1 , $ limit = 10 ) { $ adapter = new ArrayAdapter ( $ data ) ; $ pager = new Pagerfanta ( $ adapter ) ; $ pager -> setMaxPerPage ( $ limit ) ; $ pager -> setCurrentPage ( $ page ) ; return $ pager ; }
docstring: Creates a pager from an array
  
  @param     $data
  @param int $page
  @param int $limit
  @return Pagerfanta
docstring_tokens: Creates a pager from an array