Completed
Push — master ( 49662f...f67d94 )
by Joas
99:38 queued 81:58
created
apps/encryption/lib/Settings/Personal.php 1 patch
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -33,63 +33,63 @@
 block discarded – undo
33 33
 
34 34
 class Personal implements  ISettings {
35 35
 
36
-	/** @var IConfig */
37
-	private $config;
38
-	/** @var Session */
39
-	private $session;
40
-	/** @var Util */
41
-	private $util;
42
-	/** @var IUserSession */
43
-	private $userSession;
36
+    /** @var IConfig */
37
+    private $config;
38
+    /** @var Session */
39
+    private $session;
40
+    /** @var Util */
41
+    private $util;
42
+    /** @var IUserSession */
43
+    private $userSession;
44 44
 
45
-	public function __construct(IConfig $config, Session $session, Util $util, IUserSession $userSession) {
46
-		$this->config = $config;
47
-		$this->session = $session;
48
-		$this->util = $util;
49
-		$this->userSession = $userSession;
50
-	}
45
+    public function __construct(IConfig $config, Session $session, Util $util, IUserSession $userSession) {
46
+        $this->config = $config;
47
+        $this->session = $session;
48
+        $this->util = $util;
49
+        $this->userSession = $userSession;
50
+    }
51 51
 
52
-	/**
53
-	 * @return TemplateResponse returns the instance with all parameters set, ready to be rendered
54
-	 * @since 9.1
55
-	 */
56
-	public function getForm() {
57
-		$recoveryAdminEnabled = $this->config->getAppValue('encryption', 'recoveryAdminEnabled');
58
-		$privateKeySet = $this->session->isPrivateKeySet();
52
+    /**
53
+     * @return TemplateResponse returns the instance with all parameters set, ready to be rendered
54
+     * @since 9.1
55
+     */
56
+    public function getForm() {
57
+        $recoveryAdminEnabled = $this->config->getAppValue('encryption', 'recoveryAdminEnabled');
58
+        $privateKeySet = $this->session->isPrivateKeySet();
59 59
 
60
-		if (!$recoveryAdminEnabled && $privateKeySet) {
61
-			return new TemplateResponse('settings', 'settings/empty', [], '');
62
-		}
60
+        if (!$recoveryAdminEnabled && $privateKeySet) {
61
+            return new TemplateResponse('settings', 'settings/empty', [], '');
62
+        }
63 63
 
64
-		$userId = $this->userSession->getUser()->getUID();
65
-		$recoveryEnabledForUser = $this->util->isRecoveryEnabledForUser($userId);
64
+        $userId = $this->userSession->getUser()->getUID();
65
+        $recoveryEnabledForUser = $this->util->isRecoveryEnabledForUser($userId);
66 66
 
67
-		$parameters = [
68
-			'recoveryEnabled' => $recoveryAdminEnabled,
69
-			'recoveryEnabledForUser' => $recoveryEnabledForUser,
70
-			'privateKeySet' => $privateKeySet,
71
-			'initialized' => $this->session->getStatus(),
72
-		];
73
-		return new TemplateResponse('encryption', 'settings-personal', $parameters, '');
74
-	}
67
+        $parameters = [
68
+            'recoveryEnabled' => $recoveryAdminEnabled,
69
+            'recoveryEnabledForUser' => $recoveryEnabledForUser,
70
+            'privateKeySet' => $privateKeySet,
71
+            'initialized' => $this->session->getStatus(),
72
+        ];
73
+        return new TemplateResponse('encryption', 'settings-personal', $parameters, '');
74
+    }
75 75
 
76
-	/**
77
-	 * @return string the section ID, e.g. 'sharing'
78
-	 * @since 9.1
79
-	 */
80
-	public function getSection() {
81
-		return 'security';
82
-	}
76
+    /**
77
+     * @return string the section ID, e.g. 'sharing'
78
+     * @since 9.1
79
+     */
80
+    public function getSection() {
81
+        return 'security';
82
+    }
83 83
 
84
-	/**
85
-	 * @return int whether the form should be rather on the top or bottom of
86
-	 * the admin section. The forms are arranged in ascending order of the
87
-	 * priority values. It is required to return a value between 0 and 100.
88
-	 *
89
-	 * E.g.: 70
90
-	 * @since 9.1
91
-	 */
92
-	public function getPriority() {
93
-		return 80;
94
-	}
84
+    /**
85
+     * @return int whether the form should be rather on the top or bottom of
86
+     * the admin section. The forms are arranged in ascending order of the
87
+     * priority values. It is required to return a value between 0 and 100.
88
+     *
89
+     * E.g.: 70
90
+     * @since 9.1
91
+     */
92
+    public function getPriority() {
93
+        return 80;
94
+    }
95 95
 }
Please login to merge, or discard this patch.
settings/templates/settings/admin/encryption.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -57,9 +57,9 @@  discard block
 block discarded – undo
57 57
 	<div id="EncryptionSettingsArea" class="<?php if (!$_['encryptionEnabled']) p('hidden'); ?>">
58 58
 		<div id='selectEncryptionModules' class="<?php if (!$_['encryptionReady']) p('hidden'); ?>">
59 59
 			<?php
