Passed
Push — master ( 11ec90...0431ad )
by Joas
16:02 queued 13s
created
lib/private/SystemTag/ManagerFactory.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -36,48 +36,48 @@
 block discarded – undo
36 36
  */
37 37
 class ManagerFactory implements ISystemTagManagerFactory {
38 38
 
39
-	/**
40
-	 * Server container
41
-	 *
42
-	 * @var IServerContainer
43
-	 */
44
-	private $serverContainer;
39
+    /**
40
+     * Server container
41
+     *
42
+     * @var IServerContainer
43
+     */
44
+    private $serverContainer;
45 45
 
46
-	/**
47
-	 * Constructor for the system tag manager factory
48
-	 *
49
-	 * @param IServerContainer $serverContainer server container
50
-	 */
51
-	public function __construct(IServerContainer $serverContainer) {
52
-		$this->serverContainer = $serverContainer;
53
-	}
46
+    /**
47
+     * Constructor for the system tag manager factory
48
+     *
49
+     * @param IServerContainer $serverContainer server container
50
+     */
51
+    public function __construct(IServerContainer $serverContainer) {
52
+        $this->serverContainer = $serverContainer;
53
+    }
54 54
 
55
-	/**
56
-	 * Creates and returns an instance of the system tag manager
57
-	 *
58
-	 * @return ISystemTagManager
59
-	 * @since 9.0.0
60
-	 */
61
-	public function getManager(): ISystemTagManager {
62
-		return new SystemTagManager(
63
-			$this->serverContainer->getDatabaseConnection(),
64
-			$this->serverContainer->getGroupManager(),
65
-			$this->serverContainer->getEventDispatcher()
66
-		);
67
-	}
55
+    /**
56
+     * Creates and returns an instance of the system tag manager
57
+     *
58
+     * @return ISystemTagManager
59
+     * @since 9.0.0
60
+     */
61
+    public function getManager(): ISystemTagManager {
62
+        return new SystemTagManager(
63
+            $this->serverContainer->getDatabaseConnection(),
64
+            $this->serverContainer->getGroupManager(),
65
+            $this->serverContainer->getEventDispatcher()
66
+        );
67
+    }
68 68
 
69
-	/**
70
-	 * Creates and returns an instance of the system tag object
71
-	 * mapper
72
-	 *
73
-	 * @return ISystemTagObjectMapper
74
-	 * @since 9.0.0
75
-	 */
76
-	public function getObjectMapper(): ISystemTagObjectMapper {
77
-		return new SystemTagObjectMapper(
78
-			$this->serverContainer->getDatabaseConnection(),
79
-			$this->getManager(),
80
-			$this->serverContainer->getEventDispatcher()
81
-		);
82
-	}
69
+    /**
70
+     * Creates and returns an instance of the system tag object
71
+     * mapper
72
+     *
73
+     * @return ISystemTagObjectMapper
74
+     * @since 9.0.0
75
+     */
76
+    public function getObjectMapper(): ISystemTagObjectMapper {
77
+        return new SystemTagObjectMapper(
78
+            $this->serverContainer->getDatabaseConnection(),
79
+            $this->getManager(),
80
+            $this->serverContainer->getEventDispatcher()
81
+        );
82
+    }
83 83
 }
Please login to merge, or discard this patch.
apps/user_ldap/templates/part.wizard-userfilter.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <fieldset id="ldapWizard2">
2 2
 	<div>
3 3
 		<p>
4
-			<?php p($l->t('Listing and searching for users is constrained by these criteria:'));?>
4
+			<?php p($l->t('Listing and searching for users is constrained by these criteria:')); ?>
5 5
 		</p>
6 6
 		<p>
7 7
 			<label for="ldap_userfilter_objectclass">
8
-				<?php p($l->t('Only these object classes:'));?>
8
+				<?php p($l->t('Only these object classes:')); ?>
9 9
 			</label>
10 10
 
11 11
 			<select id="ldap_userfilter_objectclass" multiple="multiple"
@@ -14,14 +14,14 @@  discard block
 block discarded – undo
14 14
 		</p>
15 15
 		<p>
16 16
 			<label></label>
17
-			<span class="ldapInputColElement"><?php p($l->t('The most common object classes for users are organizationalPerson, person, user, and inetOrgPerson. If you are not sure which object class to select, please consult your directory admin.'));?></span>
17
+			<span class="ldapInputColElement"><?php p($l->t('The most common object classes for users are organizationalPerson, person, user, and inetOrgPerson. If you are not sure which object class to select, please consult your directory admin.')); ?></span>
18 18
 		</p>
19 19
 		<p>
20 20
 			<label for="ldap_userfilter_groups">
21
-				<?php p($l->t('Only from these groups:'));?>
21
+				<?php p($l->t('Only from these groups:')); ?>
22 22
 			</label>
23 23
 
24
-			<input type="text" class="ldapManyGroupsSupport ldapManyGroupsSearch hidden" placeholder="<?php p($l->t('Search groups'));?>" />
24
+			<input type="text" class="ldapManyGroupsSupport ldapManyGroupsSearch hidden" placeholder="<?php p($l->t('Search groups')); ?>" />
25 25
 
26 26
 			<select id="ldap_userfilter_groups" multiple="multiple"
27 27
 			 name="ldap_userfilter_groups" class="multiSelectPlugin">
@@ -30,26 +30,26 @@  discard block
 block discarded – undo
30 30
 		<p class="ldapManyGroupsSupport hidden">
31 31
 			<label></label>
32 32
 			<select class="ldapGroupList ldapGroupListAvailable" multiple="multiple"
33
-					title="<?php p($l->t('Available groups'));?>"></select>
33
+					title="<?php p($l->t('Available groups')); ?>"></select>
34 34
 			<span class="buttonSpan">
35 35
 				<button class="ldapGroupListSelect" type="button">&gt;</button><br/>
36 36
 				<button class="ldapGroupListDeselect" type="button">&lt;</button>
37 37
 			</span>
38 38
 			<select class="ldapGroupList ldapGroupListSelected" multiple="multiple"
39
-					title="<?php p($l->t('Selected groups'));?>"></select>
39
+					title="<?php p($l->t('Selected groups')); ?>"></select>
40 40
 		</p>
