original_string: public function handle(ActionInterface $event)
      {
          $data = $event->getAction();
  
          $action = [
              'class_name'  => get_class($event),
              'user_id'     => $data['user']->id,
              'username'    => $data['user']->username,
              'description' => $data['description'],
          ];
  
          if (isset($data['information'])) {
              $action['information'] = $data['information'];
          }
  
          Action::create($action);
      }
code: public function handle(ActionInterface $event)
      {
          $data = $event->getAction();
  
          $action = [
              'class_name'  => get_class($event),
              'user_id'     => $data['user']->id,
              'username'    => $data['user']->username,
              'description' => $data['description'],
          ];
  
          if (isset($data['information'])) {
              $action['information'] = $data['information'];
          }
  
          Action::create($action);
      }
code_tokens: public function handle ( ActionInterface $ event ) { $ data = $ event -> getAction ( ) ; $ action = [ 'class_name' => get_class ( $ event ) , 'user_id' => $ data [ 'user' ] -> id , 'username' => $ data [ 'user' ] -> username , 'description' => $ data [ 'description' ] , ] ; if ( isset ( $ data [ 'information' ] ) ) { $ action [ 'information' ] = $ data [ 'information' ] ; } Action :: create ( $ action ) ; }
docstring: Handle the any actions that need storing.
  
  @param \CachetHQ\Cachet\Bus\Events\ActionInterface $event
  
  @return void
docstring_tokens: Handle the any actions that need storing .