original_string: public function created($user)
      {
          if (! $baseName = $user->baseRole) {
              return;
          }
   
          // Attach base role
          if (method_exists($user, 'attachRole')) {
              $user->attachRole($baseName);
          }
      }
code: public function created($user)
      {
          if (! $baseName = $user->baseRole) {
              return;
          }
   
          // Attach base role
          if (method_exists($user, 'attachRole')) {
              $user->attachRole($baseName);
          }
      }
code_tokens: public function created ( $ user ) { if ( ! $ baseName = $ user -> baseRole ) { return ; } // Attach base role if ( method_exists ( $ user , 'attachRole' ) ) { $ user -> attachRole ( $ baseName ) ; } }
docstring: Listen to the User created event.
  
  @param object $user
  @return void
docstring_tokens: Listen to the User created event .