original_string: protected function prepareOrderBy(): string
      {
          if (empty($this->orderBy)) {
              return '';
          }
          $orders = [];
          foreach ($this->orderBy as $column => $order) {
              $orders[] = $column . ' ' . $order;
          }
          return ' ORDER BY ' . implode(', ', $orders);
      }
code: protected function prepareOrderBy(): string
      {
          if (empty($this->orderBy)) {
              return '';
          }
          $orders = [];
          foreach ($this->orderBy as $column => $order) {
              $orders[] = $column . ' ' . $order;
          }
          return ' ORDER BY ' . implode(', ', $orders);
      }
code_tokens: protected function prepareOrderBy ( ) : string { if ( empty ( $ this -> orderBy ) ) { return '' ; } $ orders = [ ] ; foreach ( $ this -> orderBy as $ column => $ order ) { $ orders [ ] = $ column . ' ' . $ order ; } return ' ORDER BY ' . implode ( ', ' , $ orders ) ; }
docstring: Prepare string to apply it inside SQL query
  
  @return string
docstring_tokens: Prepare string to apply it inside SQL query