Skip to content

Commit

Permalink
(phpstan) fix complaints about case
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesDPC committed Aug 21, 2024
1 parent bd7d069 commit a4c1c9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Connector/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace NSWDPC\Messaging\Mailgun\Connector;

use Mailgun\Mailgun;
use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebhook;
use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebHook;
use NSWDPC\Messaging\Mailgun\Services\Logger;
use SilverStripe\Core\Config\Config;
use SilverStripe\Core\Config\Configurable;
Expand Down Expand Up @@ -165,7 +165,7 @@ public function getWebhookPreviousFilterVariable(): string
*/
public function getWebhooksEnabled(): bool
{
return MailgunWebhook::config()->get('webhooks_enabled');
return MailgunWebHook::config()->get('webhooks_enabled');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Connector/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace NSWDPC\Messaging\Mailgun\Connector;

use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebhook;
use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebHook;
use NSWDPC\Messaging\Mailgun\MailgunEvent;
use NSWDPC\Messaging\Mailgun\Log;
use Mailgun\Mailgun;
Expand Down
4 changes: 2 additions & 2 deletions tests/WebhookTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use NSWDPC\Messaging\Mailgun\Connector\Base;
use NSWDPC\Messaging\Mailgun\Connector\Webhook;
use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebhook;
use NSWDPC\Messaging\Mailgun\Controllers\MailgunWebHook;
use NSWDPC\Messaging\Mailgun\Models\MailgunEvent;
use SilverStripe\Dev\FunctionalTest;
use SilverStripe\Core\Config\Config;
Expand Down Expand Up @@ -38,7 +38,7 @@ public function setUp(): void
Environment::setEnv('MAILGUN_WEBHOOK_FILTER_VARIABLE', $this->webhook_filter_variable);
Environment::setEnv('MAILGUN_WEBHOOK_PREVIOUS_FILTER_VARIABLE', $this->webhook_previous_filter_variable);
Environment::setEnv('MAILGUN_WEBHOOK_SIGNING_KEY', $this->webhook_signing_key);
Config::modify()->set(MailgunWebhook::class, 'webhooks_enabled', true);
Config::modify()->set(MailgunWebHook::class, 'webhooks_enabled', true);
}

protected function getTestDsn(): string
Expand Down

0 comments on commit a4c1c9a

Please sign in to comment.