Skip to content

Commit

Permalink
code style
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Jan 27, 2018
1 parent 6e33a77 commit a71d498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Recaptcha.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'] ?? '';
}
}

0 comments on commit a71d498

Please sign in to comment.