original_string: protected function getPager(AdapterInterface $adapter, $currentPage, $maxPerPage)
      {
          @trigger_error(
              'PagerfantaFindTrait is deprecated since version 2.5 and will be removed in 3.0. Use PagerfantaTrait instead.',
              E_USER_DEPRECATED
          );
  
          $pager = new Pagerfanta($adapter);
          $pager->setNormalizeOutOfRangePages(true);
          $pager->setMaxPerPage($maxPerPage);
          $pager->setCurrentPage($currentPage);
  
          return $pager;
      }
code: protected function getPager(AdapterInterface $adapter, $currentPage, $maxPerPage)
      {
          @trigger_error(
              'PagerfantaFindTrait is deprecated since version 2.5 and will be removed in 3.0. Use PagerfantaTrait instead.',
              E_USER_DEPRECATED
          );
  
          $pager = new Pagerfanta($adapter);
          $pager->setNormalizeOutOfRangePages(true);
          $pager->setMaxPerPage($maxPerPage);
          $pager->setCurrentPage($currentPage);
  
          return $pager;
      }
code_tokens: protected function getPager ( AdapterInterface $ adapter , $ currentPage , $ maxPerPage ) { @ trigger_error ( 'PagerfantaFindTrait is deprecated since version 2.5 and will be removed in 3.0. Use PagerfantaTrait instead.' , E_USER_DEPRECATED ) ; $ pager = new Pagerfanta ( $ adapter ) ; $ pager -> setNormalizeOutOfRangePages ( true ) ; $ pager -> setMaxPerPage ( $ maxPerPage ) ; $ pager -> setCurrentPage ( $ currentPage ) ; return $ pager ; }
docstring: Shorthand method for creating Pagerfanta pager
  with preconfigured Adapter
  
  @param \Pagerfanta\Adapter\AdapterInterface $adapter
  @param int $currentPage
  @param int $maxPerPage
  
  @return \Pagerfanta\Pagerfanta
docstring_tokens: Shorthand method for creating Pagerfanta pager with preconfigured Adapter