original_string: public function decorate(Collection $items, $type = 'notification')
      {
          $view = config('antares/notifications::templates.' . $type);
          if (is_null($view)) {
              throw new RuntimeException('Unable to resolve notification partial view.');
          }
          $return = [];
          foreach ($items as $item) {
              $return[] = $this->item($item, $view);
          }
          return $return;
      }
code: public function decorate(Collection $items, $type = 'notification')
      {
          $view = config('antares/notifications::templates.' . $type);
          if (is_null($view)) {
              throw new RuntimeException('Unable to resolve notification partial view.');
          }
          $return = [];
          foreach ($items as $item) {
              $return[] = $this->item($item, $view);
          }
          return $return;
      }
code_tokens: public function decorate ( Collection $ items , $ type = 'notification' ) { $ view = config ( 'antares/notifications::templates.' . $ type ) ; if ( is_null ( $ view ) ) { throw new RuntimeException ( 'Unable to resolve notification partial view.' ) ; } $ return = [ ] ; foreach ( $ items as $ item ) { $ return [ ] = $ this -> item ( $ item , $ view ) ; } return $ return ; }
docstring: Decorates notifications of alerts
  
  @param Collection $items
  @param String $type
  @return array
  @throws RuntimeException
docstring_tokens: Decorates notifications of alerts