Completed
Push — release-2.1 ( 7e16ce...4e239b )
by Mathias
08:01
created
Sources/QueryString.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -426,8 +426,8 @@
 block discarded – undo
426 426
 */
427 427
 function matchIPtoCIDR($ip_address, $cidr_address)
428 428
 {
429
-    list ($cidr_network, $cidr_subnetmask) = preg_split('/', $cidr_address);
430
-    return (ip2long($ip_address) & (~((1 << (32 - $cidr_subnetmask)) - 1))) == ip2long($cidr_network);
429
+	list ($cidr_network, $cidr_subnetmask) = preg_split('/', $cidr_address);
430
+	return (ip2long($ip_address) & (~((1 << (32 - $cidr_subnetmask)) - 1))) == ip2long($cidr_network);
431 431
 }
432 432
 
433 433
 /**
Please login to merge, or discard this patch.
Sources/Subs.php 1 patch
Indentation   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5475,7 +5475,6 @@  discard block
 block discarded – undo
5475 5475
 
5476 5476
 /**
5477 5477
  * Tries different modes to make file/dirs writable. Wrapper function for chmod()
5478
-
5479 5478
  * @param string $file The file/dir full path.
5480 5479
  * @param int $value Not needed, added for legacy reasons.
5481 5480
  * @return boolean  true if the file/dir is already writable or the function was able to make it writable, false if the function couldn't make the file/dir writable.
@@ -5515,7 +5514,6 @@  discard block
 block discarded – undo
5515 5514
 
5516 5515
 /**
5517 5516
  * Wrapper function for json_decode() with error handling.
5518
-
5519 5517
  * @param string $json The string to decode.
5520 5518
  * @param bool $returnAsArray To return the decoded string as an array or an object, SMF only uses Arrays but to keep on compatibility with json_decode its set to false as default.
5521 5519
  * @param bool $logIt To specify if the error will be logged if theres any.
@@ -6006,7 +6004,7 @@  discard block
 block discarded – undo
6006 6004
 		$cont = stream_context_get_params($read);
6007 6005
 		$result = isset($cont["options"]["ssl"]["peer_certificate"]) ? true : false;
6008 6006
 	}
6009
-    return $result;
6007
+	return $result;
6010 6008
 }
6011 6009
 
6012 6010
 /**
Please login to merge, or discard this patch.