original_string: public function existstUserCountryCodeAndPhoneNumber($userId) {
          $countryCode = DB::table('users')
              ->where('id', '=', $userId)
              ->value('phone_country_code')
          ;
  
          $phoneNumber =  DB::table('users')
              ->where('id', '=', $userId)
              ->value('phone_number')
          ;
  
          if ((!$countryCode) || (!$phoneNumber)) {
              return false;
          }
  
          return true;
      }
code: public function existstUserCountryCodeAndPhoneNumber($userId) {
          $countryCode = DB::table('users')
              ->where('id', '=', $userId)
              ->value('phone_country_code')
          ;
  
          $phoneNumber =  DB::table('users')
              ->where('id', '=', $userId)
              ->value('phone_number')
          ;
  
          if ((!$countryCode) || (!$phoneNumber)) {
              return false;
          }
  
          return true;
      }
code_tokens: public function existstUserCountryCodeAndPhoneNumber ( $ userId ) { $ countryCode = DB :: table ( 'users' ) -> where ( 'id' , '=' , $ userId ) -> value ( 'phone_country_code' ) ; $ phoneNumber = DB :: table ( 'users' ) -> where ( 'id' , '=' , $ userId ) -> value ( 'phone_number' ) ; if ( ( ! $ countryCode ) || ( ! $ phoneNumber ) ) { return false ; } return true ; }
docstring: Does the user have a country code and phone number for 2FA?
  
  @param  int    $userId          User ID
docstring_tokens: Does the user have a country code and phone number for 2FA?