original_string: public function updateOne(int $sourceId, array $tags, int $otpCode = null, string $ipaddr = '') : array {
          $array = [
              'tags' => $tags
          ];
  
          if ($otpCode !== null) {
              $array['otpCode'] = $otpCode;
          }
  
          return $this->sendPatch(
              sprintf('/profiles/%s/sources/%s', $this->userName, $sourceId),
              [],
              $array
          );
      }
code: public function updateOne(int $sourceId, array $tags, int $otpCode = null, string $ipaddr = '') : array {
          $array = [
              'tags' => $tags
          ];
  
          if ($otpCode !== null) {
              $array['otpCode'] = $otpCode;
          }
  
          return $this->sendPatch(
              sprintf('/profiles/%s/sources/%s', $this->userName, $sourceId),
              [],
              $array
          );
      }
code_tokens: public function updateOne ( int $ sourceId , array $ tags , int $ otpCode = null , string $ ipaddr = '' ) : array { $ array = [ 'tags' => $ tags ] ; if ( $ otpCode !== null ) { $ array [ 'otpCode' ] = $ otpCode ; } return $ this -> sendPatch ( sprintf ( '/profiles/%s/sources/%s' , $ this -> userName , $ sourceId ) , [ ] , $ array ) ; }
docstring: Updates a source in the given profile.
  
  @param int    $sourceId
  @param string $ipaddr
  @param string $tags
  
  @return array Response
docstring_tokens: Updates a source in the given profile .