60
-			if (empty($_['encryptionModules'])) {
61
-				p($l->t('No encryption module loaded, please enable an encryption module in the app menu.'));
62
-			} else { ?>
60
+            if (empty($_['encryptionModules'])) {
61
+                p($l->t('No encryption module loaded, please enable an encryption module in the app menu.'));
62
+            } else { ?>
63 63
 				<h3><?php p($l->t('Select default encryption module:')) ?></h3>
64 64
 				<fieldset id='encryptionModules'>
65 65
 					<?php foreach ($_['encryptionModules'] as $id => $module): ?>
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
 							   name="default_encryption_module"
68 68
 							   value="<?php p($id) ?>"
69 69
 							<?php if ($module['default']) {
70
-								p('checked');
71
-							} ?>>
70
+                                p('checked');
71
+                            } ?>>
72 72
 						<label
73 73
 							for="<?php p($id) ?>"><?php p($module['displayName']) ?></label>
74 74
 						<br/>
@@ -78,10 +78,10 @@  discard block
 block discarded – undo
78 78
 		</div>
79 79
 		<div id="migrationWarning" class="<?php if ($_['encryptionReady']) p('hidden'); ?>">
80 80
 			<?php
81
-			if ($_['encryptionReady'] === false && $_['externalBackendsEnabled'] === true) {
82
-				p($l->t('You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one. Please enable the "Default encryption module" and run \'occ encryption:migrate\''));
83
-			} elseif ($_['encryptionReady'] === false && $_['externalBackendsEnabled'] === false) {
84
-				p($l->t('You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one.')); ?>
81
+            if ($_['encryptionReady'] === false && $_['externalBackendsEnabled'] === true) {
82
+                p($l->t('You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one. Please enable the "Default encryption module" and run \'occ encryption:migrate\''));
83
+            } elseif ($_['encryptionReady'] === false && $_['externalBackendsEnabled'] === false) {
84
+                p($l->t('You need to migrate your encryption keys from the old encryption (ownCloud <= 8.0) to the new one.')); ?>
85 85
 				<input type="submit" name="startmigration" id="startmigration"
86 86
 					   value="<?php p($l->t('Start migration')); ?>"/>
87 87
 			<?php } ?>
Please login to merge, or discard this patch.
lib/private/Group/Backend.php 1 patch
Indentation   +93 added lines, -93 removed lines patch added patch discarded remove patch
@@ -26,107 +26,107 @@
 block discarded – undo
26 26
  * Abstract base class for user management
27 27
  */
28 28
 abstract class Backend implements \OCP\GroupInterface {
29
-	/**
30
-	 * error code for functions not provided by the group backend
31
-	 */
32
-	const NOT_IMPLEMENTED = -501;
29
+    /**
30
+     * error code for functions not provided by the group backend
31
+     */
32
+    const NOT_IMPLEMENTED = -501;
33 33
 
34
-	protected $possibleActions = [
35
-		self::CREATE_GROUP => 'createGroup',
36
-		self::DELETE_GROUP => 'deleteGroup',
37
-		self::ADD_TO_GROUP => 'addToGroup',
38
-		self::REMOVE_FROM_GOUP => 'removeFromGroup',
39
-		self::COUNT_USERS => 'countUsersInGroup',
40
-		self::GROUP_DETAILS => 'getGroupDetails',
41
-		self::IS_ADMIN => 'isAdmin',
42
-	];
34
+    protected $possibleActions = [
35
+        self::CREATE_GROUP => 'createGroup',
36
+        self::DELETE_GROUP => 'deleteGroup',
37
+        self::ADD_TO_GROUP => 'addToGroup',
38
+        self::REMOVE_FROM_GOUP => 'removeFromGroup',
39
+        self::COUNT_USERS => 'countUsersInGroup',
40
+        self::GROUP_DETAILS => 'getGroupDetails',
41
+        self::IS_ADMIN => 'isAdmin',
42
+    ];
43 43
 
44
-	/**
45
-	* Get all supported actions
46
-	* @return int bitwise-or'ed actions
47
-	*
48
-	* Returns the supported actions as int to be
49
-	* compared with \OC\Group\Backend::CREATE_GROUP etc.
50
-	*/
51
-	public function getSupportedActions() {
52
-		$actions = 0;
53
-		foreach($this->possibleActions AS $action => $methodName) {
54
-			if(method_exists($this, $methodName)) {
55
-				$actions |= $action;
56
-			}
57
-		}
44
+    /**
45
+     * Get all supported actions
46
+     * @return int bitwise-or'ed actions
47
+     *
48
+     * Returns the supported actions as int to be
49
+     * compared with \OC\Group\Backend::CREATE_GROUP etc.
50
+     */
51
+    public function getSupportedActions() {
52
+        $actions = 0;
53
+        foreach($this->possibleActions AS $action => $methodName) {
54
+            if(method_exists($this, $methodName)) {
55
+                $actions |= $action;
56
+            }
57
+        }
58 58
 
59
-		return $actions;
60
-	}
59
+        return $actions;
60
+    }
61 61
 
62
-	/**
63
-	* Check if backend implements actions
64
-	* @param int $actions bitwise-or'ed actions
65
-	* @return bool
66
-	*
67
-	* Returns the supported actions as int to be
68
-	* compared with \OC\Group\Backend::CREATE_GROUP etc.
69
-	*/
70
-	public function implementsActions($actions) {
71
-		return (bool)($this->getSupportedActions() & $actions);
72
-	}
62
+    /**
63
+     * Check if backend implements actions
64
+     * @param int $actions bitwise-or'ed actions
65
+     * @return bool
66
+     *
67
+     * Returns the supported actions as int to be
68
+     * compared with \OC\Group\Backend::CREATE_GROUP etc.
69
+     */
70
+    public function implementsActions($actions) {
71
+        return (bool)($this->getSupportedActions() & $actions);
72
+    }
73 73
 
74
-	/**
75
-	 * is user in group?
76
-	 * @param string $uid uid of the user
77
-	 * @param string $gid gid of the group
78
-	 * @return bool
79
-	 *
80
-	 * Checks whether the user is member of a group or not.
81
-	 */
82
-	public function inGroup($uid, $gid) {
83
-		return in_array($gid, $this->getUserGroups($uid));
84
-	}
74
+    /**
75
+     * is user in group?
76
+     * @param string $uid uid of the user
77
+     * @param string $gid gid of the group
78
+     * @return bool
79
+     *
80
+     * Checks whether the user is member of a group or not.
81
+     */
82
+    public function inGroup($uid, $gid) {
83
+        return in_array($gid, $this->getUserGroups($uid));
84
+    }
85 85
 
86
-	/**
87
-	 * Get all groups a user belongs to
88
-	 * @param string $uid Name of the user
89
-	 * @return array an array of group names
90
-	 *
91
-	 * This function fetches all groups a user belongs to. It does not check
92
-	 * if the user exists at all.
93
-	 */
94
-	public function getUserGroups($uid) {
95
-		return array();
96
-	}
86
+    /**
87
+     * Get all groups a user belongs to
88
+     * @param string $uid Name of the user
89
+     * @return array an array of group names
90
+     *
91
+     * This function fetches all groups a user belongs to. It does not check
92
+     * if the user exists at all.
93
+     */
94
+    public function getUserGroups($uid) {
95
+        return array();
96
+    }
97 97
 
98
-	/**
99
-	 * get a list of all groups
100
-	 * @param string $search
101
-	 * @param int $limit
102
-	 * @param int $offset
103
-	 * @return array an array of group names
104
-	 *
105
-	 * Returns a list with all groups
106
-	 */
98
+    /**
99
+     * get a list of all groups
100
+     * @param string $search
101
+     * @param int $limit
102
+     * @param int $offset
103
+     * @return array an array of group names
104
+     *
105
+     * Returns a list with all groups
106
+     */
107 107
 
108
-	public function getGroups($search = '', $limit = -1, $offset = 0) {
109
-		return array();
110
-	}
108
+    public function getGroups($search = '', $limit = -1, $offset = 0) {
109
+        return array();
110
+    }
111 111
 
112
-	/**
113
-	 * check if a group exists
114
-	 * @param string $gid
115
-	 * @return bool
116
-	 */
117
-	public function groupExists($gid) {
118
-		return in_array($gid, $this->getGroups($gid, 1));
119
-	}
112
+    /**
113
+     * check if a group exists
114
+     * @param string $gid
115
+     * @return bool
116
+     */
117
+    public function groupExists($gid) {
118
+        return in_array($gid, $this->getGroups($gid, 1));
119
+    }
120 120
 
121
-	/**
122
-	 * get a list of all users in a group
123
-	 * @param string $gid
124
-	 * @param string $search
125
-	 * @param int $limit
126
-	 * @param int $offset
127
-	 * @return array an array of user ids
128
-	 */
129
-	public function usersInGroup($gid, $search = '', $limit = -1, $offset = 0) {
130
-		return array();
131
-	}
121
+    /**
122
+     * get a list of all users in a group
123
+     * @param string $gid
124
+     * @param string $search
125
+     * @param int $limit
126
+     * @param int $offset
127
+     * @return array an array of user ids
128
+     */
129
+    public function usersInGroup($gid, $search = '', $limit = -1, $offset = 0) {
130
+        return array();
131
+    }
132 132
 }
Please login to merge, or discard this patch.
apps/admin_audit/lib/Actions/GroupManagement.php 1 patch
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -38,71 +38,71 @@
 block discarded – undo
38 38
  */
39 39
 class GroupManagement extends Action {
40 40
 
41
-	/**
42
-	 * log add user to group event
43
-	 *
44
-	 * @param IGroup $group
45
-	 * @param IUser $user
46
-	 */
47
-	public function addUser(IGroup $group, IUser $user) {
48
-		$this->log('User "%s" added to group "%s"',
49
-			[
50
-				'group' => $group->getGID(),
51
-				'user' => $user->getUID()
52
-			],
53
-			[
54
-				'user', 'group'
55
-			]
56
-		);
57
-	}
41
+    /**
42
+     * log add user to group event
43
+     *
44
+     * @param IGroup $group
45
+     * @param IUser $user
46
+     */
47
+    public function addUser(IGroup $group, IUser $user) {
48
+        $this->log('User "%s" added to group "%s"',
49
+            [
50
+                'group' => $group->getGID(),
51
+                'user' => $user->getUID()
52
+            ],
53
+            [
54
+                'user', 'group'
55
+            ]
56
+        );
57
+    }
58 58
 
59
-	/**
60
-	 * log remove user from group event
61
-	 *
62
-	 * @param IGroup $group
63
-	 * @param IUser $user
64
-	 */
65
-	public function removeUser(IGroup $group, IUser $user) {
66
-		$this->log('User "%s" removed from group "%s"',
67
-			[
68
-				'group' => $group->getGID(),
69
-				'user' => $user->getUID()
70
-			],
71
-			[
72
-				'user', 'group'
73
-			]
74
-		);
75
-	}
59
+    /**
60
+     * log remove user from group event
61
+     *
62
+     * @param IGroup $group
63
+     * @param IUser $user
64
+     */
65
+    public function removeUser(IGroup $group, IUser $user) {
66
+        $this->log('User "%s" removed from group "%s"',
67
+            [
68
+                'group' => $group->getGID(),
69
+                'user' => $user->getUID()
70
+            ],
71
+            [
72
+                'user', 'group'
73
+            ]
74
+        );
75
+    }
76 76
 	
77
-	/**
78
-	 * log create group to group event
79
-	 *
80
-	 * @param IGroup $group
81
-	 */
82
-	public function createGroup(IGroup $group) {
83
-		$this->log('Group created: "%s"',
84
-			[
85
-				'group' => $group->getGID()
86
-			],
87
-			[
88
-				'group'
89
-			]
90
-		);
91
-	}
77
+    /**
78
+     * log create group to group event
79
+     *
80
+     * @param IGroup $group
81
+     */
82
+    public function createGroup(IGroup $group) {
83
+        $this->log('Group created: "%s"',
84
+            [
85
+                'group' => $group->getGID()
86
+            ],
87
+            [
88
+                'group'
89
+            ]
90
+        );
91
+    }
92 92
 
93
-	/**
94
-	 * log delete group to group event
95
-	 *
96
-	 * @param IGroup $group
97
-	 */
98
-	public function deleteGroup(IGroup $group) {
99
-		$this->log('Group deleted: "%s"',
100
-			[
101
-				'group' => $group->getGID()
102
-			],
103
-			[
104
-				'group'
105
-			]
106
-		);
107
-	}
93
+    /**
94
+     * log delete group to group event
95
+     *
96
+     * @param IGroup $group
97
+     */
98
+    public function deleteGroup(IGroup $group) {
99
+        $this->log('Group deleted: "%s"',
100
+            [
101
+                'group' => $group->getGID()
102
+            ],
103
+            [
104
+                'group'
105
+            ]
106
+        );
107
+    }
108 108
 }
Please login to merge, or discard this patch.
apps/admin_audit/lib/Actions/Sharing.php 1 patch
Indentation   +154 added lines, -154 removed lines patch added patch discarded remove patch
@@ -32,163 +32,163 @@
 block discarded – undo
32 32
  * @package OCA\AdminAudit\Actions
33 33
  */
34 34
 class Sharing extends Action {
35
-	/**
36
-	 * Logs sharing of data
37
-	 *
38
-	 * @param array $params
39
-	 */
40
-	public function shared(array $params) {
41
-		if($params['shareType'] === Share::SHARE_TYPE_LINK) {
42
-			$this->log(
43
-				'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)',
44
-				$params,
45
-				[
46
-					'itemType',
47
-					'itemTarget',
48
-					'itemSource',
49
-					'permissions',
50
-					'id',
51
-				]
52
-			);
53
-		} elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
54
-			$this->log(
55
-				'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s"  (Share ID: %s)',
56
-				$params,
57
-				[
58
-					'itemType',
59
-					'itemTarget',
60
-					'itemSource',
61
-					'shareWith',
62
-					'permissions',
63
-					'id',
64
-				]
65
-			);
66
-		} elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
67
-			$this->log(
68
-				'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s"  (Share ID: %s)',
69
-				$params,
70
-				[
71
-					'itemType',
72
-					'itemTarget',
73
-					'itemSource',
74
-					'shareWith',
75
-					'permissions',
76
-					'id',
77
-				]
78
-			);
79
-		}
80
-	}
35
+    /**
36
+     * Logs sharing of data
37
+     *
38
+     * @param array $params
39
+     */
40
+    public function shared(array $params) {
41
+        if($params['shareType'] === Share::SHARE_TYPE_LINK) {
42
+            $this->log(
43
+                'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)',
44
+                $params,
45
+                [
46
+                    'itemType',
47
+                    'itemTarget',
48
+                    'itemSource',
49
+                    'permissions',
50
+                    'id',
51
+                ]
52
+            );
53
+        } elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
54
+            $this->log(
55
+                'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s"  (Share ID: %s)',
56
+                $params,
57
+                [
58
+                    'itemType',
59
+                    'itemTarget',
60
+                    'itemSource',
61
+                    'shareWith',
62
+                    'permissions',
63
+                    'id',
64
+                ]
65
+            );
66
+        } elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
67
+            $this->log(
68
+                'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s"  (Share ID: %s)',
69
+                $params,
70
+                [
71
+                    'itemType',
72
+                    'itemTarget',
73
+                    'itemSource',
74
+                    'shareWith',
75
+                    'permissions',
76
+                    'id',
77
+                ]
78
+            );
79
+        }
80
+    }
81 81
 
