original_string: public function order()
      {
          $options = array(
              'order' => 'desc',
              'sort' => 'created',
              'limit' => array(0, $this->config->get('dashboard_limit', 10)));
  
          $items = $this->order->getList($options);
  
          array_walk($items, function (&$item) {
              $this->setItemTotalFormatted($item, $this->price);
              $this->setItemOrderNew($item, $this->order_history);
          });
  
          return $items;
      }
code: public function order()
      {
          $options = array(
              'order' => 'desc',
              'sort' => 'created',
              'limit' => array(0, $this->config->get('dashboard_limit', 10)));
  
          $items = $this->order->getList($options);
  
          array_walk($items, function (&$item) {
              $this->setItemTotalFormatted($item, $this->price);
              $this->setItemOrderNew($item, $this->order_history);
          });
  
          return $items;
      }
code_tokens: public function order ( ) { $ options = array ( 'order' => 'desc' , 'sort' => 'created' , 'limit' => array ( 0 , $ this -> config -> get ( 'dashboard_limit' , 10 ) ) ) ; $ items = $ this -> order -> getList ( $ options ) ; array_walk ( $ items , function ( & $ item ) { $ this -> setItemTotalFormatted ( $ item , $ this -> price ) ; $ this -> setItemOrderNew ( $ item , $ this -> order_history ) ; } ) ; return $ items ; }
docstring: Returns an array of recent orders
  @return array
docstring_tokens: Returns an array of recent orders