Completed
Push — master ( 4d1a9f...1495be )
by Angus
02:52
created
application/controllers/User/PublicList.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 		$this->load->library('form_validation');
9 9
 	}
10 10
 
11
-	public function index(?string $username = NULL, string $type = 'html') {
11
+	public function index(? string $username = NULL, string $type = 'html') {
12 12
 		$show_404 = FALSE;
13 13
 
14 14
 		$type = mb_strtolower($type);
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
 		if($show_404) show_404();
64 64
 	}
65 65
 
66
-	private function _walk_recursive_remove (array $array, callable $callback) {
67
-		foreach ($array as $k => $v) {
68
-			if (is_array($v)) {
66
+	private function _walk_recursive_remove(array $array, callable $callback) {
67
+		foreach($array as $k => $v) {
68
+			if(is_array($v)) {
69 69
 				$array[$k] = $this->_walk_recursive_remove($v, $callback);
70 70
 			} else {
71
-				if ($callback($v, $k)) {
71
+				if($callback($v, $k)) {
72 72
 					unset($array[$k]);
73 73
 				}
74 74
 			}
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,9 @@
 block discarded – undo
60 60
 			$show_404 = TRUE;
61 61
 		}
62 62
 
63
-		if($show_404) show_404();
63
+		if($show_404) {
64
+			show_404();
65
+		}
64 66
 	}
65 67
 
66 68
 	private function _walk_recursive_remove (array $array, callable $callback) {
Please login to merge, or discard this patch.