Completed
Pull Request — master (#40)
by
unknown
01:22
created
util.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 		foreach ($nav as $app) {
53 53
 			$nav_tmp[$app['href']] = $app;
54 54
 		}
55
-		if(is_array($order)) {
55
+		if (is_array($order)) {
56 56
 			foreach ($order as $app) {
57 57
 				if (array_key_exists($app, $nav_tmp)) {
58 58
 					$result[$app] = $nav_tmp[$app];
Please login to merge, or discard this patch.
controller/settingscontroller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 		$navigation = $this->navigationManager->getAll();
71 71
 		$order = json_decode($this->appConfig->getUserValue('order', $this->userId));
72 72
 		$nav = $this->util->matchOrder($navigation, $order);
73
-		$hidden = json_decode($this->appConfig->getUserValue('hidden',$this->userId));
73
+		$hidden = json_decode($this->appConfig->getUserValue('hidden', $this->userId));
74 74
 		return new TemplateResponse(
75 75
 			$this->appName,
76 76
 			'admin',
Please login to merge, or discard this patch.
controller/appcontroller.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -58,26 +58,26 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.