@@ -58,26 +58,26 @@ |
||
| 58 | 58 | $firstPage = null; |
| 59 | 59 | |
| 60 | 60 | if ($order !== null && sizeof($order) > 0) { |
| 61 | - if($hidden !== null && sizeof($hidden) > 0){ |
|
| 62 | - foreach($order as $app){ |
|
| 63 | - if(!in_array($app,$hidden)){ |
|
| 61 | + if ($hidden !== null && sizeof($hidden) > 0) { |
|
| 62 | + foreach ($order as $app) { |
|
| 63 | + if (!in_array($app, $hidden)) { |
|
| 64 | 64 | $firstPage = $app; |
| 65 | 65 | break; |
| 66 | 66 | } |
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | - else{ |
|
| 69 | + else { |
|
| 70 | 70 | $firstPage = $order[0]; |
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | - if($firstPage===null) { |
|
| 73 | + if ($firstPage === null) { |
|
| 74 | 74 | |
| 75 | 75 | $appId = 'files'; |
| 76 | 76 | |
| 77 | 77 | if (getenv('front_controller_active') === 'true') { |
| 78 | - $firstPage = $this->urlGenerator->getAbsoluteURL('/apps/' . $appId . '/'); |
|
| 78 | + $firstPage = $this->urlGenerator->getAbsoluteURL('/apps/'.$appId.'/'); |
|
| 79 | 79 | } else { |
| 80 | - $firstPage = $this->urlGenerator->getAbsoluteURL('/index.php/apps/' . $appId . '/'); |
|
| 80 | + $firstPage = $this->urlGenerator->getAbsoluteURL('/index.php/apps/'.$appId.'/'); |
|
| 81 | 81 | } |
| 82 | 82 | } |
| 83 | 83 | return new RedirectResponse($firstPage); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $order_user = $this->appConfig->getUserValue('order', $this->userId); |
| 40 | 40 | $order_default = $this->appConfig->getAppValue('order'); |
| 41 | 41 | $forced_order = json_decode($this->appConfig->getAppValue('force')); |
| 42 | - if($forced_order === null) $forced_order = false; |
|
| 42 | + if ($forced_order === null) $forced_order = false; |
|
| 43 | 43 | if ($order_user !== null && $order_user !== "" && !($forced_order)) { |
| 44 | 44 | $order = $order_user; |
| 45 | 45 | } else { |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | foreach ($nav as $app) { |
| 55 | 55 | $nav_tmp[$app['href']] = $app; |
| 56 | 56 | } |
| 57 | - if(is_array($order)) { |
|
| 57 | + if (is_array($order)) { |
|
| 58 | 58 | foreach ($order as $app) { |
| 59 | 59 | if (array_key_exists($app, $nav_tmp)) { |
| 60 | 60 | $result[$app] = $nav_tmp[$app]; |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $hidden_user = $this->appConfig->getUserValue('hidden', $this->userId); |
| 74 | 74 | $hidden_default = $this->appConfig->getAppValue('hidden'); |
| 75 | 75 | $forced_order = json_decode($this->appConfig->getAppValue('force')); |
| 76 | - if($forced_order === null) $forced_order = false; |
|
| 76 | + if ($forced_order === null) $forced_order = false; |
|
| 77 | 77 | if ($hidden_user !== null && $hidden_user !== "" && !($forced_order)) { |
| 78 | 78 | $hidden = $hidden_user; |
| 79 | 79 | } else { |
@@ -55,12 +55,12 @@ discard block |
||
| 55 | 55 | // Private API call |
| 56 | 56 | $navigation = $this->navigationManager->getAll(); |
| 57 | 57 | $order = json_decode($this->appConfig->getAppValue('order')); |
| 58 | - if($order === null) $order = array(); |
|
| 58 | + if ($order === null) $order = array(); |
|
| 59 | 59 | $nav = $this->util->matchOrder($navigation, $order); |
| 60 | 60 | $hidden = json_decode($this->appConfig->getAppValue('hidden')); |
| 61 | - if($hidden === null) $hidden = array(); |
|
| 61 | + if ($hidden === null) $hidden = array(); |
|
| 62 | 62 | $force = json_decode($this->appConfig->getAppValue('force')); |
| 63 | - if($force === null) $force = false; |
|
| 63 | + if ($force === null) $force = false; |
|
| 64 | 64 | return new TemplateResponse( |
| 65 | 65 | $this->appName, |
| 66 | 66 | 'admin', |
@@ -73,18 +73,18 @@ discard block |
||
| 73 | 73 | // Private API call |
| 74 | 74 | $navigation = $this->navigationManager->getAll(); |
| 75 | 75 | $order = json_decode($this->appConfig->getUserValue('order', $this->userId)); |
| 76 | - if($order === null){ |
|
| 76 | + if ($order === null) { |
|
| 77 | 77 | $order = json_decode($this->appConfig->getAppValue('order')); |
| 78 | - if($order === null) $order = array(); |
|
| 78 | + if ($order === null) $order = array(); |
|
| 79 | 79 | } |
| 80 | 80 | $nav = $this->util->matchOrder($navigation, $order); |
| 81 | - $hidden = json_decode($this->appConfig->getUserValue('hidden',$this->userId)); |
|
| 82 | - if($hidden === null){ |
|
| 81 | + $hidden = json_decode($this->appConfig->getUserValue('hidden', $this->userId)); |
|
| 82 | + if ($hidden === null) { |
|
| 83 | 83 | $hidden = json_decode($this->appConfig->getAppValue('hidden')); |
| 84 | - if($hidden === null) $hidden = array(); |
|
| 84 | + if ($hidden === null) $hidden = array(); |
|
| 85 | 85 | } |
| 86 | 86 | $force = json_decode($this->appConfig->getAppValue('force')); |
| 87 | - if($force === null) $force = false; |
|
| 87 | + if ($force === null) $force = false; |
|
| 88 | 88 | return new TemplateResponse( |
| 89 | 89 | $this->appName, |
| 90 | 90 | 'admin', |