@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | # Mime types |
4 | 4 | |
5 | -define('MIME_TYPE_HTML', 'html'); |
|
6 | -define('MIME_TYPE_XML', 'xml'); |
|
7 | -define('MIME_TYPE_JSON', 'json'); |
|
5 | +define('MIME_TYPE_HTML', 'html'); |
|
6 | +define('MIME_TYPE_XML', 'xml'); |
|
7 | +define('MIME_TYPE_JSON', 'json'); |
|
8 | 8 | |
9 | -define('MIME_TYPE_JPEG', 'jpeg'); |
|
10 | -define('MIME_TYPE_PNG', 'png'); |
|
11 | -define('MIME_TYPE_GIF', 'gif'); |
|
9 | +define('MIME_TYPE_JPEG', 'jpeg'); |
|
10 | +define('MIME_TYPE_PNG', 'png'); |
|
11 | +define('MIME_TYPE_GIF', 'gif'); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | $number = number_format(($number / pow(1024, $exponent)), (($exponent < 2) ? $exponent : 2)); |
48 | 48 | |
49 | - return (floatval($number) . ' ' . $text); |
|
49 | + return (floatval($number).' '.$text); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | # ------------------------ |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | public static function __autoload() { |
14 | 14 | |
15 | - self::init(DIR_DATA . 'Geo/Countries.php'); |
|
15 | + self::init(DIR_DATA.'Geo/Countries.php'); |
|
16 | 16 | } |
17 | 17 | } |
18 | 18 | } |
@@ -12,7 +12,7 @@ |
||
12 | 12 | |
13 | 13 | public static function __autoload() { |
14 | 14 | |
15 | - self::init(DIR_DATA . 'Geo/Timezones.php'); |
|
15 | + self::init(DIR_DATA.'Geo/Timezones.php'); |
|
16 | 16 | } |
17 | 17 | } |
18 | 18 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | public static function redirect(string $url) { |
47 | 47 | |
48 | - header("Location: " . $url); exit(); |
|
48 | + header("Location: ".$url); exit(); |
|
49 | 49 | } |
50 | 50 | } |
51 | 51 | } |
@@ -23,9 +23,9 @@ |
||
23 | 23 | |
24 | 24 | public static function __autoload() { |
25 | 25 | |
26 | - $file_mobiles = (DIR_DATA . 'Agent/Mobiles.php'); |
|
26 | + $file_mobiles = (DIR_DATA.'Agent/Mobiles.php'); |
|
27 | 27 | |
28 | - $file_robots = (DIR_DATA . 'Agent/Robots.php'); |
|
28 | + $file_robots = (DIR_DATA.'Agent/Robots.php'); |
|
29 | 29 | |
30 | 30 | if (is_array($mobiles = Explorer::php($file_mobiles))) self::$mobiles = $mobiles; |
31 | 31 |
@@ -12,13 +12,13 @@ |
||
12 | 12 | |
13 | 13 | # Set headers |
14 | 14 | |
15 | - $headers = ('MIME-Version: 1.0' . "\r\n"); |
|
15 | + $headers = ('MIME-Version: 1.0'."\r\n"); |
|
16 | 16 | |
17 | - $headers .= ('Content-Type: ' . ($is_html ? 'text/html' : 'text/plain') . '; charset=UTF-8' . "\r\n"); |
|
17 | + $headers .= ('Content-Type: '.($is_html ? 'text/html' : 'text/plain').'; charset=UTF-8'."\r\n"); |
|
18 | 18 | |
19 | - $headers .= ('From: ' . $sender . ' <' . $from . '>' . "\r\n" . 'Reply-To: ' . $reply_to . "\r\n"); |
|
19 | + $headers .= ('From: '.$sender.' <'.$from.'>'."\r\n".'Reply-To: '.$reply_to."\r\n"); |
|
20 | 20 | |
21 | - $headers .= ('X-Mailer: PHP/' . phpversion() . "\r\n"); |
|
21 | + $headers .= ('X-Mailer: PHP/'.phpversion()."\r\n"); |
|
22 | 22 | |
23 | 23 | # Send message |
24 | 24 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | # Build query |
20 | 20 | |
21 | - $this->query = ('DELETE FROM ' . $table . ($condition ? (' WHERE (' . $condition . ')') : '')); |
|
21 | + $this->query = ('DELETE FROM '.$table.($condition ? (' WHERE ('.$condition.')') : '')); |
|
22 | 22 | } |
23 | 23 | } |
24 | 24 | } |
@@ -22,9 +22,9 @@ |
||
22 | 22 | |
23 | 23 | # Build query |
24 | 24 | |
25 | - $this->query = ('SELECT ' . $selection . ' FROM ' . $table . ($condition ? (' WHERE (' . $condition . ')') : '') . |
|
25 | + $this->query = ('SELECT '.$selection.' FROM '.$table.($condition ? (' WHERE ('.$condition.')') : ''). |
|
26 | 26 | |
27 | - ($order ? (' ORDER BY ' . $order) : '') . ($limit ? (' LIMIT ' . $limit) : '')); |
|
27 | + ($order ? (' ORDER BY '.$order) : '').($limit ? (' LIMIT '.$limit) : '')); |
|
28 | 28 | } |
29 | 29 | } |
30 | 30 | } |