82
-	/**
83
-	 * Logs unsharing of data
84
-	 *
85
-	 * @param array $params
86
-	 */
87
-	public function unshare(array $params) {
88
-		if($params['shareType'] === Share::SHARE_TYPE_LINK) {
89
-			$this->log(
90
-				'The %s "%s" with ID "%s" has been unshared (Share ID: %s)',
91
-				$params,
92
-				[
93
-					'itemType',
94
-					'fileTarget',
95
-					'itemSource',
96
-					'id',
97
-				]
98
-			);
99
-		} elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
100
-			$this->log(
101
-				'The %s "%s" with ID "%s" has been unshared from the user "%s" (Share ID: %s)',
102
-				$params,
103
-				[
104
-					'itemType',
105
-					'fileTarget',
106
-					'itemSource',
107
-					'shareWith',
108
-					'id',
109
-				]
110
-			);
111
-		} elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
112
-			$this->log(
113
-				'The %s "%s" with ID "%s" has been unshared from the group "%s" (Share ID: %s)',
114
-				$params,
115
-				[
116
-					'itemType',
117
-					'fileTarget',
118
-					'itemSource',
119
-					'shareWith',
120
-					'id',
121
-				]
122
-			);
123
-		}
124
-	}
82
+    /**
83
+     * Logs unsharing of data
84
+     *
85
+     * @param array $params
86
+     */
87
+    public function unshare(array $params) {
88
+        if($params['shareType'] === Share::SHARE_TYPE_LINK) {
89
+            $this->log(
90
+                'The %s "%s" with ID "%s" has been unshared (Share ID: %s)',
91
+                $params,
92
+                [
93
+                    'itemType',
94
+                    'fileTarget',
95
+                    'itemSource',
96
+                    'id',
97
+                ]
98
+            );
99
+        } elseif($params['shareType'] === Share::SHARE_TYPE_USER) {
100
+            $this->log(
101
+                'The %s "%s" with ID "%s" has been unshared from the user "%s" (Share ID: %s)',
102
+                $params,
103
+                [
104
+                    'itemType',
105
+                    'fileTarget',
106
+                    'itemSource',
107
+                    'shareWith',
108
+                    'id',
109
+                ]
110
+            );
111
+        } elseif($params['shareType'] === Share::SHARE_TYPE_GROUP) {
112
+            $this->log(
113
+                'The %s "%s" with ID "%s" has been unshared from the group "%s" (Share ID: %s)',
114
+                $params,
115
+                [
116
+                    'itemType',
117
+                    'fileTarget',
118
+                    'itemSource',
119
+                    'shareWith',
120
+                    'id',
121
+                ]
122
+            );
123
+        }
124
+    }
125 125
 
