aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Http
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2021-04-06 11:39:24 +0000
committerGitHub <noreply@github.com>2021-04-06 11:39:24 +0000
commit5fe1f134f927d18dc2c363bbdda5d7acfbdd49d9 (patch)
tree41feea3a6841188d7277b6d4bb6e6931674fdfb7 /lib/private/Http
parentd5c7bb21881f2cb3cf87d5a0fe778dd26e61006e (diff)
downloadnextcloud-server-5fe1f134f927d18dc2c363bbdda5d7acfbdd49d9.tar.gz
nextcloud-server-5fe1f134f927d18dc2c363bbdda5d7acfbdd49d9.zip
Strictify null check
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'lib/private/Http')
-rw-r--r--lib/private/Http/Client/DnsPinMiddleware.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Http/Client/DnsPinMiddleware.php b/lib/private/Http/Client/DnsPinMiddleware.php
index 5a87ff705a6..0406405c430 100644
--- a/lib/private/Http/Client/DnsPinMiddleware.php
+++ b/lib/private/Http/Client/DnsPinMiddleware.php
@@ -36,7 +36,8 @@ class DnsPinMiddleware {
public function __construct(
NegativeDnsCache $negativeDnsCache,
- LocalAddressChecker $localAddressChecker) {
+ LocalAddressChecker $localAddressChecker
+ ) {
$this->negativeDnsCache = $negativeDnsCache;
$this->localAddressChecker = $localAddressChecker;
}
@@ -106,7 +107,7 @@ class DnsPinMiddleware {
'443',
];
- if ($port != null) {
+ if ($port !== null) {
$ports[] = (string)$port;
}