Skip to content

Commit 759a379

Browse files
committed
Fix code style
1 parent f39c614 commit 759a379

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/JsonRpc/MessageFactory.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use Mcp\Exception\InvalidArgumentException;
1515
use Mcp\Exception\InvalidInputMessageException;
1616
use Mcp\Schema\JsonRpc\HasMethodInterface;
17-
use Mcp\Schema\JsonRpc\MessageInterface;
1817
use Mcp\Schema\Notification;
1918
use Mcp\Schema\Request;
2019

@@ -111,7 +110,7 @@ public function create(string $input): iterable
111110
/**
112111
* @return class-string<HasMethodInterface>
113112
*/
114-
private function getType(string $method/**/): string
113+
private function getType(string $method): string
115114
{
116115
foreach (self::REGISTERED_MESSAGES as $type) {
117116
if ($type::getMethod() === $method) {

tests/JsonRpc/MessageFactoryTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Mcp\Tests\JsonRpc;
1313

14-
use Mcp\Exception\InvalidArgumentException;
1514
use Mcp\Exception\InvalidInputMessageException;
1615
use Mcp\JsonRpc\MessageFactory;
1716
use Mcp\Schema\Notification\CancelledNotification;

tests/Server/NotificationPublisherTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
namespace Mcp\Tests\Server;
1515

16-
use Mcp\JsonRpc\MessageFactory;
1716
use Mcp\Schema\Notification\PromptListChangedNotification;
1817
use Mcp\Schema\Notification\ResourceListChangedNotification;
1918
use Mcp\Schema\Notification\ToolListChangedNotification;

0 commit comments

Comments
 (0)