@@ -8,7 +8,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -60,7 +60,9 @@ |
||
| 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) { |