From a71d49852f206c175d003ce1ee9a45daaef1530c Mon Sep 17 00:00:00 2001 From: oscarotero Date: Sat, 27 Jan 2018 20:30:23 +0100 Subject: [PATCH] code style --- src/Recaptcha.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Recaptcha.php b/src/Recaptcha.php index 25d3d32..f84ff60 100644 --- a/src/Recaptcha.php +++ b/src/Recaptcha.php @@ -84,6 +84,6 @@ private function getIp(ServerRequestInterface $request): string return $request->getAttribute($this->ipAttribute); } - return isset($server['REMOTE_ADDR']) ? $server['REMOTE_ADDR'] : ''; + return $server['REMOTE_ADDR'] ?? ''; } }