126
-	/**
127
-	 * Logs the updating of permission changes for shares
128
-	 *
129
-	 * @param array $params
130
-	 */
131
-	public function updatePermissions(array $params) {
132
-		$this->log(
133
-			'The permissions of the shared %s "%s" with ID "%s" have been changed to "%s"',
134
-			$params,
135
-			[
136
-				'itemType',
137
-				'path',
138
-				'itemSource',
139
-				'permissions',
140
-			]
141
-		);
142
-	}
126
+    /**
127
+     * Logs the updating of permission changes for shares
128
+     *
129
+     * @param array $params
130
+     */
131
+    public function updatePermissions(array $params) {
132
+        $this->log(
133
+            'The permissions of the shared %s "%s" with ID "%s" have been changed to "%s"',
134
+            $params,
135
+            [
136
+                'itemType',
137
+                'path',
138
+                'itemSource',
139
+                'permissions',
140
+            ]
141
+        );
142
+    }
143 143
 
144
-	/**
145
-	 * Logs the password changes for a share
146
-	 *
147
-	 * @param array $params
148
-	 */
149
-	public function updatePassword(array $params) {
150
-		$this->log(
151
-			'The password of the publicly shared %s "%s" with ID "%s" has been changed',
152
-			$params,
153
-			[
154
-				'itemType',
155
-				'token',
156
-				'itemSource',
157
-			]
158
-		);
159
-	}
144
+    /**
145
+     * Logs the password changes for a share
146
+     *
147
+     * @param array $params
148
+     */
149
+    public function updatePassword(array $params) {
150
+        $this->log(
151
+            'The password of the publicly shared %s "%s" with ID "%s" has been changed',
152
+            $params,
153
+            [
154
+                'itemType',
155
+                'token',
156
+                'itemSource',
157
+            ]
158
+        );
159
+    }
160 160
 
