-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Php code sniffer changes * For `bold` operations we should close resource even if it fails * cs * composer normalize
- Loading branch information
1 parent
181749e
commit 02d8b5c
Showing
73 changed files
with
444 additions
and
223 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ | |
use Psr\Http\Message\ResponseInterface; | ||
|
||
/** | ||
* @see https://documentation.mailgun.com/api-domains.html | ||
* @see https://documentation.mailgun.com/api-domains.html | ||
* | ||
* @author Sean Johnson <[email protected]> | ||
*/ | ||
|
@@ -43,6 +43,7 @@ class Domain extends HttpApi | |
|
||
/** | ||
* Returns a list of domains on the account. | ||
* | ||
* @param int $limit | ||
* @param int $skip | ||
* @return IndexResponse|array | ||
|
@@ -84,7 +85,8 @@ public function show(string $domain) | |
* Creates a new domain for the account. | ||
* See below for spam filtering parameter information. | ||
* {@link https://documentation.mailgun.com/user_manual.html#um-spam-filter}. | ||
* @see https://documentation.mailgun.com/en/latest/api-domains.html#domains | ||
* | ||
* @see https://documentation.mailgun.com/en/latest/api-domains.html#domains | ||
* @param string $domain name of the domain | ||
* @param string|null $smtpPass password for SMTP authentication | ||
* @param string|null $spamAction `disable` or `tag` - inbound spam filtering | ||
|
@@ -93,7 +95,8 @@ public function show(string $domain) | |
* @param string[] $ips an array of ips to be assigned to the domain | ||
* @param ?string $pool_id pool id to assign to the domain | ||
* @param string $webScheme `http` or `https` - set your open, click and unsubscribe URLs to use http or https. The default is http | ||
* @param string $dkimKeySize Set length of your domain’s generated DKIM key | ||
* @param string $dkimKeySize Set length of your domain’s generated DKIM | ||
* key | ||
* @return CreateResponse|array|ResponseInterface | ||
* @throws Exception | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
use Psr\Http\Message\ResponseInterface; | ||
|
||
/** | ||
* @see https://documentation.mailgun.com/api-domains.html | ||
* @see https://documentation.mailgun.com/api-domains.html | ||
* | ||
* @author Sean Johnson <[email protected]> | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ class Route extends HttpApi | |
{ | ||
/** | ||
* Fetches the list of Routes. | ||
* | ||
* @param int $limit Maximum number of records to return. (100 by default) | ||
* @param int $skip Number of records to skip. (0 by default) | ||
* @return IndexResponse | ||
|
@@ -51,6 +52,7 @@ public function index(int $limit = 100, int $skip = 0) | |
|
||
/** | ||
* Returns a single Route object based on its ID. | ||
* | ||
* @param string $routeId Route ID returned by the Routes::index() method | ||
* @return ShowResponse | ||
* @throws ClientExceptionInterface | ||
|
@@ -66,6 +68,7 @@ public function show(string $routeId) | |
|
||
/** | ||
* Creates a new Route. | ||
* | ||
* @param string $expression A filter expression like "match_recipient('.*@gmail.com')" | ||
* @param array $actions Route action. This action is executed when the expression evaluates to True. Example: "forward('[email protected]')" | ||
* @param string $description An arbitrary string | ||
|
@@ -92,6 +95,7 @@ public function create(string $expression, array $actions, string $description, | |
/** | ||
* Updates a given Route by ID. All parameters are optional. | ||
* This API call only updates the specified fields leaving others unchanged. | ||
* | ||
* @param string $routeId Route ID returned by the Routes::index() method | ||
* @param string|null $expression A filter expression like "match_recipient('.*@gmail.com')" | ||
* @param array $actions Route action. This action is executed when the expression evaluates to True. Example: "forward('[email protected]')" | ||
|
@@ -136,6 +140,7 @@ public function update( | |
|
||
/** | ||
* Deletes a Route based on the ID. | ||
* | ||
* @param string $routeId Route ID returned by the Routes::index() method | ||
* @return DeleteResponse | ||
* @throws ClientExceptionInterface | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.