From 132a96e11d7595301a7ba9125d9ef51ad5098af1 Mon Sep 17 00:00:00 2001 From: Akihito Koriyama Date: Thu, 25 Apr 2024 23:02:42 +0900 Subject: [PATCH] Suppress warnings for camel case method names Annotations added to the _invoke --- src/HttpResourceObject.php | 1 + src/InvokeRequestInterface.php | 1 + src/ResourceObject.php | 1 + 3 files changed, 3 insertions(+) diff --git a/src/HttpResourceObject.php b/src/HttpResourceObject.php index ca0832b9..7631262f 100644 --- a/src/HttpResourceObject.php +++ b/src/HttpResourceObject.php @@ -102,6 +102,7 @@ public function __toString(): string return $this->response->getContent(); } + /** @SuppressWarnings(PHPMD.CamelCaseMethodName) */ public function _invokeRequest(InvokerInterface $invoker, AbstractRequest $request): ResourceObject { unset($invoker); diff --git a/src/InvokeRequestInterface.php b/src/InvokeRequestInterface.php index c26f2f34..80c2866c 100644 --- a/src/InvokeRequestInterface.php +++ b/src/InvokeRequestInterface.php @@ -10,6 +10,7 @@ interface InvokeRequestInterface * Invokes a request using the given invoker and request objects. * * @return ResourceObject The resulting resource object returned from the request invocation. + * @SuppressWarnings(PHPMD.CamelCaseMethodName) */ public function _invokeRequest(InvokerInterface $invoker, AbstractRequest $request): ResourceObject; } diff --git a/src/ResourceObject.php b/src/ResourceObject.php index 340f4f49..0bd925e5 100644 --- a/src/ResourceObject.php +++ b/src/ResourceObject.php @@ -264,6 +264,7 @@ public function __clone() /** * {@inheritDoc} + * @SuppressWarnings(PHPMD.CamelCaseMethodName) */ public function _invokeRequest(InvokerInterface $invoker, AbstractRequest $request): ResourceObject {