File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -204,19 +204,19 @@ protected function getRawPublicSuffix($host)
204
204
public function getPublicSuffix ($ host )
205
205
{
206
206
if (strpos ($ host , '. ' ) === 0 ) {
207
- return null ;
207
+ return ;
208
208
}
209
209
210
210
// Fixes #22: If a single label domain makes it this far (e.g.,
211
211
// localhost, foo, etc.), this stops it from incorrectly being set as
212
212
// the public suffix.
213
213
if (!$ this ->isMutliLabelDomain ($ host )) {
214
- return null ;
214
+ return ;
215
215
}
216
216
217
217
// Fixes #43
218
218
if ($ this ->isIpv4Address ($ host )) {
219
- return null ;
219
+ return ;
220
220
}
221
221
222
222
$ suffix = $ this ->getRawPublicSuffix ($ host );
@@ -258,13 +258,13 @@ public function isSuffixValid($host)
258
258
public function getRegisterableDomain ($ host )
259
259
{
260
260
if (strpos ($ host , '. ' ) === false ) {
261
- return null ;
261
+ return ;
262
262
}
263
263
264
264
$ publicSuffix = $ this ->getPublicSuffix ($ host );
265
265
266
266
if ($ publicSuffix === null || $ host == $ publicSuffix ) {
267
- return null ;
267
+ return ;
268
268
}
269
269
270
270
$ publicSuffixParts = array_reverse (explode ('. ' , $ publicSuffix ));
@@ -286,7 +286,7 @@ public function getSubdomain($host)
286
286
$ registerableDomain = $ this ->getRegisterableDomain ($ host );
287
287
288
288
if ($ registerableDomain === null || $ host === $ registerableDomain ) {
289
- return null ;
289
+ return ;
290
290
}
291
291
292
292
$ registerableDomainParts = array_reverse (explode ('. ' , $ registerableDomain ));
You can’t perform that action at this time.
0 commit comments