Skip to content

Commit

Permalink
build: fixed class name
Browse files Browse the repository at this point in the history
  • Loading branch information
thorsten committed Mar 24, 2024
1 parent ce02c70 commit 9bfd121
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions phpmyfaq/src/phpMyFAQ/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

use phpMyFAQ\Core\Exception;
use phpMyFAQ\Mail\Builtin;
use phpMyFAQ\Mail\SMTP;
use phpMyFAQ\Mail\Smtp;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;

Expand Down Expand Up @@ -700,7 +700,7 @@ public function fixEOL(string $text): string
* @static
* @param string $mua Type of the MUA.
*/
public static function getMUA(string $mua): Builtin|SMTP
public static function getMUA(string $mua): Builtin|Smtp
{
$className = ucfirst(
str_replace(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Class SMTP
*/
class SMTP implements MailUserAgentInterface
class Smtp implements MailUserAgentInterface
{
private string $user;

Expand Down
4 changes: 2 additions & 2 deletions tests/phpMyFAQ/MailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use phpMyFAQ\Core\Exception;
use phpMyFAQ\Database\Sqlite3;
use phpMyFAQ\Mail\Builtin;
use phpMyFAQ\Mail\SMTP;
use phpMyFAQ\Mail\Smtp;
use PHPUnit\Framework\TestCase;

class MailTest extends TestCase
Expand Down Expand Up @@ -191,7 +191,7 @@ public function testGetMUAWithBuiltin(): void
public function testGetMUAWithSMTP(): void
{
$result = Mail::getMUA('smtp');
$this->assertInstanceOf(SMTP::class, $result);
$this->assertInstanceOf(Smtp::class, $result);
}

/**
Expand Down

0 comments on commit 9bfd121

Please sign in to comment.