original_string: public function priceRule()
      {
          $options = array(
              'status' => 1,
              'order' => 'desc',
              'sort' => 'created',
              'limit' => array(0, $this->config->get('dashboard_limit', 10)));
  
          $items = $this->pricerule->getList($options);
  
          array_walk($items, function (&$item) {
              $item['value_formatted'] = $this->price->format($item['value'], $item['currency']);
          });
  
          return $items;
      }
code: public function priceRule()
      {
          $options = array(
              'status' => 1,
              'order' => 'desc',
              'sort' => 'created',
              'limit' => array(0, $this->config->get('dashboard_limit', 10)));
  
          $items = $this->pricerule->getList($options);
  
          array_walk($items, function (&$item) {
              $item['value_formatted'] = $this->price->format($item['value'], $item['currency']);
          });
  
          return $items;
      }
code_tokens: public function priceRule ( ) { $ options = array ( 'status' => 1 , 'order' => 'desc' , 'sort' => 'created' , 'limit' => array ( 0 , $ this -> config -> get ( 'dashboard_limit' , 10 ) ) ) ; $ items = $ this -> pricerule -> getList ( $ options ) ; array_walk ( $ items , function ( & $ item ) { $ item [ 'value_formatted' ] = $ this -> price -> format ( $ item [ 'value' ] , $ item [ 'currency' ] ) ; } ) ; return $ items ; }
docstring: Returns an array of active price rules
  @return array
docstring_tokens: Returns an array of active price rules