original_string: public function getPagesRange()
      {
          $pageRange  = $this->getPageRange();
          $pageNumber = $this->getCurrentPageNumber();
          $pageCount  = $this->getNumberOfPages();
  
          if ($pageRange > $pageCount) {
              $pageRange = $pageCount;
          }
  
          $delta = ceil($pageRange / 2 );
  
          if ($pageNumber - $delta > $pageCount - $pageRange) {
              $lowerBound = $pageCount - $pageRange + 1;
              $upperBound = $pageCount;
          } else {
              if ($pageNumber - $delta < 0) {
                  $delta = $pageNumber;
              }
  
              $offset     = $pageNumber - $delta;
              $lowerBound = $offset + 1;
              $upperBound = $offset + $pageRange;
          }
  
          $pages = array();
          for ($pageNumber = $lowerBound; $pageNumber <= $upperBound; $pageNumber++) {
              $pages[$pageNumber] = $pageNumber;
          }
  
          return $pages;
      }
code: public function getPagesRange()
      {
          $pageRange  = $this->getPageRange();
          $pageNumber = $this->getCurrentPageNumber();
          $pageCount  = $this->getNumberOfPages();
  
          if ($pageRange > $pageCount) {
              $pageRange = $pageCount;
          }
  
          $delta = ceil($pageRange / 2 );
  
          if ($pageNumber - $delta > $pageCount - $pageRange) {
              $lowerBound = $pageCount - $pageRange + 1;
              $upperBound = $pageCount;
          } else {
              if ($pageNumber - $delta < 0) {
                  $delta = $pageNumber;
              }
  
              $offset     = $pageNumber - $delta;
              $lowerBound = $offset + 1;
              $upperBound = $offset + $pageRange;
          }
  
          $pages = array();
          for ($pageNumber = $lowerBound; $pageNumber <= $upperBound; $pageNumber++) {
              $pages[$pageNumber] = $pageNumber;
          }
  
          return $pages;
      }
code_tokens: public function getPagesRange ( ) { $ pageRange = $ this -> getPageRange ( ) ; $ pageNumber = $ this -> getCurrentPageNumber ( ) ; $ pageCount = $ this -> getNumberOfPages ( ) ; if ( $ pageRange > $ pageCount ) { $ pageRange = $ pageCount ; } $ delta = ceil ( $ pageRange / 2 ) ; if ( $ pageNumber - $ delta > $ pageCount - $ pageRange ) { $ lowerBound = $ pageCount - $ pageRange + 1 ; $ upperBound = $ pageCount ; } else { if ( $ pageNumber - $ delta < 0 ) { $ delta = $ pageNumber ; } $ offset = $ pageNumber - $ delta ; $ lowerBound = $ offset + 1 ; $ upperBound = $ offset + $ pageRange ; } $ pages = array ( ) ; for ( $ pageNumber = $ lowerBound ; $ pageNumber <= $ upperBound ; $ pageNumber ++ ) { $ pages [ $ pageNumber ] = $ pageNumber ; } return $ pages ; }
docstring: From Zend\Paginator\Paginator
docstring_tokens: From Zend \ Paginator \ Paginator