original_string: public function createUser(UserInterface $user)
      {
          if (isset($this->users[strtolower($user->getUsername())])) {
              throw new \LogicException('Another user with the same username already exists.');
          }
  
          $this->users[strtolower($user->getUsername())] = $user;
      }
code: public function createUser(UserInterface $user)
      {
          if (isset($this->users[strtolower($user->getUsername())])) {
              throw new \LogicException('Another user with the same username already exists.');
          }
  
          $this->users[strtolower($user->getUsername())] = $user;
      }
code_tokens: public function createUser ( UserInterface $ user ) { if ( isset ( $ this -> users [ strtolower ( $ user -> getUsername ( ) ) ] ) ) { throw new \ LogicException ( 'Another user with the same username already exists.' ) ; } $ this -> users [ strtolower ( $ user -> getUsername ( ) ) ] = $ user ; }
docstring: Adds a new User to the provider.
  
  @throws \LogicException
docstring_tokens: Adds a new User to the provider .