original_string: public function get($pages = 0)
      {
          $endpoint = $this->getEndpoint();
          $params = $this->getParams();
          $list = $this->getClient()->request($endpoint, 'GET', $params);
  
          $i = 1;
          while ($list['metadata']['continue']) {
              if ($pages > 0 && $pages >= $i) {
                  return $list;
              }
              $params['continue'] = $list['metadata']['continue'];
              $i_list = $this->getClient()->request($endpoint, 'GET', $params);
              $i_list['items'] = array_merge($list['items'], $i_list['items']);
              $list = $i_list;
              unset($i_list);
              $i++;
          }
  
          return $list;
      }
code: public function get($pages = 0)
      {
          $endpoint = $this->getEndpoint();
          $params = $this->getParams();
          $list = $this->getClient()->request($endpoint, 'GET', $params);
  
          $i = 1;
          while ($list['metadata']['continue']) {
              if ($pages > 0 && $pages >= $i) {
                  return $list;
              }
              $params['continue'] = $list['metadata']['continue'];
              $i_list = $this->getClient()->request($endpoint, 'GET', $params);
              $i_list['items'] = array_merge($list['items'], $i_list['items']);
              $list = $i_list;
              unset($i_list);
              $i++;
          }
  
          return $list;
      }
code_tokens: public function get ( $ pages = 0 ) { $ endpoint = $ this -> getEndpoint ( ) ; $ params = $ this -> getParams ( ) ; $ list = $ this -> getClient ( ) -> request ( $ endpoint , 'GET' , $ params ) ; $ i = 1 ; while ( $ list [ 'metadata' ] [ 'continue' ] ) { if ( $ pages > 0 && $ pages >= $ i ) { return $ list ; } $ params [ 'continue' ] = $ list [ 'metadata' ] [ 'continue' ] ; $ i_list = $ this -> getClient ( ) -> request ( $ endpoint , 'GET' , $ params ) ; $ i_list [ 'items' ] = array_merge ( $ list [ 'items' ] , $ i_list [ 'items' ] ) ; $ list = $ i_list ; unset ( $ i_list ) ; $ i ++ ; } return $ list ; }
docstring: Get all values from a list endpoint.  Full list is returned as if made in a single call.
  
  @param int $pages
  @return bool|mixed|string
  @throws \Exception
docstring_tokens: Get all values from a list endpoint . Full list is returned as if made in a single call .