Skip to content

Commit cb5853a

Browse files
committed
Rename spam() => markSpam(), notSpam() => markNotSpam()
1 parent 3fb054b commit cb5853a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,9 @@ The custom methods are specific to some resources which may not be available for
265265
Unlike all other actions, this function returns an integer value.
266266

267267
- Comment ->
268-
- [spam()](https://help.shopify.com/api/reference/comment#spam)
268+
- [markSpam()](https://help.shopify.com/api/reference/comment#spam)
269269
Mark a Comment as spam
270-
- [notSpam()](https://help.shopify.com/api/reference/comment#not_spam)
270+
- [markNotSpam()](https://help.shopify.com/api/reference/comment#not_spam)
271271
Mark a Comment as not spam
272272
- [approve()](https://help.shopify.com/api/reference/comment#approve)
273273
Approve a Comment

lib/Comment.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
* --------------------------------------------------------------------------
2323
* Comment -> Custom actions
2424
* --------------------------------------------------------------------------
25-
* @method array spam() Mark a Comment as spam
26-
* @method array notSpam() Mark a Comment as not spam
25+
* @method array markSpam() Mark a Comment as spam
26+
* @method array markNotSpam() Mark a Comment as not spam
2727
* @method array approve() Approve a Comment
2828
* @method array remove() Remove a Comment
2929
* @method array restore() Restore a Comment
@@ -47,10 +47,10 @@ class Comment extends ShopifyAPI
4747
* @inheritDoc
4848
*/
4949
protected $customPostActions = array(
50-
'spam',
51-
'not_spam' => 'notSpam',
52-
'approve',
53-
'remove',
54-
'restore',
50+
'spam' => 'markSpam',
51+
'not_spam' => 'markNotSpam',
52+
'approve',
53+
'remove',
54+
'restore',
5555
);
5656
}

0 commit comments

Comments
 (0)