original_string: protected function getRecords()
      {
          $records = null;
          $model = $this->controller->reorderGetModel();
          $query = $model->newQuery();
  
          $this->controller->reorderExtendQuery($query);
  
          if ($this->sortMode == 'simple') {
              $records = $query
                  ->orderBy($model->getSortOrderColumn())
                  ->get()
              ;
          }
          elseif ($this->sortMode == 'nested') {
              $records = $query->getNested();
          }
  
          return $records;
      }
code: protected function getRecords()
      {
          $records = null;
          $model = $this->controller->reorderGetModel();
          $query = $model->newQuery();
  
          $this->controller->reorderExtendQuery($query);
  
          if ($this->sortMode == 'simple') {
              $records = $query
                  ->orderBy($model->getSortOrderColumn())
                  ->get()
              ;
          }
          elseif ($this->sortMode == 'nested') {
              $records = $query->getNested();
          }
  
          return $records;
      }
code_tokens: protected function getRecords ( ) { $ records = null ; $ model = $ this -> controller -> reorderGetModel ( ) ; $ query = $ model -> newQuery ( ) ; $ this -> controller -> reorderExtendQuery ( $ query ) ; if ( $ this -> sortMode == 'simple' ) { $ records = $ query -> orderBy ( $ model -> getSortOrderColumn ( ) ) -> get ( ) ; } elseif ( $ this -> sortMode == 'nested' ) { $ records = $ query -> getNested ( ) ; } return $ records ; }
docstring: Returns all the records from the supplied model.
  @return Collection
docstring_tokens: Returns all the records from the supplied model .