Skip to content

Commit ee17687

Browse files
committed
CS fixes.
1 parent e19651c commit ee17687

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Pdp/Parser.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,19 +204,19 @@ protected function getRawPublicSuffix($host)
204204
public function getPublicSuffix($host)
205205
{
206206
if (strpos($host, '.') === 0) {
207-
return null;
207+
return;
208208
}
209209

210210
// Fixes #22: If a single label domain makes it this far (e.g.,
211211
// localhost, foo, etc.), this stops it from incorrectly being set as
212212
// the public suffix.
213213
if (!$this->isMutliLabelDomain($host)) {
214-
return null;
214+
return;
215215
}
216216

217217
// Fixes #43
218218
if ($this->isIpv4Address($host)) {
219-
return null;
219+
return;
220220
}
221221

222222
$suffix = $this->getRawPublicSuffix($host);
@@ -258,13 +258,13 @@ public function isSuffixValid($host)
258258
public function getRegisterableDomain($host)
259259
{
260260
if (strpos($host, '.') === false) {
261-
return null;
261+
return;
262262
}
263263

264264
$publicSuffix = $this->getPublicSuffix($host);
265265

266266
if ($publicSuffix === null || $host == $publicSuffix) {
267-
return null;
267+
return;
268268
}
269269

270270
$publicSuffixParts = array_reverse(explode('.', $publicSuffix));
@@ -286,7 +286,7 @@ public function getSubdomain($host)
286286
$registerableDomain = $this->getRegisterableDomain($host);
287287

288288
if ($registerableDomain === null || $host === $registerableDomain) {
289-
return null;
289+
return;
290290
}
291291

292292
$registerableDomainParts = array_reverse(explode('.', $registerableDomain));

0 commit comments

Comments
 (0)