Completed
Push — master ( f25d34...b91e75 )
by Morris
17:07
created
apps/files_sharing/appinfo/app.php 1 patch
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
 
41 41
 $eventDispatcher = \OC::$server->getEventDispatcher();
42 42
 $eventDispatcher->addListener(
43
-	'OCA\Files::loadAdditionalScripts',
44
-	function() {
45
-		\OCP\Util::addStyle('files_sharing', 'mergedAdditionalStyles');
46
-		\OCP\Util::addScript('files_sharing', 'additionalScripts');
47
-	}
43
+    'OCA\Files::loadAdditionalScripts',
44
+    function() {
45
+        \OCP\Util::addStyle('files_sharing', 'mergedAdditionalStyles');
46
+        \OCP\Util::addScript('files_sharing', 'additionalScripts');
47
+    }
48 48
 );
49 49
 
50 50
 $config = \OC::$server->getConfig();
@@ -54,62 +54,62 @@  discard block
 block discarded – undo
54 54
 
55 55
 if ($config->getAppValue('core', 'shareapi_enabled', 'yes') === 'yes') {
56 56
 
57
-	$sharingSublistArray = [];
57
+    $sharingSublistArray = [];
58 58
 
59
-	if (\OCP\Util::isSharingDisabledForUser() === false) {
60
-		array_push($sharingSublistArray, [
61
-			'id' => 'sharingout',
62
-			'appname' => 'files_sharing',
63
-			'script' => 'list.php',
64
-			'order' => 16,
65
-			'name' => $l->t('Shared with others'),
66
-		]);
67
-	}
59
+    if (\OCP\Util::isSharingDisabledForUser() === false) {
60
+        array_push($sharingSublistArray, [
61
+            'id' => 'sharingout',
62
+            'appname' => 'files_sharing',
63
+            'script' => 'list.php',
64
+            'order' => 16,
65
+            'name' => $l->t('Shared with others'),
66
+        ]);
67
+    }
68 68
 
69
-	array_push($sharingSublistArray, [
70
-		'id' => 'sharingin',
71
-		'appname' => 'files_sharing',
72
-		'script' => 'list.php',
73
-		'order' => 15,
74
-		'name' => $l->t('Shared with you'),
75
-	]);
69
+    array_push($sharingSublistArray, [
70
+        'id' => 'sharingin',
71
+        'appname' => 'files_sharing',
72
+        'script' => 'list.php',
73
+        'order' => 15,
74
+        'name' => $l->t('Shared with you'),
75
+    ]);
76 76
 
77
-	if (\OCP\Util::isSharingDisabledForUser() === false) {
78
-		// Check if sharing by link is enabled
79
-		if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes') {
80
-			array_push($sharingSublistArray, [
81
-				'id' => 'sharinglinks',
82
-				'appname' => 'files_sharing',
83
-				'script' => 'list.php',
84
-				'order' => 17,
85
-				'name' => $l->t('Shared by link'),
86
-			]);
87
-		}
88
-	}
77
+    if (\OCP\Util::isSharingDisabledForUser() === false) {
78
+        // Check if sharing by link is enabled
79
+        if ($config->getAppValue('core', 'shareapi_allow_links', 'yes') === 'yes') {
80
+            array_push($sharingSublistArray, [
81
+                'id' => 'sharinglinks',
82
+                'appname' => 'files_sharing',
83
+                'script' => 'list.php',
84
+                'order' => 17,
85
+                'name' => $l->t('Shared by link'),
86
+            ]);
87
+        }
88
+    }
89 89
 
90
-	array_push($sharingSublistArray, [
91
-		'id' => 'deletedshares',
92
-		'appname' => 'files_sharing',
93
-		'script' => 'list.php',
94
-		'order' => 19,
95
-		'name' => $l->t('Deleted shares'),
96
-	]);
90
+    array_push($sharingSublistArray, [
91
+        'id' => 'deletedshares',
92
+        'appname' => 'files_sharing',
93
+        'script' => 'list.php',
94
+        'order' => 19,
95
+        'name' => $l->t('Deleted shares'),
96
+    ]);
97 97
 
98
-	// show_Quick_Access stored as string
99
-	$user = $userSession->getUser();
100
-	$defaultExpandedState = true;
101
-	if ($user instanceof \OCP\IUser) {
102
-		$defaultExpandedState = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_sharing_menu', '0') === '1';
103
-	}
98
+    // show_Quick_Access stored as string
99
+    $user = $userSession->getUser();
100
+    $defaultExpandedState = true;
101
+    if ($user instanceof \OCP\IUser) {
102
+        $defaultExpandedState = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_sharing_menu', '0') === '1';
103
+    }
104 104
 
105
-	\OCA\Files\App::getNavigationManager()->add([
106
-		'id' => 'shareoverview',
107
-		'appname' => 'files_sharing',
108
-		'script' => 'list.php',
109
-		'order' => 18,
110
-		'name' => $l->t('Shares'),
111
-		'classes' => 'collapsible',
112
-		'sublist' => $sharingSublistArray,
113
-		'expandedState' => 'show_sharing_menu'
114
-	]);
105
+    \OCA\Files\App::getNavigationManager()->add([
106
+        'id' => 'shareoverview',
107
+        'appname' => 'files_sharing',
108
+        'script' => 'list.php',
109
+        'order' => 18,
110
+        'name' => $l->t('Shares'),
111
+        'classes' => 'collapsible',
112
+        'sublist' => $sharingSublistArray,
113
+        'expandedState' => 'show_sharing_menu'
114
+    ]);
115 115
 }
Please login to merge, or discard this patch.