original_string: public function createSubscriberAction()
      {
          $verified = app(Repository::class)->get('setting.skip_subscriber_verification');
  
          try {
              $subscribers = preg_split("/\r\n|\n|\r/", Binput::get('email'));
  
              foreach ($subscribers as $subscriber) {
                  execute(new SubscribeSubscriberCommand($subscriber, $verified));
              }
          } catch (ValidationException $e) {
              return cachet_redirect('dashboard.subscribers.create')
                  ->withInput(Binput::all())
                  ->withTitle(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.subscribers.add.failure')))
                  ->withErrors($e->getMessageBag());
          }
  
          return cachet_redirect('dashboard.subscribers.create')
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.subscribers.add.success')));
      }
code: public function createSubscriberAction()
      {
          $verified = app(Repository::class)->get('setting.skip_subscriber_verification');
  
          try {
              $subscribers = preg_split("/\r\n|\n|\r/", Binput::get('email'));
  
              foreach ($subscribers as $subscriber) {
                  execute(new SubscribeSubscriberCommand($subscriber, $verified));
              }
          } catch (ValidationException $e) {
              return cachet_redirect('dashboard.subscribers.create')
                  ->withInput(Binput::all())
                  ->withTitle(sprintf('%s %s', trans('dashboard.notifications.whoops'), trans('dashboard.subscribers.add.failure')))
                  ->withErrors($e->getMessageBag());
          }
  
          return cachet_redirect('dashboard.subscribers.create')
              ->withSuccess(sprintf('%s %s', trans('dashboard.notifications.awesome'), trans('dashboard.subscribers.add.success')));
      }
code_tokens: public function createSubscriberAction ( ) { $ verified = app ( Repository :: class ) -> get ( 'setting.skip_subscriber_verification' ) ; try { $ subscribers = preg_split ( "/\r\n|\n|\r/" , Binput :: get ( 'email' ) ) ; foreach ( $ subscribers as $ subscriber ) { execute ( new SubscribeSubscriberCommand ( $ subscriber , $ verified ) ) ; } } catch ( ValidationException $ e ) { return cachet_redirect ( 'dashboard.subscribers.create' ) -> withInput ( Binput :: all ( ) ) -> withTitle ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.whoops' ) , trans ( 'dashboard.subscribers.add.failure' ) ) ) -> withErrors ( $ e -> getMessageBag ( ) ) ; } return cachet_redirect ( 'dashboard.subscribers.create' ) -> withSuccess ( sprintf ( '%s %s' , trans ( 'dashboard.notifications.awesome' ) , trans ( 'dashboard.subscribers.add.success' ) ) ) ; }
docstring: Creates a new subscriber.
  
  @return \Illuminate\Http\RedirectResponse
docstring_tokens: Creates a new subscriber .