161
-	/**
162
-	 * Logs the expiration date changes for a share
163
-	 *
164
-	 * @param array $params
165
-	 */
166
-	public function updateExpirationDate(array $params) {
167
-		$this->log(
168
-			'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"',
169
-			$params,
170
-			[
171
-				'itemType',
172
-				'itemSource',
173
-				'date',
174
-			]
175
-		);
176
-	}
161
+    /**
162
+     * Logs the expiration date changes for a share
163
+     *
164
+     * @param array $params
165
+     */
166
+    public function updateExpirationDate(array $params) {
167
+        $this->log(
168
+            'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"',
169
+            $params,
170
+            [
171
+                'itemType',
172
+                'itemSource',
173
+                'date',
174
+            ]
175
+        );
176
+    }
177 177
 
178
-	/**
179
-	 * Logs access of shared files
180
-	 *
181
-	 * @param array $params
182
-	 */
183
-	public function shareAccessed(array $params) {
184
-		$this->log(
185
-			'The shared %s with the token "%s" by "%s" has been accessed.',
186
-			$params,
187
-			[
188
-				'itemType',
189
-				'token',
190
-				'uidOwner',
191
-			]
192
-		);
193
-	}
178
+    /**
179
+     * Logs access of shared files
180
+     *
181
+     * @param array $params
182
+     */
183
+    public function shareAccessed(array $params) {
184
+        $this->log(
185
+            'The shared %s with the token "%s" by "%s" has been accessed.',
186
+            $params,
187
+            [
188
+                'itemType',
189
+                'token',
190
+                'uidOwner',
191
+            ]
192
+        );
193
+    }
194 194
 }
Please login to merge, or discard this patch.
apps/admin_audit/lib/Actions/Files.php 1 patch
Indentation   +124 added lines, -124 removed lines patch added patch discarded remove patch
@@ -29,137 +29,137 @@
 block discarded – undo
29 29
  * @package OCA\AdminAudit\Actions
30 30
  */
31 31
 class Files extends Action {
32
-	/**
33
-	 * Logs file read actions
34
-	 *
35
-	 * @param array $params
36
-	 */
37
-	public function read(array $params) {
38
-		$this->log(
39
-			'File accessed: "%s"',
40
-			$params,
41
-			[
42
-				'path',
43
-			]
44
-		);
45
-	}
32
+    /**
33
+     * Logs file read actions
34
+     *
35
+     * @param array $params
36
+     */
37
+    public function read(array $params) {
38
+        $this->log(
39
+            'File accessed: "%s"',
40
+            $params,
41
+            [
42
+                'path',
43
+            ]
44
+        );
45
+    }
46 46
 
47
-	/**
48
-	 * Logs rename actions of files
49
-	 *
50
-	 * @param array $params
51
-	 */
52
-	public function rename(array $params) {
53
-		$this->log(
54
-			'File renamed: "%s" to "%s"',
55
-			$params,
56
-			[
57
-				'oldpath',
58
-				'newpath',
59
-			]
60
-		);
61
-	}
47
+    /**
48
+     * Logs rename actions of files
49
+     *
50
+     * @param array $params
51
+     */
52
+    public function rename(array $params) {
53
+        $this->log(
54
+            'File renamed: "%s" to "%s"',
55
+            $params,
56
+            [
57
+                'oldpath',
58
+                'newpath',
59
+            ]
60
+        );
61
+    }
62 62
 
63
-	/**
64
-	 * Logs creation of files
65
-	 *
66
-	 * @param array $params
67
-	 */
68
-	public function create(array $params) {
69
-		if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
70
-			return;
71
-		}
63
+    /**
64
+     * Logs creation of files
65
+     *
66
+     * @param array $params
67
+     */
68
+    public function create(array $params) {
69
+        if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
70
+            return;
71
+        }
72 72
 
73
-		$this->log(
74
-			'File created: "%s"',
75
-			$params,
76
-			[
77
-				'path',
78
-			]
79
-		);
80
-	}
73
+        $this->log(
74
+            'File created: "%s"',
75
+            $params,
76
+            [
77
+                'path',
78
+            ]
79
+        );
80
+    }
81 81
 
82
-	/**
83
-	 * Logs copying of files
84
-	 *
85
-	 * @param array $params
86
-	 */
87
-	public function copy(array $params) {
88
-		$this->log(
89
-			'File copied: "%s" to "%s"',
90
-			$params,
91
-			[
92
-				'oldpath',
93
-				'newpath',
94
-			]
95
-		);
96
-	}
82
+    /**
83
+     * Logs copying of files
84
+     *
85
+     * @param array $params
86
+     */
87
+    public function copy(array $params) {
88
+        $this->log(
89
+            'File copied: "%s" to "%s"',
90
+            $params,
91
+            [
92
+                'oldpath',
93
+                'newpath',
94
+            ]
95
+        );
96
+    }
97 97
 
98
-	/**
99
-	 * Logs writing of files
100
-	 *
101
-	 * @param array $params
102
-	 */
103
-	public function write(array $params) {
104
-		if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
105
-			return;
106
-		}
98
+    /**
99
+     * Logs writing of files
100
+     *
101
+     * @param array $params
102
+     */
103
+    public function write(array $params) {
104
+        if ($params['path'] === '/' || $params['path'] === '' || $params['path'] === null) {
105
+            return;
106
+        }
107 107
 
108
-		$this->log(
109
-			'File written to: "%s"',
110
-			$params,
111
-			[
112
-				'path',
113
-			]
114
-		);
115
-	}
108
+        $this->log(
109
+            'File written to: "%s"',
110
+            $params,
111
+            [
112
+                'path',
113
+            ]
114
+        );
115
+    }
116 116
 
117
-	/**
118
-	 * Logs update of files
119
-	 *
120
-	 * @param array $params
121
-	 */
122
-	public function update(array $params) {
123
-		$this->log(
124
-			'File updated: "%s"',
125
-			$params,
126
-			[
127
-				'path',
128
-			]
129
-		);
130
-	}
117
+    /**
118
+     * Logs update of files
119
+     *
120
+     * @param array $params
121
+     */
122
+    public function update(array $params) {
123
+        $this->log(
124
+            'File updated: "%s"',
125
+            $params,
126
+            [
127
+                'path',
128
+            ]
129
+        );
130
+    }
131 131
 
132
-	/**
133
-	 * Logs deletions of files
134
-	 *
135
-	 * @param array $params
136
-	 */
137
-	public function delete(array $params) {
138
-		$this->log(
139
-			'File deleted: "%s"',
140
-			$params,
141
-			[
142
-				'path',
143
-			]
144
-		);
145
-	}
132
+    /**
133
+     * Logs deletions of files
134
+     *
135
+     * @param array $params
136
+     */
137
+    public function delete(array $params) {
138
+        $this->log(
139
+            'File deleted: "%s"',
140
+            $params,
141
+            [
142
+                'path',
143
+            ]
144
+        );
145
+    }
146 146
 
147
-	/**
148
-	 * Logs preview access to a file
149
-	 *
150
-	 * @param array $params
151
-	 */
152
-	public function preview(array $params) {
153
-		$this->log(
154
-			'Preview accessed: "%s" (width: "%s", height: "%s" crop: "%s", mode: "%s")',
155
-			$params,
156
-			[
157
-				'path',
158
-				'width',
159
-				'height',
160
-				'crop',
161
-				'mode'
162
-			]
163
-		);
164
-	}
147
+    /**
148
+     * Logs preview access to a file
149
+     *
150
+     * @param array $params
151
+     */
152
+    public function preview(array $params) {
153
+        $this->log(
154
+            'Preview accessed: "%s" (width: "%s", height: "%s" crop: "%s", mode: "%s")',
155
+            $params,
156
+            [
157
+                'path',
158
+                'width',
159
+                'height',
160
+                'crop',
161
+                'mode'
162
+            ]
163
+        );
164
+    }
165 165
 }
Please login to merge, or discard this patch.
apps/admin_audit/lib/Actions/Auth.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -29,33 +29,33 @@
 block discarded – undo
29 29
  * @package OCA\AdminAudit\Actions
30 30
  */
31 31
 class Auth extends Action {
32
-	public function loginAttempt(array $params) {
33
-		$this->log(
34
-			'Login attempt: "%s"',
35
-			$params,
36
-			[
37
-				'uid',
38
-			],
39
-			true
40
-		);
41
-	}
32
+    public function loginAttempt(array $params) {
33
+        $this->log(
34
+            'Login attempt: "%s"',
35
+            $params,
36
+            [
37
+                'uid',
38
+            ],
39
+            true
40
+        );
41
+    }
42 42
 
43
-	public function loginSuccessful(array $params) {
44
-		$this->log(
45
-			'Login successful: "%s"',
46
-			$params,
47
-			[
48
-				'uid',
49
-			],
50
-			true
51
-		);
52
-	}
43
+    public function loginSuccessful(array $params) {
44
+        $this->log(
45
+            'Login successful: "%s"',
46
+            $params,
47
+            [
48
+                'uid',
49
+            ],
50
+            true
51
+        );
52
+    }
53 53
 
54
-	public function logout(array $params) {
55
-		$this->log(
56
-			'Logout occurred',
57
-			[],
58
-			[]
59
-		);
60
-	}
54
+    public function logout(array $params) {
55
+        $this->log(
56
+            'Logout occurred',
57
+            [],
58
+            []
59
+        );
60
+    }
61 61
 }
Please login to merge, or discard this patch.
apps/federatedfilesharing/lib/Settings/Personal.php 1 patch
Indentation   +60 added lines, -60 removed lines patch added patch discarded remove patch
@@ -33,69 +33,69 @@
 block discarded – undo
33 33
 
34 34
 class Personal implements ISettings {
35 35
 
36
-	/** @var FederatedShareProvider */
37
-	private $federatedShareProvider;
38
-	/** @var IUserSession */
39
-	private $userSession;
40
-	/** @var IL10N */
41
-	private $l;
42
-	/** @var IURLGenerator */
43
-	private $urlGenerator;
44
-	/** @var \OC_Defaults */
45
-	private $defaults;
36
+    /** @var FederatedShareProvider */
37
+    private $federatedShareProvider;
38
+    /** @var IUserSession */
39
+    private $userSession;
40
+    /** @var IL10N */
41
+    private $l;
42
+    /** @var IURLGenerator */
43
+    private $urlGenerator;
44
+    /** @var \OC_Defaults */
45
+    private $defaults;
46 46
 
47
-	public function __construct(
48
-		FederatedShareProvider $federatedShareProvider, #
49
-		IUserSession $userSession,
50
-		IL10N $l,
51
-		IURLGenerator $urlGenerator,
52
-		\OC_Defaults $defaults
53
-	) {
54
-		$this->federatedShareProvider = $federatedShareProvider;
55
-		$this->userSession = $userSession;
56
-		$this->l = $l;
57
-		$this->urlGenerator = $urlGenerator;
58
-		$this->defaults = $defaults;
59
-	}
47
+    public function __construct(
48
+        FederatedShareProvider $federatedShareProvider, #
49
+        IUserSession $userSession,
50
+        IL10N $l,
51
+        IURLGenerator $urlGenerator,
52
+        \OC_Defaults $defaults
53
+    ) {
54
+        $this->federatedShareProvider = $federatedShareProvider;
55
+        $this->userSession = $userSession;
56
+        $this->l = $l;
57
+        $this->urlGenerator = $urlGenerator;
58
+        $this->defaults = $defaults;
59
+    }
60 60
 
61
-	/**
62
-	 * @return TemplateResponse returns the instance with all parameters set, ready to be rendered
63
-	 * @since 9.1
64
-	 */
65
-	public function getForm() {
66
-		$cloudID = $this->userSession->getUser()->getCloudId();
67
-		$url = 'https://nextcloud.com/federation#' . $cloudID;
61
+    /**
62
+     * @return TemplateResponse returns the instance with all parameters set, ready to be rendered
63
+     * @since 9.1
64
+     */
65
+    public function getForm() {
66
+        $cloudID = $this->userSession->getUser()->getCloudId();
67
+        $url = 'https://nextcloud.com/federation#' . $cloudID;
68 68
 
69
-		$parameters = [
70
-			'outgoingServer2serverShareEnabled' => $this->federatedShareProvider->isOutgoingServer2serverShareEnabled(),
71
-			'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]),
72
-			'message_without_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID', [$cloudID]),
73
-			'logoPath' => $this->urlGenerator->imagePath('core', 'logo.svg'),
74
-			'reference' => $url,
75
-			'cloudId' => $cloudID,
76
-			'color' => $this->defaults->getColorPrimary(),
77
-			'textColor' => "#ffffff",
78
-		];
79
-		return new TemplateResponse('federatedfilesharing', 'settings-personal', $parameters, '');
80
-	}
69
+        $parameters = [
70
+            'outgoingServer2serverShareEnabled' => $this->federatedShareProvider->isOutgoingServer2serverShareEnabled(),
71
+            'message_with_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID, see %s', [$url]),
72
+            'message_without_URL' => $this->l->t('Share with me through my #Nextcloud Federated Cloud ID', [$cloudID]),
73
+            'logoPath' => $this->urlGenerator->imagePath('core', 'logo.svg'),
74
+            'reference' => $url,
75
+            'cloudId' => $cloudID,
76
+            'color' => $this->defaults->getColorPrimary(),
77
+            'textColor' => "#ffffff",
78
+        ];
79
+        return new TemplateResponse('federatedfilesharing', 'settings-personal', $parameters, '');
80
+    }
81 81
 
82
-	/**
83
-	 * @return string the section ID, e.g. 'sharing'
84
-	 * @since 9.1
85
-	 */
86
-	public function getSection() {
87
-		return 'sharing';
88
-	}
82
+    /**
83
+     * @return string the section ID, e.g. 'sharing'
84
+     * @since 9.1
85
+     */
86
+    public function getSection() {
87
+        return 'sharing';
88
+    }
89 89
 
90
-	/**
91
-	 * @return int whether the form should be rather on the top or bottom of
92
-	 * the admin section. The forms are arranged in ascending order of the
93
-	 * priority values. It is required to return a value between 0 and 100.
94
-	 *
95
-	 * E.g.: 70
96
-	 * @since 9.1
97
-	 */
98
-	public function getPriority() {
99
-		return 40;
100
-	}
90
+    /**
91
+     * @return int whether the form should be rather on the top or bottom of
92
+     * the admin section. The forms are arranged in ascending order of the
93
+     * priority values. It is required to return a value between 0 and 100.
94
+     *
95
+     * E.g.: 70
96
+     * @since 9.1
97
+     */
98
+    public function getPriority() {
99
+        return 40;
100
+    }
101 101
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Settings/PersonalSection.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -29,25 +29,25 @@
 block discarded – undo
29 29
 use OCP\IUserSession;
30 30
 
31 31
 class PersonalSection extends Section {
32
-	/** @var IUserSession */
33
-	private $userSession;
32
+    /** @var IUserSession */
33
+    private $userSession;
34 34
 
35
-	/** @var UserGlobalStoragesService */
36
-	private $userGlobalStoragesService;
35
+    /** @var UserGlobalStoragesService */
36
+    private $userGlobalStoragesService;
37 37
 
38
-	/** @var BackendService */
39
-	private $backendService;
38
+    /** @var BackendService */
39
+    private $backendService;
40 40
 
41
-	public function __construct(
42
-		IURLGenerator $url,
43
-		IL10N $l,
44
-		IUserSession $userSession,
45
-		UserGlobalStoragesService $userGlobalStoragesService,
46
-		BackendService $backendService
47
-	) {
48
-		parent::__construct($url, $l);
49
-		$this->userSession = $userSession;
50
-		$this->userGlobalStoragesService = $userGlobalStoragesService;
51
-		$this->backendService = $backendService;
52
-	}
41
+    public function __construct(
42
+        IURLGenerator $url,
43
+        IL10N $l,
44
+        IUserSession $userSession,
45
+        UserGlobalStoragesService $userGlobalStoragesService,
46
+        BackendService $backendService
47
+    ) {
48
+        parent::__construct($url, $l);
49
+        $this->userSession = $userSession;
50
+        $this->userGlobalStoragesService = $userGlobalStoragesService;
51
+        $this->backendService = $backendService;
52
+    }
53 53
 }
Please login to merge, or discard this patch.