mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
update basics to match code standards
global functions are not indented
This commit is contained in:
parent
43a95a79fc
commit
d861a73327
1 changed files with 385 additions and 362 deletions
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Basic Cake functionality.
|
||||
*
|
||||
|
@ -308,7 +309,29 @@ if (!function_exists('sortByKey')) {
|
|||
} elseif ($count === 2) {
|
||||
return '.' . $host;
|
||||
} elseif ($count === 3) {
|
||||
$gTLD = array('aero', 'asia', 'biz', 'cat', 'com', 'coop', 'edu', 'gov', 'info', 'int', 'jobs', 'mil', 'mobi', 'museum', 'name', 'net', 'org', 'pro', 'tel', 'travel', 'xxx');
|
||||
$gTLD = array(
|
||||
'aero',
|
||||
'asia',
|
||||
'biz',
|
||||
'cat',
|
||||
'com',
|
||||
'coop',
|
||||
'edu',
|
||||
'gov',
|
||||
'info',
|
||||
'int',
|
||||
'jobs',
|
||||
'mil',
|
||||
'mobi',
|
||||
'museum',
|
||||
'name',
|
||||
'net',
|
||||
'org',
|
||||
'pro',
|
||||
'tel',
|
||||
'travel',
|
||||
'xxx'
|
||||
);
|
||||
if (in_array($parts[1], $gTLD)) {
|
||||
return '.' . $host;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue