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
        );
    }
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
        );
    }
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 ) ; }
Updates a source in the given profile.

@param int    $sourceId
@param string $ipaddr
@param string $tags

@return array Response
Updates a source in the given profile .