Completed
Push — master ( 463216...a50a47 )
by Agel_Nash
05:34
created
src/math.functions.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
 		}
29 29
 		if ($num < 0) {
30 30
 			$out = $minus . abs($num);
31
-		}else if ($num > 0) {
31
+		} else if ($num > 0) {
32 32
 			$out = $plus . abs($num);
33
-		}else {
33
+		} else {
34 34
 			$out = 0;
35 35
 		}
36 36
 		return $out;
Please login to merge, or discard this patch.
src/array.functions.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 						$workArray = &$workArray[$subKey];
113 113
 					}
114 114
 				}
115
-			}else {
115
+			} else {
116 116
 				$out = $data;
117 117
 			}
118 118
 		}
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
 			if ((int)$count > 0) {
302 302
 				$data = current(array_chunk($data, (int)$count, true));
303 303
 			}
304
-		}else {
304
+		} else {
305 305
 			$data = array();
306 306
 		}
307 307
 		return $data;
Please login to merge, or discard this patch.
src/html.functions.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 			$thead = $table['head'];
29 29
 		} elseif (is_array($table)) {
30 30
 			$thead = html_implode($table, 'th');
31
-		}else {
31
+		} else {
32 32
 			$thead = $table;
33 33
 		}
34 34
 		if (!empty($thead)) {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 			if ((string)$val === (string)$current) {
125 125
 				$value['selected'] = true;
126 126
 				$selected = true;
127
-			}else {
127
+			} else {
128 128
 				unset($value['selected']);
129 129
 			}
130 130
 
@@ -269,12 +269,12 @@  discard block
 block discarded – undo
269 269
 						$subText = substr($m[2], 0, $subTmp[1]) . $closeTag;
270 270
 						$html = substr($m[2], $subTmp[1] + strlen($closeTag));
271 271
 						$replace[] = array($m[1], $subText, $closeTag);
272
-					}else {
272
+					} else {
273 273
 						$replace[] = array($m[1], $m[2], '');
274 274
 						$html = '';
275 275
 					}
276 276
 				}
277
-			}else {
277
+			} else {
278 278
 				$html = '';
279 279
 			}
280 280
 		} while (!empty($html));
Please login to merge, or discard this patch.
src/string.functions.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@  discard block
 block discarded – undo
205 205
 				$count += count($parts) - 1;
206 206
 				$subject = implode($replacements[$key], $parts);
207 207
 			}
208
-		}else {
208
+		} else {
209 209
 			// Call mb_str_replace for each subject in array, recursively
210 210
 			foreach ($subject as $key => $value) {
211 211
 				$subject[$key] = mb_str_replace($search, $replace, $value, $count);
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
 		$text = mb_substr($text, 0, $len + 1, $encoding);
232 232
 		if (mb_substr($text, -1, null, $encoding) == ' ') {
233 233
 			$out = trim($text);
234
-		}else {
234
+		} else {
235 235
 			$out = mb_substr($text, 0, mb_strripos($text, ' ', null, $encoding), $encoding);
236 236
 		}
237 237
 		return preg_replace("/(([\.,\-:!?;\s])|(&\w+;))+$/ui", "", $out);
Please login to merge, or discard this patch.
src/utils.functions.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,10 +17,10 @@  discard block
 block discarded – undo
17 17
 			list(, $domain) = explode("@", $email, 2);
18 18
 			if (!$dns || ($dns && checkdnsrr($domain, "MX") && checkdnsrr($domain, "A"))) {
19 19
 				$error = false;
20
-			}else {
20
+			} else {
21 21
 				$error = 'dns';
22 22
 			}
23
-		}else {
23
+		} else {
24 24
 			$error = 'format';
25 25
 		}
26 26
 		return $error;
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 				$output .= fgets($conn, 128);
356 356
 			}
357 357
 			fclose($conn);
358
-		}else {
358
+		} else {
359 359
 			throw new ErrorException('Could not connect to ' . $nic_server . '!');
360 360
 		}
361 361
 
Please login to merge, or discard this patch.
src/debug.functions.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
 					'memory' => format_bytes($marks[$key]['memory']),
104 104
 					'time' => format_microtime($marks[$key]['time'])
105 105
 				);
106
-			}else{
106
+			} else{
107 107
 				$out = get_key($marks, $key, array(
108 108
 					'time' => get_key($_SERVER, 'REQUEST_TIME_FLOAT', 0), 
109 109
 					'memory'=> 0
Please login to merge, or discard this patch.