@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | * Useful for retrieving values as set by user |
| 400 | 400 | * |
| 401 | 401 | * @param string $name |
| 402 | - * @param mixed $default |
|
| 402 | + * @param integer $default |
|
| 403 | 403 | * @return mixed |
| 404 | 404 | */ |
| 405 | 405 | public function getParam($name, $default = null) |
@@ -615,7 +615,7 @@ discard block |
||
| 615 | 615 | /** |
| 616 | 616 | * A template accessor to check the ADMIN permission |
| 617 | 617 | * |
| 618 | - * @return bool |
|
| 618 | + * @return boolean|string |
|
| 619 | 619 | */ |
| 620 | 620 | public function IsAdmin() |
| 621 | 621 | { |
@@ -625,7 +625,7 @@ discard block |
||
| 625 | 625 | /** |
| 626 | 626 | * Check the permission for current user |
| 627 | 627 | * |
| 628 | - * @return bool |
|
| 628 | + * @return boolean|string |
|
| 629 | 629 | */ |
| 630 | 630 | public function canView($member = null) |
| 631 | 631 | { |
@@ -653,7 +653,7 @@ discard block |
||
| 653 | 653 | /** |
| 654 | 654 | * Check if webhook is installed |
| 655 | 655 | * |
| 656 | - * @return array |
|
| 656 | + * @return boolean |
|
| 657 | 657 | */ |
| 658 | 658 | public function WebhookInstalled() |
| 659 | 659 | { |
@@ -690,7 +690,7 @@ discard block |
||
| 690 | 690 | |
| 691 | 691 | /** |
| 692 | 692 | * Hook details for template |
| 693 | - * @return \ArrayData |
|
| 693 | + * @return ArrayData|null |
|
| 694 | 694 | */ |
| 695 | 695 | public function WebhookDetails() |
| 696 | 696 | { |
@@ -837,7 +837,7 @@ discard block |
||
| 837 | 837 | /** |
| 838 | 838 | * Check if sending domain is installed |
| 839 | 839 | * |
| 840 | - * @return array |
|
| 840 | + * @return boolean |
|
| 841 | 841 | */ |
| 842 | 842 | public function SendingDomainInstalled() |
| 843 | 843 | { |
@@ -997,7 +997,7 @@ discard block |
||
| 997 | 997 | /** |
| 998 | 998 | * Get domain name from current host |
| 999 | 999 | * |
| 1000 | - * @return boolean|string |
|
| 1000 | + * @return false|string |
|
| 1001 | 1001 | */ |
| 1002 | 1002 | public function getDomainFromHost() |
| 1003 | 1003 | { |
@@ -1018,7 +1018,7 @@ discard block |
||
| 1018 | 1018 | /** |
| 1019 | 1019 | * Get domain from admin email |
| 1020 | 1020 | * |
| 1021 | - * @return boolean|string |
|
| 1021 | + * @return string|false |
|
| 1022 | 1022 | */ |
| 1023 | 1023 | public function getDomainFromEmail() |
| 1024 | 1024 | { |
@@ -1033,7 +1033,7 @@ discard block |
||
| 1033 | 1033 | /** |
| 1034 | 1034 | * Get domain |
| 1035 | 1035 | * |
| 1036 | - * @return boolean|string |
|
| 1036 | + * @return false|string |
|
| 1037 | 1037 | */ |
| 1038 | 1038 | public function getDomain() |
| 1039 | 1039 | { |
@@ -1047,7 +1047,7 @@ discard block |
||
| 1047 | 1047 | /** |
| 1048 | 1048 | * Install domain form |
| 1049 | 1049 | * |
| 1050 | - * @param CompositeField $fieldsd |
|
| 1050 | + * @param CompositeField $fields |
|
| 1051 | 1051 | * @return FormField |
| 1052 | 1052 | */ |
| 1053 | 1053 | public function InstallDomainForm(CompositeField $fields) |
@@ -1091,7 +1091,7 @@ discard block |
||
| 1091 | 1091 | /** |
| 1092 | 1092 | * Uninstall domain form |
| 1093 | 1093 | * |
| 1094 | - * @param CompositeField $fieldsd |
|
| 1094 | + * @param CompositeField $fields |
|
| 1095 | 1095 | * @return FormField |
| 1096 | 1096 | */ |
| 1097 | 1097 | public function UninstallDomainForm(CompositeField $fields) |
@@ -2,7 +2,6 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace LeKoala\Mailgun; |
| 4 | 4 | |
| 5 | -use DateTime; |
|
| 6 | 5 | use \Exception; |
| 7 | 6 | use SilverStripe\Forms\Tab; |
| 8 | 7 | use SilverStripe\Forms\Form; |
@@ -31,7 +30,6 @@ discard block |
||
| 31 | 30 | use SilverStripe\Forms\CompositeField; |
| 32 | 31 | use SilverStripe\SiteConfig\SiteConfig; |
| 33 | 32 | use Mailgun\Model\Webhook\IndexResponse as WebhookIndexResponse; |
| 34 | -use SilverStripe\Core\Injector\Injector; |
|
| 35 | 33 | use LeKoala\Mailgun\MailgunSwiftTransport; |
| 36 | 34 | use SilverStripe\Control\Email\SwiftMailer; |
| 37 | 35 | use SilverStripe\Forms\GridField\GridField; |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | use SilverStripe\Control\Controller; |
| 10 | 10 | use SilverStripe\Control\HTTPRequest; |
| 11 | 11 | use SilverStripe\Security\Permission; |
| 12 | -use SilverStripe\Core\Injector\Injector; |
|
| 13 | 12 | |
| 14 | 13 | /** |
| 15 | 14 | * Provide extensions points for handling the webhook |
@@ -230,7 +230,7 @@ |
||
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | /** |
| 233 | - * @return array |
|
| 233 | + * @return string[] |
|
| 234 | 234 | */ |
| 235 | 235 | protected function getSupportedContentTypes() |
| 236 | 236 | { |