@@ -32,17 +32,18 @@ final class McpElements
3232
3333 public function __construct (
3434 private readonly LoggerInterface $ logger = new NullLogger (),
35- ) {}
35+ ) {
36+ }
3637
3738 /**
3839 * Performs a calculation based on the operation.
3940 *
4041 * Supports 'add', 'subtract', 'multiply', 'divide'.
4142 * Obeys the 'precision' and 'allow_negative' settings from the config resource.
4243 *
43- * @param float $a the first operand
44- * @param float $b the second operand
45- * @param string $operation the operation ('add', 'subtract', 'multiply', 'divide')
44+ * @param float $a the first operand
45+ * @param float $b the second operand
46+ * @param string $operation the operation ('add', 'subtract', 'multiply', 'divide')
4647 * @param ClientLogger $logger Auto-injected MCP logger
4748 *
4849 * @return float|string the result of the calculation, or an error message string
@@ -130,8 +131,8 @@ public function getConfiguration(ClientLogger $logger): array
130131 * Updates a specific configuration setting.
131132 * Note: This requires more robust validation in a real app.
132133 *
133- * @param string $setting the setting key ('precision' or 'allow_negative')
134- * @param mixed $value the new value (int for precision, bool for allow_negative)
134+ * @param string $setting the setting key ('precision' or 'allow_negative')
135+ * @param mixed $value the new value (int for precision, bool for allow_negative)
135136 * @param ClientLogger $logger Auto-injected MCP logger
136137 *
137138 * @return array{
@@ -195,6 +196,6 @@ public function updateSetting(string $setting, mixed $value, ClientLogger $logge
195196 ]);
196197
197198 // $registry->notifyResourceChanged('config://calculator/settings');
198- return ['success ' => true , 'message ' => 'Allow negative results set to ' . ($ value ? 'true ' : 'false ' ) . '. ' ];
199+ return ['success ' => true , 'message ' => 'Allow negative results set to ' . ($ value ? 'true ' : 'false ' ). '. ' ];
199200 }
200201}
0 commit comments