41 41
 		<p>
42
-			<label><a id='toggleRawUserFilter' class='ldapToggle'>↓ <?php p($l->t('Edit LDAP Query'));?></a></label>
42
+			<label><a id='toggleRawUserFilter' class='ldapToggle'>↓ <?php p($l->t('Edit LDAP Query')); ?></a></label>
43 43
 		</p>
44 44
 		<p id="ldapReadOnlyUserFilterContainer" class="hidden ldapReadOnlyFilterContainer">
45
-			<label><?php p($l->t('LDAP Filter:'));?></label>
45
+			<label><?php p($l->t('LDAP Filter:')); ?></label>
46 46
 			<span class="ldapFilterReadOnlyElement ldapInputColElement"></span>
47 47
 		</p>
48 48
 		<p id="rawUserFilterContainer">
49 49
 			<textarea type="text" id="ldap_userlist_filter" name="ldap_userlist_filter"
50 50
 				class="ldapFilterInputElement"
51
-				placeholder="<?php p($l->t('Edit LDAP Query'));?>"
52
-				title="<?php p($l->t('The filter specifies which LDAP users shall have access to the %s instance.', [$theme->getName()]));?>">
51
+				placeholder="<?php p($l->t('Edit LDAP Query')); ?>"
52
+				title="<?php p($l->t('The filter specifies which LDAP users shall have access to the %s instance.', [$theme->getName()])); ?>">
53 53
 			</textarea>
54 54
 		</p>
55 55
 		<p>
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		</p>
58 58
 		<p class="ldap_count">
59 59
 			<button class="ldapGetEntryCount ldapGetUserCount" name="ldapGetEntryCount" type="button">
60
-				<?php p($l->t('Verify settings and count users'));?>
60
+				<?php p($l->t('Verify settings and count users')); ?>
61 61
 			</button>
62 62
 			<span id="ldap_user_count"></span>
63 63
 		</p>
Please login to merge, or discard this patch.
apps/user_ldap/templates/part.wizard-groupfilter.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@  discard block
 block discarded – undo
1 1
 <fieldset id="ldapWizard4">
2 2
 	<div>
3 3
 		<p>
4
-			<?php p($l->t('Groups meeting these criteria are available in %s:', [$theme->getName()]));?>
4
+			<?php p($l->t('Groups meeting these criteria are available in %s:', [$theme->getName()])); ?>
5 5
 		</p>
6 6
 		<p>
7 7
 			<label for="ldap_groupfilter_objectclass">
8
-				<?php p($l->t('Only these object classes:'));?>
8
+				<?php p($l->t('Only these object classes:')); ?>
9 9
 			</label>
10 10
 
11 11
 			<select id="ldap_groupfilter_objectclass" multiple="multiple"
@@ -14,10 +14,10 @@  discard block
 block discarded – undo
14 14
 		</p>
15 15
 		<p>
16 16
 			<label for="ldap_groupfilter_groups">
17
-				<?php p($l->t('Only from these groups:'));?>
17
+				<?php p($l->t('Only from these groups:')); ?>
18 18
 			</label>
19 19
 
20
-			<input type="text" class="ldapManyGroupsSupport ldapManyGroupsSearch hidden" placeholder="<?php p($l->t('Search groups'));?>" />
20
+			<input type="text" class="ldapManyGroupsSupport ldapManyGroupsSearch hidden" placeholder="<?php p($l->t('Search groups')); ?>" />
21 21
 
22 22
 			<select id="ldap_groupfilter_groups" multiple="multiple"
23 23
 			 name="ldap_groupfilter_groups" class="multiSelectPlugin">
@@ -27,25 +27,25 @@  discard block
 block discarded – undo
27 27
 		<p class="ldapManyGroupsSupport hidden">
28 28
 			<label></label>
29 29
 			<select class="ldapGroupList ldapGroupListAvailable" multiple="multiple"
30
-					title="<?php p($l->t('Available groups'));?>"></select>
30
+					title="<?php p($l->t('Available groups')); ?>"></select>
31 31
 			<span class="buttonSpan">
32 32
 				<button class="ldapGroupListSelect" type="button">&gt;</button><br/>
33 33
 				<button class="ldapGroupListDeselect" type="button">&lt;</button>
34 34
 			</span>
35 35
 			<select class="ldapGroupList ldapGroupListSelected" multiple="multiple"
36
-					title="<?php p($l->t('Selected groups'));?>"></select>
36
+					title="<?php p($l->t('Selected groups')); ?>"></select>
37 37
 		</p>
38 38
 		<p>
39
-			<label><a id='toggleRawGroupFilter' class='ldapToggle'>↓ <?php p($l->t('Edit LDAP Query'));?></a></label>
39
+			<label><a id='toggleRawGroupFilter' class='ldapToggle'>↓ <?php p($l->t('Edit LDAP Query')); ?></a></label>
40 40
 		</p>
41 41
 		<p id="ldapReadOnlyGroupFilterContainer" class="hidden ldapReadOnlyFilterContainer">
42
-			<label><?php p($l->t('LDAP Filter:'));?></label>
42
+			<label><?php p($l->t('LDAP Filter:')); ?></label>
43 43
 			<span class="ldapFilterReadOnlyElement ldapInputColElement"></span>
44 44
 		</p>
45 45
 		<p id="rawGroupFilterContainer" class="invisible">
46 46
 			<textarea type="text" id="ldap_group_filter" name="ldap_group_filter"
47
-					  placeholder="<?php p($l->t('Edit LDAP Query'));?>"
48
-					  title="<?php p($l->t('The filter specifies which LDAP groups shall have access to the %s instance.', [$theme->getName()]));?>">
47
+					  placeholder="<?php p($l->t('Edit LDAP Query')); ?>"
48
+					  title="<?php p($l->t('The filter specifies which LDAP groups shall have access to the %s instance.', [$theme->getName()])); ?>">
49 49
 			</textarea>
50 50
 		</p>
51 51
 		<p>
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		</p>
54 54
 		<p class="ldap_count">
55 55
 			<button class="ldapGetEntryCount ldapGetGroupCount" name="ldapGetEntryCount" type="button">
