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