Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 260bd5a

Browse files
author
Tjardo
committed
Renaming arguments to camel case
1 parent 5fed3e1 commit 260bd5a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/Resources/ActiveCampaignContactsResource.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,25 +112,25 @@ public function delete(int $id): void
112112
}
113113

114114
/**
115-
* Add a tag to contact
115+
* Add a tag to a contact.
116116
*
117117
* @see https://developers.activecampaign.com/reference/create-contact-tag
118118
*
119119
* @param int $id
120-
* @param int $tag_id
120+
* @param int $tagId
121121
* @return string
122122
*
123123
* @throws ActiveCampaignException
124124
*/
125-
public function tag(int $id, int $tag_id): string
125+
public function tag(int $id, int $tagId): string
126126
{
127127
$contactTag = $this->request(
128128
method: 'post',
129129
path: 'contactTags',
130130
data: [
131131
'contactTag' => [
132132
'contact' => $id,
133-
'tag' => $tag_id,
133+
'tag' => $tagId,
134134
],
135135
],
136136
responseKey: 'contactTag'
@@ -140,20 +140,20 @@ public function tag(int $id, int $tag_id): string
140140
}
141141

142142
/**
143-
* Remove a tag from a contact
143+
* Remove a tag from a contact.
144144
*
145145
* @see https://developers.activecampaign.com/reference#delete-contact-tag
146146
*
147-
* @param int $contact_tag_id
147+
* @param int $contactTagId
148148
* @return void
149149
*
150150
* @throws ActiveCampaignException
151151
*/
152-
public function untag(int $contact_tag_id): void
152+
public function untag(int $contactTagId): void
153153
{
154154
$this->request(
155155
method: 'delete',
156-
path: 'contactTags/'.$contact_tag_id
156+
path: 'contactTags/'.$contactTagId
157157
);
158158
}
159159
}

0 commit comments

Comments
 (0)