Passed
Pull Request — master (#12)
by Anton
05:30 queued 02:25
created
www/engine/Framework/Includes/Headers/Mime.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
www/engine/Framework/Exception.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,28 +32,28 @@
 block discarded – undo
32 32
 
33 33
 	# Class load exception
34 34
 
35
-	class ClassLoad extends Exception  {
35
+	class ClassLoad extends Exception {
36 36
 
37 37
 		protected $message = 'Class \'$value$\' not found';
38 38
 	}
39 39
 
40 40
 	# Database connect exception
41 41
 
42
-	class DBConnect extends Exception  {
42
+	class DBConnect extends Exception {
43 43
 
44 44
 		protected $message = 'Unable to connect to database';
45 45
 	}
46 46
 
47 47
 	# Database select exception
48 48
 
49
-	class DBSelect extends Exception  {
49
+	class DBSelect extends Exception {
50 50
 
51 51
 		protected $message = 'Unable to select database';
52 52
 	}
53 53
 
54 54
 	# Database charset exception
55 55
 
56
-	class DBCharset extends Exception  {
56
+	class DBCharset extends Exception {
57 57
 
58 58
 		protected $message = 'Unable to set database charset';
59 59
 	}
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Number/Number.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
 			# ------------------------
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Geo/Country.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Geo/Timezone.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Headers/Headers.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 
118 118
 		public static function status(string $code) {
119 119
 
120
-			if (self::isStatusCode($code)) header(getenv('SERVER_PROTOCOL') . ' ' . self::$status_codes[$code]);
120
+			if (self::isStatusCode($code)) header(getenv('SERVER_PROTOCOL').' '.self::$status_codes[$code]);
121 121
 		}
122 122
 
123 123
 		# Send content header
@@ -126,12 +126,12 @@  discard block
 block discarded – undo
126 126
 
127 127
 			if (self::isContentTypeText($type)) {
128 128
 
129
-				return header('Content-type: ' . self::$content_types_text[$type] . '; charset=UTF-8');
129
+				return header('Content-type: '.self::$content_types_text[$type].'; charset=UTF-8');
130 130
 			}
131 131
 
132 132
 			if (self::isContentTypeMedia($type)) {
133 133
 
134
-				return header('Content-type: ' . self::$content_types_media[$type]);
134
+				return header('Content-type: '.self::$content_types_media[$type]);
135 135
 			}
136 136
 		}
137 137
 
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
 
144 144
 			if (!in_array($limiter, [CACHE_LIMITER_PRIVATE, CACHE_LIMITER_PUBLIC], true)) return;
145 145
 
146
-			header('Expires: ' . gmdate('D, d M Y H:i:s', (REQUEST_TIME + $expires)) . ' GMT');
146
+			header('Expires: '.gmdate('D, d M Y H:i:s', (REQUEST_TIME + $expires)).' GMT');
147 147
 
148
-			header('Last-Modified: ' . gmdate('D, d M Y H:i:s', REQUEST_TIME) . ' GMT');
148
+			header('Last-Modified: '.gmdate('D, d M Y H:i:s', REQUEST_TIME).' GMT');
149 149
 
150
-			header('Cache-Control: ' . $limiter . ', max-age=' . $expires . ', pre-check=' . $expires);
150
+			header('Cache-Control: '.$limiter.', max-age='.$expires.', pre-check='.$expires);
151 151
 
152
-			header('Pragma: ' . $limiter);
152
+			header('Pragma: '.$limiter);
153 153
 
154 154
 			# ------------------------
155 155
 
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
 
163 163
 			if (self::$cache_send) return;
164 164
 
165
-			header('Expires: ' . gmdate('D, d M Y H:i:s', strtotime('-1 day')) . ' GMT');
165
+			header('Expires: '.gmdate('D, d M Y H:i:s', strtotime('-1 day')).' GMT');
166 166
 
167
-			header('Last-Modified: ' . gmdate('D, d M Y H:i:s', strtotime('-1 day')) . ' GMT');
167
+			header('Last-Modified: '.gmdate('D, d M Y H:i:s', strtotime('-1 day')).' GMT');
168 168
 
169 169
 			header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
170 170
 
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Request/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Agent/Agent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
www/engine/Framework/Classes/Mailer/Mailer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.