original_string: protected function compileOrdersToArray(Builder $query, $orders)
      {
          return array_map(function ($order) {
              return $order['sql'] ?? $this->wrap($order['column']).' '.$order['direction'];
          }, $orders);
      }
code: protected function compileOrdersToArray(Builder $query, $orders)
      {
          return array_map(function ($order) {
              return $order['sql'] ?? $this->wrap($order['column']).' '.$order['direction'];
          }, $orders);
      }
code_tokens: protected function compileOrdersToArray ( Builder $ query , $ orders ) { return array_map ( function ( $ order ) { return $ order [ 'sql' ] ?? $ this -> wrap ( $ order [ 'column' ] ) . ' ' . $ order [ 'direction' ] ; } , $ orders ) ; }
docstring: Compile the query orders to an array.
  
  @param  \Illuminate\Database\Query\Builder  $query
  @param  array  $orders
  @return array
docstring_tokens: Compile the query orders to an array .