Completed
Push — master ( 06ac16...e0eba9 )
by Nazar
06:35
created
modules/HybridAuth/events.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 						return strtolower($provider);
30 30
 				}
31 31
 			};
32
-			$providers     = [];
32
+			$providers = [];
33 33
 			foreach ($Config->module('HybridAuth')->providers as $provider => $provider_settings) {
34 34
 				if ($provider_settings['enabled']) {
35 35
 					$providers[$provider] = [
Please login to merge, or discard this patch.
modules/Blogs/Sections.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 		CRUD_helpers,
24 24
 		Singleton;
25 25
 
26
-	protected $data_model          = [
26
+	protected $data_model = [
27 27
 		'id'     => 'int:0',
28 28
 		'parent' => 'int:0',
29 29
 		'title'  => 'ml:text',
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
 			LIMIT 1",
196 196
 			$section['parent']
197 197
 		) ?: $section['parent'];
198
-		$update            = $this->db_prime()->q(
198
+		$update = $this->db_prime()->q(
199 199
 			[
200 200
 				"UPDATE `[prefix]blogs_sections`
201 201
 				SET `parent` = '%2\$d'
Please login to merge, or discard this patch.
modules/System/api/Controller/admin/about_server.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 				ob_wrapper('phpinfo'),
88 88
 				$version
89 89
 			);
90
-			$return = "Apache $version[1]";
90
+			$return = "apache $version[1]";
91 91
 			if (stripos($phpinfo, 'mod_php') !== false) {
92 92
 				$return .= ' + mod_php + PHP '.PHP_VERSION;
93 93
 			}
Please login to merge, or discard this patch.
modules/Composer_assets/events.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 	Header set Content-Type application/octet-stream
147 147
 </ifModule>
148 148
 
149
-HTACCESS;
149
+htaccess;
150 150
 			if (is_dir(STORAGE.'/Composer/vendor/bower-asset')) {
151 151
 				file_put_contents(STORAGE.'/Composer/vendor/bower-asset/.htaccess', $htaccess_contents);
152 152
 			}
Please login to merge, or discard this patch.
modules/OAuth2/authorize.php 1 patch
Switch Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -184,40 +184,40 @@
 block discarded – undo
184 184
 	return;
185 185
 }
186 186
 switch ($_GET['response_type']) {
187
-	case 'code':
188
-		$Response->redirect(
189
-			http_build_url(
190
-				$redirect_uri,
191
-				[
192
-					'code'  => $code,
193
-					'state' => isset($_GET['state']) ? $_GET['state'] : false
194
-				]
195
-			),
196
-			302
197
-		);
198
-		$Page->Content = '';
199
-		return;
200
-	case 'token':
201
-		$token_data = $OAuth2->get_code($code, $client['id'], $client['secret'], $redirect_uri);
202
-		if ($token_data) {
203
-			unset($token_data['refresh_token']);
204
-			$url = http_build_url(
205
-				$redirect_uri,
206
-				array_merge(
207
-					$token_data,
187
+		case 'code':
188
+			$Response->redirect(
189
+				http_build_url(
190
+					$redirect_uri,
208 191
 					[
192
+						'code'  => $code,
209 193
 						'state' => isset($_GET['state']) ? $_GET['state'] : false
210 194
 					]
211
-				)
195
+				),
196
+				302
212 197
 			);
213
-			$url = implode('#', explode('?', $url, 2));
214
-			$Response->redirect($url, 302);
215 198
 			$Page->Content = '';
216 199
 			return;
217
-		} else {
218
-			error_redirect('server_error', "Server can't get token data, try later");
219
-			return;
220
-		}
221
-	default:
222
-		error_redirect('unsupported_response_type', 'Specified response_type is not supported, only "token" or "code" types available');
200
+		case 'token':
201
+			$token_data = $OAuth2->get_code($code, $client['id'], $client['secret'], $redirect_uri);
202
+			if ($token_data) {
203
+				unset($token_data['refresh_token']);
204
+				$url = http_build_url(
205
+					$redirect_uri,
206
+					array_merge(
207
+						$token_data,
208
+						[
209
+							'state' => isset($_GET['state']) ? $_GET['state'] : false
210
+						]
211
+					)
212
+				);
213
+				$url = implode('#', explode('?', $url, 2));
214
+				$Response->redirect($url, 302);
215
+				$Page->Content = '';
216
+				return;
217
+			} else {
218
+				error_redirect('server_error', "Server can't get token data, try later");
219
+				return;
220
+			}
221
+		default:
222
+			error_redirect('unsupported_response_type', 'Specified response_type is not supported, only "token" or "code" types available');
223 223
 }
Please login to merge, or discard this patch.
modules/OAuth2/token.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 	->header('cache-control', 'no-store')
19 19
 	->header('pragma', 'no-cache');
20 20
 /**
21
- * Errors processing
22
- */
21
+	 * Errors processing
22
+	 */
23 23
 if (!isset($_POST['grant_type'])) {
24 24
 	$e = new ExitException(
25 25
 		[
Please login to merge, or discard this patch.
modules/WebSockets/Connection_properties_injector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 	public function onOpen (ConnectionInterface $conn, RequestInterface $request = null) {
28 28
 		$L = Language::instance();
29 29
 		/** @noinspection PhpUndefinedFieldInspection */
30
-		$ip               = $this->ip(
30
+		$ip = $this->ip(
31 31
 			[
32 32
 				$conn->remoteAddress,
33 33
 				$request->getHeader('X-Forwarded-For'),
Please login to merge, or discard this patch.
modules/WebSockets/functions.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 	React\EventLoop\Factory as Loop_factory,
14 14
 	cs\Config;
15 15
 /**
16
- * @return bool
17
- */
16
+	 * @return bool
17
+	 */
18 18
 function is_server_running () {
19 19
 	$connected = false;
20 20
 	$servers   = Pool::instance()->get_all();
Please login to merge, or discard this patch.
modules/Shop/Orders.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
 
68 68
 	const PAYMENT_METHOD_CASH = 'shop:cash';
69 69
 
70
-	protected $data_model            = [
70
+	protected $data_model = [
71 71
 		'id'                => 'int',
72 72
 		'user'              => 'int',
73 73
 		'date'              => 'int',
Please login to merge, or discard this patch.