56
-				<?php p($l->t('Verify settings and count the groups'));?>
56
+				<?php p($l->t('Verify settings and count the groups')); ?>
57 57
 			</button>
58 58
 			<span id="ldap_group_count"></span>
59 59
 		</p>
Please login to merge, or discard this patch.
private/AppFramework/Middleware/Security/Exceptions/NotAdminException.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
  * @package OC\AppFramework\Middleware\Security\Exceptions
37 37
  */
38 38
 class NotAdminException extends SecurityException {
39
-	public function __construct(string $message) {
40
-		parent::__construct($message, Http::STATUS_FORBIDDEN);
41
-	}
39
+    public function __construct(string $message) {
40
+        parent::__construct($message, Http::STATUS_FORBIDDEN);
41
+    }
42 42
 }
Please login to merge, or discard this patch.
apps/files_external/lib/Command/ListCommand.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
 		}
158 158
 
159 159
 		if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) {
160
-			$keys = array_map(function ($header) {
160
+			$keys = array_map(function($header) {
161 161
 				return strtolower(str_replace(' ', '_', $header));
162 162
 			}, $headers);
163 163
 
164
-			$pairs = array_map(function (StorageConfig $config) use ($keys, $userId) {
164
+			$pairs = array_map(function(StorageConfig $config) use ($keys, $userId) {
165 165
 				$values = [
166 166
 					$config->getId(),
167 167
 					$config->getMountPoint(),
@@ -195,23 +195,23 @@  discard block
 block discarded – undo
195 195
 				'encoding_compatibility' => false,
196 196
 				'readonly' => false,
197 197
 			];
198
-			$rows = array_map(function (StorageConfig $config) use ($userId, $defaultMountOptions, $full) {
198
+			$rows = array_map(function(StorageConfig $config) use ($userId, $defaultMountOptions, $full) {
199 199
 				$storageConfig = $config->getBackendOptions();
200 200
 				$keys = array_keys($storageConfig);
201 201
 				$values = array_values($storageConfig);
202 202
 
203 203
 				if (!$full) {
204
-					$values = array_map(function ($value) {
204
+					$values = array_map(function($value) {
205 205
 						if (is_string($value) && strlen($value) > 32) {
206
-							return substr($value, 0, 6) . '...' . substr($value, -6, 6);
206
+							return substr($value, 0, 6).'...'.substr($value, -6, 6);
207 207
 						} else {
208 208
 							return $value;
209 209
 						}
210 210
 					}, $values);
211 211
 				}
212 212
 
213
-				$configStrings = array_map(function ($key, $value) {
214
-					return $key . ': ' . json_encode($value);
213
+				$configStrings = array_map(function($key, $value) {
214
+					return $key.': '.json_encode($value);
215 215
 				}, $keys, $values);
216 216
 				$configString = implode(', ', $configStrings);
217 217
 
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
 				$keys = array_keys($mountOptions);
226 226
 				$values = array_values($mountOptions);
227 227
 
228
-				$optionsStrings = array_map(function ($key, $value) {
229
-					return $key . ': ' . json_encode($value);
228
+				$optionsStrings = array_map(function($key, $value) {
229
+					return $key.': '.json_encode($value);
230 230
 				}, $keys, $values);
231 231
 				$optionsString = implode(', ', $optionsStrings);
232 232
 
Please login to merge, or discard this patch.
Indentation   +211 added lines, -211 removed lines patch added patch discarded remove patch
@@ -39,239 +39,239 @@
 block discarded – undo
39 39
 use Symfony\Component\Console\Output\OutputInterface;
40 40
 
41 41
 class ListCommand extends Base {
42
-	/**
43
-	 * @var GlobalStoragesService
44
-	 */
45
-	protected $globalService;
42
+    /**
43
+     * @var GlobalStoragesService
44
+     */
45
+    protected $globalService;
46 46
 
47
-	/**
48
-	 * @var UserStoragesService
49
-	 */
50
-	protected $userService;
47
+    /**
48
+     * @var UserStoragesService
49
+     */
50
+    protected $userService;
51 51
 
52
-	/**
53
-	 * @var IUserSession
54
-	 */
55
-	protected $userSession;
52
+    /**
53
+     * @var IUserSession
54
+     */
55
+    protected $userSession;
56 56
 
57
-	/**
58
-	 * @var IUserManager
59
-	 */
60
-	protected $userManager;
57
+    /**
58
+     * @var IUserManager
59
+     */
60
+    protected $userManager;
61 61
 
62
-	public const ALL = -1;
62
+    public const ALL = -1;
63 63
 
64
-	public function __construct(GlobalStoragesService $globalService, UserStoragesService $userService, IUserSession $userSession, IUserManager $userManager) {
65
-		parent::__construct();
66
-		$this->globalService = $globalService;
67
-		$this->userService = $userService;
68
-		$this->userSession = $userSession;
69
-		$this->userManager = $userManager;
70
-	}
64
+    public function __construct(GlobalStoragesService $globalService, UserStoragesService $userService, IUserSession $userSession, IUserManager $userManager) {
65
+        parent::__construct();
66
+        $this->globalService = $globalService;
67
+        $this->userService = $userService;
68
+        $this->userSession = $userSession;
69
+        $this->userManager = $userManager;
70
+    }
71 71
 
72
-	protected function configure() {
73
-		$this
74
-			->setName('files_external:list')
75
-			->setDescription('List configured admin or personal mounts')
76
-			->addArgument(
77
-				'user_id',
78
-				InputArgument::OPTIONAL,
79
-				'user id to list the personal mounts for, if no user is provided admin mounts will be listed'
80
-			)->addOption(
81
-				'show-password',
82
-				'',
83
-				InputOption::VALUE_NONE,
84
-				'show passwords and secrets'
85
-			)->addOption(
86
-				'full',
87
-				null,
88
-				InputOption::VALUE_NONE,
89
-				'don\'t truncate long values in table output'
90
-			)->addOption(
91
-				'all',
92
-				'a',
93
-				InputOption::VALUE_NONE,
94
-				'show both system wide mounts and all personal mounts'
95
-			);
96
-		parent::configure();
97
-	}
72
+    protected function configure() {
73
+        $this
74
+            ->setName('files_external:list')
75
+            ->setDescription('List configured admin or personal mounts')
76
+            ->addArgument(
77
+                'user_id',
78
+                InputArgument::OPTIONAL,
79
+                'user id to list the personal mounts for, if no user is provided admin mounts will be listed'
80
+            )->addOption(
81
+                'show-password',
82
+                '',
83
+                InputOption::VALUE_NONE,
84
+                'show passwords and secrets'
85
+            )->addOption(
86
+                'full',
87
+                null,
88
+                InputOption::VALUE_NONE,
89
+                'don\'t truncate long values in table output'
90
+            )->addOption(
91
+                'all',
92
+                'a',
93
+                InputOption::VALUE_NONE,
94
+                'show both system wide mounts and all personal mounts'
95
+            );
96
+        parent::configure();
97
+    }
98 98
 
99
-	protected function execute(InputInterface $input, OutputInterface $output): int {
100
-		/** @var StorageConfig[] $mounts */
101
-		if ($input->getOption('all')) {
102
-			$mounts = $this->globalService->getStorageForAllUsers();
103
-			$userId = self::ALL;
104
-		} else {
105
-			$userId = $input->getArgument('user_id');
106
-			$storageService = $this->getStorageService($userId);
107
-			$mounts = $storageService->getAllStorages();
108
-		}
99
+    protected function execute(InputInterface $input, OutputInterface $output): int {
100
+        /** @var StorageConfig[] $mounts */
101
+        if ($input->getOption('all')) {
102
+            $mounts = $this->globalService->getStorageForAllUsers();
103
+            $userId = self::ALL;
104
+        } else {
105
+            $userId = $input->getArgument('user_id');
106
+            $storageService = $this->getStorageService($userId);
107
+            $mounts = $storageService->getAllStorages();
108
+        }
109 109
 
110
-		$this->listMounts($userId, $mounts, $input, $output);
111
-		return 0;
112
-	}
110
+        $this->listMounts($userId, $mounts, $input, $output);
111
+        return 0;
112
+    }
113 113
 
114
-	/**
115
-	 * @param string $userId
116
-	 * @param StorageConfig[] $mounts
117
-	 * @param InputInterface $input
118
-	 * @param OutputInterface $output
119
-	 */
120
-	public function listMounts($userId, array $mounts, InputInterface $input, OutputInterface $output) {
121
-		$outputType = $input->getOption('output');
122
-		if (count($mounts) === 0) {
123
-			if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) {
124
-				$output->writeln('[]');
125
-			} else {
126
-				if ($userId === self::ALL) {
127
-					$output->writeln("<info>No mounts configured</info>");
128
-				} elseif ($userId) {
129
-					$output->writeln("<info>No mounts configured by $userId</info>");
130
-				} else {
131
-					$output->writeln("<info>No admin mounts configured</info>");
132
-				}
133
-			}
134
-			return;
135
-		}
114
+    /**
115
+     * @param string $userId
116
+     * @param StorageConfig[] $mounts
117
+     * @param InputInterface $input
118
+     * @param OutputInterface $output
119
+     */
120
+    public function listMounts($userId, array $mounts, InputInterface $input, OutputInterface $output) {
121
+        $outputType = $input->getOption('output');
122
+        if (count($mounts) === 0) {
123
+            if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) {
124
+                $output->writeln('[]');
125
+            } else {
126
+                if ($userId === self::ALL) {
127
+                    $output->writeln("<info>No mounts configured</info>");
128
+                } elseif ($userId) {
129
+                    $output->writeln("<info>No mounts configured by $userId</info>");
130
+                } else {
131
+                    $output->writeln("<info>No admin mounts configured</info>");
132
+                }
133
+            }
134
+            return;
135
+        }
136 136
 
137
-		$headers = ['Mount ID', 'Mount Point', 'Storage', 'Authentication Type', 'Configuration', 'Options'];
137
+        $headers = ['Mount ID', 'Mount Point', 'Storage', 'Authentication Type', 'Configuration', 'Options'];
138 138
 
139
-		if (!$userId || $userId === self::ALL) {
140
-			$headers[] = 'Applicable Users';
141
-			$headers[] = 'Applicable Groups';
142
-		}
143
-		if ($userId === self::ALL) {
144
-			$headers[] = 'Type';
145
-		}
139
+        if (!$userId || $userId === self::ALL) {
140
+            $headers[] = 'Applicable Users';
141
+            $headers[] = 'Applicable Groups';
142
+        }
143
+        if ($userId === self::ALL) {
144
+            $headers[] = 'Type';
145
+        }
146 146
 
147
-		if (!$input->getOption('show-password')) {
148
-			$hideKeys = ['password', 'refresh_token', 'token', 'client_secret', 'public_key', 'private_key'];
149
-			foreach ($mounts as $mount) {
150
-				$config = $mount->getBackendOptions();
151
-				foreach ($config as $key => $value) {
152
-					if (in_array($key, $hideKeys)) {
153
-						$mount->setBackendOption($key, '***');
154
-					}
155
-				}
156
-			}
157
-		}
147
+        if (!$input->getOption('show-password')) {
148
+            $hideKeys = ['password', 'refresh_token', 'token', 'client_secret', 'public_key', 'private_key'];
149
+            foreach ($mounts as $mount) {
150
+                $config = $mount->getBackendOptions();
151
+                foreach ($config as $key => $value) {
152
+                    if (in_array($key, $hideKeys)) {
153
+                        $mount->setBackendOption($key, '***');
154
+                    }
155
+                }
156
+            }
157
+        }
158 158
 
159
-		if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) {
160
-			$keys = array_map(function ($header) {
161
-				return strtolower(str_replace(' ', '_', $header));
162
-			}, $headers);
159
+        if ($outputType === self::OUTPUT_FORMAT_JSON || $outputType === self::OUTPUT_FORMAT_JSON_PRETTY) {
160
+            $keys = array_map(function ($header) {
161
+                return strtolower(str_replace(' ', '_', $header));
162
+            }, $headers);
163 163
 
164
-			$pairs = array_map(function (StorageConfig $config) use ($keys, $userId) {
165
-				$values = [
166
-					$config->getId(),
167
-					$config->getMountPoint(),
168
-					$config->getBackend()->getStorageClass(),
169
-					$config->getAuthMechanism()->getIdentifier(),
170
-					$config->getBackendOptions(),
171
-					$config->getMountOptions()
172
-				];
173
-				if (!$userId || $userId === self::ALL) {
174
-					$values[] = $config->getApplicableUsers();
175
-					$values[] = $config->getApplicableGroups();
176
-				}
177
-				if ($userId === self::ALL) {
178
-					$values[] = $config->getType() === StorageConfig::MOUNT_TYPE_ADMIN ? 'admin' : 'personal';
179
-				}
164
+            $pairs = array_map(function (StorageConfig $config) use ($keys, $userId) {
165
+                $values = [
166
+                    $config->getId(),
167
+                    $config->getMountPoint(),
168
+                    $config->getBackend()->getStorageClass(),
169
+                    $config->getAuthMechanism()->getIdentifier(),
170
+                    $config->getBackendOptions(),
171
+                    $config->getMountOptions()
172
+                ];
173
+                if (!$userId || $userId === self::ALL) {
174
+                    $values[] = $config->getApplicableUsers();
175
+                    $values[] = $config->getApplicableGroups();
176
+                }
177
+                if ($userId === self::ALL) {
178
+                    $values[] = $config->getType() === StorageConfig::MOUNT_TYPE_ADMIN ? 'admin' : 'personal';
179
+                }
180 180
 
181
-				return array_combine($keys, $values);
182
-			}, $mounts);
183
-			if ($outputType === self::OUTPUT_FORMAT_JSON) {
184
-				$output->writeln(json_encode(array_values($pairs)));
185
-			} else {
186
-				$output->writeln(json_encode(array_values($pairs), JSON_PRETTY_PRINT));
187
-			}
188
-		} else {
189
-			$full = $input->getOption('full');
190
-			$defaultMountOptions = [
191
-				'encrypt' => true,
192
-				'previews' => true,
193
-				'filesystem_check_changes' => 1,
194
-				'enable_sharing' => false,
195
-				'encoding_compatibility' => false,
196
-				'readonly' => false,
197
-			];
198
-			$rows = array_map(function (StorageConfig $config) use ($userId, $defaultMountOptions, $full) {
199
-				$storageConfig = $config->getBackendOptions();
200
-				$keys = array_keys($storageConfig);
201
-				$values = array_values($storageConfig);
181
+                return array_combine($keys, $values);
182
+            }, $mounts);
183
+            if ($outputType === self::OUTPUT_FORMAT_JSON) {
184
+                $output->writeln(json_encode(array_values($pairs)));
185
+            } else {
186
+                $output->writeln(json_encode(array_values($pairs), JSON_PRETTY_PRINT));
187
+            }
188
+        } else {
189
+            $full = $input->getOption('full');
190
+            $defaultMountOptions = [
191
+                'encrypt' => true,
192
+                'previews' => true,
193
+                'filesystem_check_changes' => 1,
194
+                'enable_sharing' => false,
195
+                'encoding_compatibility' => false,
196
+                'readonly' => false,
197
+            ];
198
+            $rows = array_map(function (StorageConfig $config) use ($userId, $defaultMountOptions, $full) {
199
+                $storageConfig = $config->getBackendOptions();
200
+                $keys = array_keys($storageConfig);
201
+                $values = array_values($storageConfig);
202 202
 
203
-				if (!$full) {
204
-					$values = array_map(function ($value) {
205
-						if (is_string($value) && strlen($value) > 32) {
206
-							return substr($value, 0, 6) . '...' . substr($value, -6, 6);
207
-						} else {
208
-							return $value;
209
-						}
210
-					}, $values);
211
-				}
203
+                if (!$full) {
204
+                    $values = array_map(function ($value) {
205
+                        if (is_string($value) && strlen($value) > 32) {
206
+                            return substr($value, 0, 6) . '...' . substr($value, -6, 6);
207
+                        } else {
208
+                            return $value;
209
+                        }
210
+                    }, $values);
211
+                }
212 212
 
213
-				$configStrings = array_map(function ($key, $value) {
214
-					return $key . ': ' . json_encode($value);
215
-				}, $keys, $values);
216
-				$configString = implode(', ', $configStrings);
213
+                $configStrings = array_map(function ($key, $value) {
214
+                    return $key . ': ' . json_encode($value);
215
+                }, $keys, $values);
216
+                $configString = implode(', ', $configStrings);
217 217
 
218
-				$mountOptions = $config->getMountOptions();
219
-				// hide defaults
220
-				foreach ($mountOptions as $key => $value) {
221
-					if ($value === $defaultMountOptions[$key]) {
222
-						unset($mountOptions[$key]);
223
-					}
224
-				}
225
-				$keys = array_keys($mountOptions);
226
-				$values = array_values($mountOptions);
218
+                $mountOptions = $config->getMountOptions();
219
+                // hide defaults
220
+                foreach ($mountOptions as $key => $value) {
221
+                    if ($value === $defaultMountOptions[$key]) {
222
+                        unset($mountOptions[$key]);
223
+                    }
224
+                }
225
+                $keys = array_keys($mountOptions);
226
+                $values = array_values($mountOptions);
227 227
 
228
-				$optionsStrings = array_map(function ($key, $value) {
229
-					return $key . ': ' . json_encode($value);
230
-				}, $keys, $values);
231
-				$optionsString = implode(', ', $optionsStrings);
228
+                $optionsStrings = array_map(function ($key, $value) {
229
+                    return $key . ': ' . json_encode($value);
230
+                }, $keys, $values);
231
+                $optionsString = implode(', ', $optionsStrings);
232 232
 
233
-				$values = [
234
-					$config->getId(),
235
-					$config->getMountPoint(),
236
-					$config->getBackend()->getText(),
237
-					$config->getAuthMechanism()->getText(),
238
-					$configString,
239
-					$optionsString
240
-				];
233
+                $values = [
234
+                    $config->getId(),
235
+                    $config->getMountPoint(),
236
+                    $config->getBackend()->getText(),
237
+                    $config->getAuthMechanism()->getText(),
238
+                    $configString,
239
+                    $optionsString
240
+                ];
241 241
 
242
-				if (!$userId || $userId === self::ALL) {
243
-					$applicableUsers = implode(', ', $config->getApplicableUsers());
244
-					$applicableGroups = implode(', ', $config->getApplicableGroups());
245
-					if ($applicableUsers === '' && $applicableGroups === '') {
246
-						$applicableUsers = 'All';
247
-					}
248
-					$values[] = $applicableUsers;
249
-					$values[] = $applicableGroups;
250
-				}
251
-				if ($userId === self::ALL) {
252
-					$values[] = $config->getType() === StorageConfig::MOUNT_TYPE_ADMIN ? 'Admin' : 'Personal';
253
-				}
242
+                if (!$userId || $userId === self::ALL) {
243
+                    $applicableUsers = implode(', ', $config->getApplicableUsers());
244
+                    $applicableGroups = implode(', ', $config->getApplicableGroups());
245
+                    if ($applicableUsers === '' && $applicableGroups === '') {
246
+                        $applicableUsers = 'All';
247
+                    }
248
+                    $values[] = $applicableUsers;
249
+                    $values[] = $applicableGroups;
250
+                }
251
+                if ($userId === self::ALL) {
252
+                    $values[] = $config->getType() === StorageConfig::MOUNT_TYPE_ADMIN ? 'Admin' : 'Personal';
253
+                }
254 254
 
255
-				return $values;
256
-			}, $mounts);
255
+                return $values;
256
+            }, $mounts);
257 257
 
258
-			$table = new Table($output);
259
-			$table->setHeaders($headers);
260
-			$table->setRows($rows);
261
-			$table->render();
262
-		}
263
-	}
258
+            $table = new Table($output);
259
+            $table->setHeaders($headers);
260
+            $table->setRows($rows);
261
+            $table->render();
262
+        }
263
+    }
264 264
 
265
-	protected function getStorageService($userId) {
266
-		if (!empty($userId)) {
267
-			$user = $this->userManager->get($userId);
268
-			if (is_null($user)) {
269
-				throw new NoUserException("user $userId not found");
270
-			}
271
-			$this->userSession->setUser($user);
272
-			return $this->userService;
273
-		} else {
274
-			return $this->globalService;
275
-		}
276
-	}
265
+    protected function getStorageService($userId) {
266
+        if (!empty($userId)) {
267
+            $user = $this->userManager->get($userId);
268
+            if (is_null($user)) {
269
+                throw new NoUserException("user $userId not found");
270
+            }
271
+            $this->userSession->setUser($user);
272
+            return $this->userService;
273
+        } else {
274
+            return $this->globalService;
275
+        }
276
+    }
277 277
 }
Please login to merge, or discard this patch.
apps/files_sharing/lib/Helper.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 		$dir = $pathinfo['dirname'];
59 59
 		$i = 2;
60 60
 		while ($view->file_exists($path) || in_array($path, $excludeList)) {
61
-			$path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext);
61
+			$path = Filesystem::normalizePath($dir.'/'.$name.' ('.$i.')'.$ext);
62 62
 			$i++;
63 63
 		}
64 64
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 			$dir = '';
83 83
 			$subdirs = explode('/', $shareFolder);
84 84
 			foreach ($subdirs as $subdir) {
85
-				$dir = $dir . '/' . $subdir;
85
+				$dir = $dir.'/'.$subdir;
86 86
 				if (!$view->is_dir($dir)) {
87 87
 					$view->mkdir($dir);
88 88
 				}
Please login to merge, or discard this patch.
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -32,81 +32,81 @@
 block discarded – undo
32 32
 use OCA\Files_Sharing\AppInfo\Application;
33 33
 
34 34
 class Helper {
35
-	public static function registerHooks() {
36
-		\OCP\Util::connectHook('OC_Filesystem', 'post_rename', '\OCA\Files_Sharing\Updater', 'renameHook');
37
-		\OCP\Util::connectHook('OC_Filesystem', 'post_delete', '\OCA\Files_Sharing\Hooks', 'unshareChildren');
35
+    public static function registerHooks() {
36
+        \OCP\Util::connectHook('OC_Filesystem', 'post_rename', '\OCA\Files_Sharing\Updater', 'renameHook');
37
+        \OCP\Util::connectHook('OC_Filesystem', 'post_delete', '\OCA\Files_Sharing\Hooks', 'unshareChildren');
38 38
 
39
-		\OCP\Util::connectHook('OC_User', 'post_deleteUser', '\OCA\Files_Sharing\Hooks', 'deleteUser');
40
-	}
39
+        \OCP\Util::connectHook('OC_User', 'post_deleteUser', '\OCA\Files_Sharing\Hooks', 'deleteUser');
40
+    }
41 41
 
42
-	/**
43
-	 * check if file name already exists and generate unique target
44
-	 *
45
-	 * @param string $path
46
-	 * @param array $excludeList
47
-	 * @param View $view
48
-	 * @return string $path
49
-	 */
50
-	public static function generateUniqueTarget($path, $excludeList, $view) {
51
-		$pathinfo = pathinfo($path);
52
-		$ext = isset($pathinfo['extension']) ? '.'.$pathinfo['extension'] : '';
53
-		$name = $pathinfo['filename'];
54
-		$dir = $pathinfo['dirname'];
55
-		$i = 2;
56
-		while ($view->file_exists($path) || in_array($path, $excludeList)) {
57
-			$path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext);
58
-			$i++;
59
-		}
42
+    /**
43
+     * check if file name already exists and generate unique target
44
+     *
45
+     * @param string $path
46
+     * @param array $excludeList
47
+     * @param View $view
48
+     * @return string $path
49
+     */
50
+    public static function generateUniqueTarget($path, $excludeList, $view) {
51
+        $pathinfo = pathinfo($path);
52
+        $ext = isset($pathinfo['extension']) ? '.'.$pathinfo['extension'] : '';
53
+        $name = $pathinfo['filename'];
54
+        $dir = $pathinfo['dirname'];
55
+        $i = 2;
56
+        while ($view->file_exists($path) || in_array($path, $excludeList)) {
57
+            $path = Filesystem::normalizePath($dir . '/' . $name . ' ('.$i.')' . $ext);
58
+            $i++;
59
+        }
60 60
 
61
-		return $path;
62
-	}
61
+        return $path;
62
+    }
63 63
 
64
-	/**
65
-	 * get default share folder
66
-	 *
67
-	 * @param \OC\Files\View|null $view
68
-	 * @param string|null $userId
69
-	 * @return string
70
-	 */
71
-	public static function getShareFolder(View $view = null, string $userId = null): string {
72
-		if ($view === null) {
73
-			$view = Filesystem::getView();
74
-		}
64
+    /**
65
+     * get default share folder
66
+     *
67
+     * @param \OC\Files\View|null $view
68
+     * @param string|null $userId
69
+     * @return string
70
+     */
71
+    public static function getShareFolder(View $view = null, string $userId = null): string {
72
+        if ($view === null) {
73
+            $view = Filesystem::getView();
74
+        }
75 75
 
76
-		$config = \OC::$server->getConfig();
77
-		$systemDefault = $config->getSystemValue('share_folder', '/');
78
-		$allowCustomShareFolder = $config->getSystemValueBool('sharing.allow_custom_share_folder', true);
76
+        $config = \OC::$server->getConfig();
77
+        $systemDefault = $config->getSystemValue('share_folder', '/');
78
+        $allowCustomShareFolder = $config->getSystemValueBool('sharing.allow_custom_share_folder', true);
79 79
 
80
-		// Init custom shareFolder
81
-		$shareFolder = $systemDefault;
82
-		if ($userId !== null && $allowCustomShareFolder) {
83
-			$shareFolder = $config->getUserValue($userId, Application::APP_ID, 'share_folder', $systemDefault);
84
-		}
80
+        // Init custom shareFolder
81
+        $shareFolder = $systemDefault;
82
+        if ($userId !== null && $allowCustomShareFolder) {
83
+            $shareFolder = $config->getUserValue($userId, Application::APP_ID, 'share_folder', $systemDefault);
84
+        }
85 85
 
86
-		// Verify and sanitize path
87
-		$shareFolder = Filesystem::normalizePath($shareFolder);
86
+        // Verify and sanitize path
87
+        $shareFolder = Filesystem::normalizePath($shareFolder);
88 88
 
89
-		// Init path if folder doesn't exists
90
-		if (!$view->file_exists($shareFolder)) {
91
-			$dir = '';
92
-			$subdirs = explode('/', $shareFolder);
93
-			foreach ($subdirs as $subdir) {
94
-				$dir = $dir . '/' . $subdir;
95
-				if (!$view->is_dir($dir)) {
96
-					$view->mkdir($dir);
97
-				}
98
-			}
99
-		}
89
+        // Init path if folder doesn't exists
90
+        if (!$view->file_exists($shareFolder)) {
91
+            $dir = '';
92
+            $subdirs = explode('/', $shareFolder);
93
+            foreach ($subdirs as $subdir) {
94
+                $dir = $dir . '/' . $subdir;
95
+                if (!$view->is_dir($dir)) {
96
+                    $view->mkdir($dir);
97
+                }
98
+            }
99
+        }
100 100
 
101
-		return $shareFolder;
102
-	}
101
+        return $shareFolder;
102
+    }
103 103
 
104
-	/**
105
-	 * set default share folder
106
-	 *
107
-	 * @param string $shareFolder
108
-	 */
109
-	public static function setShareFolder($shareFolder) {
110
-		\OC::$server->getConfig()->setSystemValue('share_folder', $shareFolder);
111
-	}
104
+    /**
105
+     * set default share folder
106
+     *
107
+     * @param string $shareFolder
108
+     */
109
+    public static function setShareFolder($shareFolder) {
110
+        \OC::$server->getConfig()->setSystemValue('share_folder', $shareFolder);
111
+    }
112 112
 }
Please login to merge, or discard this patch.
lib/private/Mail/Attachment.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -34,48 +34,48 @@
 block discarded – undo
34 34
  */
35 35
 class Attachment implements IAttachment {
36 36
 
37
-	/** @var \Swift_Mime_Attachment */
38
-	protected $swiftAttachment;
37
+    /** @var \Swift_Mime_Attachment */
38
+    protected $swiftAttachment;
39 39
 
40
-	public function __construct(\Swift_Mime_Attachment $attachment) {
41
-		$this->swiftAttachment = $attachment;
42
-	}
40
+    public function __construct(\Swift_Mime_Attachment $attachment) {
41
+        $this->swiftAttachment = $attachment;
42
+    }
43 43
 
44
-	/**
45
-	 * @param string $filename
46
-	 * @return $this
47
-	 * @since 13.0.0
48
-	 */
49
-	public function setFilename(string $filename): IAttachment {
50
-		$this->swiftAttachment->setFilename($filename);
51
-		return $this;
52
-	}
44
+    /**
45
+     * @param string $filename
46
+     * @return $this
47
+     * @since 13.0.0
48
+     */
49
+    public function setFilename(string $filename): IAttachment {
50
+        $this->swiftAttachment->setFilename($filename);
51
+        return $this;
52
+    }
53 53
 
54
-	/**
55
-	 * @param string $contentType
56
-	 * @return $this
57
-	 * @since 13.0.0
58
-	 */
59
-	public function setContentType(string $contentType): IAttachment {
60
-		$this->swiftAttachment->setContentType($contentType);
61
-		return $this;
62
-	}
54
+    /**
55
+     * @param string $contentType
56
+     * @return $this
57
+     * @since 13.0.0
58
+     */
59
+    public function setContentType(string $contentType): IAttachment {
60
+        $this->swiftAttachment->setContentType($contentType);
61
+        return $this;
62
+    }
63 63
 
64
-	/**
65
-	 * @param string $body
66
-	 * @return $this
67
-	 * @since 13.0.0
68
-	 */
69
-	public function setBody(string $body): IAttachment {
70
-		$this->swiftAttachment->setBody($body);
71
-		return $this;
72
-	}
64
+    /**
65
+     * @param string $body
66
+     * @return $this
67
+     * @since 13.0.0
68
+     */
69
+    public function setBody(string $body): IAttachment {
70
+        $this->swiftAttachment->setBody($body);
71
+        return $this;
72
+    }
73 73
 
74
-	/**
75
-	 * @return \Swift_Mime_Attachment
76
-	 */
77
-	public function getSwiftAttachment(): \Swift_Mime_Attachment {
78
-		return $this->swiftAttachment;
79
-	}
74
+    /**
75
+     * @return \Swift_Mime_Attachment
76
+     */
77
+    public function getSwiftAttachment(): \Swift_Mime_Attachment {
78
+        return $this->swiftAttachment;
79
+    }
80 80
 
81 81
 }
Please login to merge, or discard this patch.
lib/public/Mail/IMailer.php 1 patch
Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -46,60 +46,60 @@
 block discarded – undo
46 46
  * @since 8.1.0
47 47
  */
48 48
 interface IMailer {
49
-	/**
50
-	 * Creates a new message object that can be passed to send()
51
-	 *
52
-	 * @return IMessage
53
-	 * @since 8.1.0
54
-	 */
55
-	public function createMessage(): IMessage;
49
+    /**
50
+     * Creates a new message object that can be passed to send()
51
+     *
52
+     * @return IMessage
53
+     * @since 8.1.0
54
+     */
55
+    public function createMessage(): IMessage;
56 56
 
57
-	/**
58
-	 * @param string|null $data
59
-	 * @param string|null $filename
60
-	 * @param string|null $contentType
61
-	 * @return IAttachment
62
-	 * @since 13.0.0
63
-	 */
64
-	public function createAttachment($data = null, $filename = null, $contentType = null): IAttachment;
57
+    /**
58
+     * @param string|null $data
59
+     * @param string|null $filename
60
+     * @param string|null $contentType
61
+     * @return IAttachment
62
+     * @since 13.0.0
63
+     */
64
+    public function createAttachment($data = null, $filename = null, $contentType = null): IAttachment;
65 65
 
66
-	/**
67
-	 * @param string $path
68
-	 * @param string|null $contentType
69
-	 * @return IAttachment
70
-	 * @since 13.0.0
71
-	 */
72
-	public function createAttachmentFromPath(string $path, $contentType = null): IAttachment;
66
+    /**
67
+     * @param string $path
68
+     * @param string|null $contentType
69
+     * @return IAttachment
70
+     * @since 13.0.0
71
+     */
72
+    public function createAttachmentFromPath(string $path, $contentType = null): IAttachment;
73 73
 
74
-	/**
75
-	 * Creates a new email template object
76
-	 *
77
-	 * @param string $emailId
78
-	 * @param array $data
79
-	 * @return IEMailTemplate
80
-	 * @since 12.0.0 Parameters added in 12.0.3
81
-	 */
82
-	public function createEMailTemplate(string $emailId, array $data = []): IEMailTemplate;
74
+    /**
75
+     * Creates a new email template object
76
+     *
77
+     * @param string $emailId
78
+     * @param array $data
79
+     * @return IEMailTemplate
80
+     * @since 12.0.0 Parameters added in 12.0.3
81
+     */
82
+    public function createEMailTemplate(string $emailId, array $data = []): IEMailTemplate;
83 83
 
84
-	/**
85
-	 * Send the specified message. Also sets the from address to the value defined in config.php
86
-	 * if no-one has been passed.
87
-	 *
88
-	 * @param IMessage $message Message to send
89
-	 * @return string[] Array with failed recipients. Be aware that this depends on the used mail backend and
90
-	 * therefore should be considered
91
-	 * @throws \Exception In case it was not possible to send the message. (for example if an invalid mail address
92
-	 * has been supplied.)
93
-	 * @since 8.1.0
94
-	 */
95
-	public function send(IMessage $message): array;
84
+    /**
85
+     * Send the specified message. Also sets the from address to the value defined in config.php
86
+     * if no-one has been passed.
87
+     *
88
+     * @param IMessage $message Message to send
89
+     * @return string[] Array with failed recipients. Be aware that this depends on the used mail backend and
90
+     * therefore should be considered
91
+     * @throws \Exception In case it was not possible to send the message. (for example if an invalid mail address
92
+     * has been supplied.)
93
+     * @since 8.1.0
94
+     */
95
+    public function send(IMessage $message): array;
96 96
 
97
-	/**
98
-	 * Checks if an e-mail address is valid
99
-	 *
100
-	 * @param string $email Email address to be validated
101
-	 * @return bool True if the mail address is valid, false otherwise
102
-	 * @since 8.1.0
103
-	 */
104
-	public function validateMailAddress(string $email): bool;
97
+    /**
98
+     * Checks if an e-mail address is valid
99
+     *
100
+     * @param string $email Email address to be validated
101
+     * @return bool True if the mail address is valid, false otherwise
102
+     * @since 8.1.0
103
+     */
104
+    public function validateMailAddress(string $email): bool;
105 105
 }
Please login to merge, or discard this patch.
lib/public/Mail/IAttachment.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -32,25 +32,25 @@
 block discarded – undo
32 32
  */
33 33
 interface IAttachment {
34 34
 
35
-	/**
36
-	 * @param string $filename
37
-	 * @return IAttachment
38
-	 * @since 13.0.0
39
-	 */
40
-	public function setFilename(string $filename): IAttachment;
35
+    /**
36
+     * @param string $filename
37
+     * @return IAttachment
38
+     * @since 13.0.0
39
+     */
40
+    public function setFilename(string $filename): IAttachment;
41 41
 
42
-	/**
43
-	 * @param string $contentType
44
-	 * @return IAttachment
45
-	 * @since 13.0.0
46
-	 */
47
-	public function setContentType(string $contentType): IAttachment;
42
+    /**
43
+     * @param string $contentType
44
+     * @return IAttachment
45
+     * @since 13.0.0
46
+     */
47
+    public function setContentType(string $contentType): IAttachment;
48 48
 
49
-	/**
50
-	 * @param string $body
51
-	 * @return IAttachment
52
-	 * @since 13.0.0
53
-	 */
54
-	public function setBody(string $body): IAttachment;
49
+    /**
50
+     * @param string $body
51
+     * @return IAttachment
52
+     * @since 13.0.0
53
+     */
54
+    public function setBody(string $body): IAttachment;
55 55
 
56 56
 }
Please login to merge, or discard this patch.