original_string: public function getUserId()
      {
          if (! is_null($this->userId)) {
              return $this->userId;
          }
  
          $rooms = $this->room->getRooms($this->getSender());
  
          foreach ($rooms as $room) {
              if (count($explode = explode(static::USER_PREFIX, $room)) === 2) {
                  $this->userId = $explode[1];
              }
          }
  
          return $this->userId;
      }
code: public function getUserId()
      {
          if (! is_null($this->userId)) {
              return $this->userId;
          }
  
          $rooms = $this->room->getRooms($this->getSender());
  
          foreach ($rooms as $room) {
              if (count($explode = explode(static::USER_PREFIX, $room)) === 2) {
                  $this->userId = $explode[1];
              }
          }
  
          return $this->userId;
      }
code_tokens: public function getUserId ( ) { if ( ! is_null ( $ this -> userId ) ) { return $ this -> userId ; } $ rooms = $ this -> room -> getRooms ( $ this -> getSender ( ) ) ; foreach ( $ rooms as $ room ) { if ( count ( $ explode = explode ( static :: USER_PREFIX , $ room ) ) === 2 ) { $ this -> userId = $ explode [ 1 ] ; } } return $ this -> userId ; }
docstring: Get current auth user id by sender's fd.
docstring_tokens: Get current auth user id by sender s fd .