EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
cleanup
Yuri Kuznetsova53f1fdc4626
diff --git a/application/Espo/Core/Api/RequestWrapper.php b/application/Espo/Core/Api/RequestWrapper.phpindex db69c5172d..136952e934 100644--- a/application/Espo/Core/Api/RequestWrapper.php+++ b/application/Espo/Core/Api/RequestWrapper.php@@ -267,32 +267,26 @@ class RequestWrapper implements ApiRequestpublic function isGet(): bool{- return $this->getMethod() === 'GET';+ return $this->getMethod() === Method::GET;}public function isPut(): bool{- return $this->getMethod() === 'PUT';- }-- /** @noinspection PhpUnused */- public function isUpdate(): bool- {- return $this->getMethod() === 'UPDATE';+ return $this->getMethod() === Method::PUT;}public function isPost(): bool{- return $this->getMethod() === 'POST';+ return $this->getMethod() === Method::POST;}public function isPatch(): bool{- return $this->getMethod() === 'PATCH';+ return $this->getMethod() === Method::PATCH;}public function isDelete(): bool{- return $this->getMethod() === 'DELETE';+ return $this->getMethod() === Method::DELETE;}}