Passed
Push — master ( 51823a...90909a )
by Roeland
15:28 queued 10s
created
apps/dav/appinfo/v2/remote.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
  */
22 22
 // no php execution timeout for webdav
23 23
 if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
24
-	@set_time_limit(0);
24
+    @set_time_limit(0);
25 25
 }
26 26
 ignore_user_abort(true);
27 27
 
Please login to merge, or discard this patch.
lib/private/Share20/ProviderFactory.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 		}
215 215
 
216 216
 		if ($provider === null) {
217
-			throw new ProviderException('No provider with id .' . $id . ' found.');
217
+			throw new ProviderException('No provider with id .'.$id.' found.');
218 218
 		}
219 219
 
220 220
 		return $provider;
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
 
243 243
 		if ($provider === null) {
244
-			throw new ProviderException('No share provider for share type ' . $shareType);
244
+			throw new ProviderException('No share provider for share type '.$shareType);
245 245
 		}
246 246
 
247 247
 		return $provider;
Please login to merge, or discard this patch.
Indentation   +297 added lines, -297 removed lines patch added patch discarded remove patch
@@ -55,310 +55,310 @@
 block discarded – undo
55 55
  */
56 56
 class ProviderFactory implements IProviderFactory {
57 57
 
58
-	/** @var IServerContainer */
59
-	private $serverContainer;
60
-	/** @var DefaultShareProvider */
61
-	private $defaultProvider = null;
62
-	/** @var FederatedShareProvider */
63
-	private $federatedProvider = null;
64
-	/** @var  ShareByMailProvider */
65
-	private $shareByMailProvider;
66
-	/** @var  \OCA\Circles\ShareByCircleProvider */
67
-	private $shareByCircleProvider = null;
68
-	/** @var bool */
69
-	private $circlesAreNotAvailable = false;
70
-	/** @var \OCA\Talk\Share\RoomShareProvider */
71
-	private $roomShareProvider = null;
72
-
73
-	private $registeredShareProviders = [];
74
-
75
-	private $shareProviders = [];
76
-
77
-	/**
78
-	 * IProviderFactory constructor.
79
-	 *
80
-	 * @param IServerContainer $serverContainer
81
-	 */
82
-	public function __construct(IServerContainer $serverContainer) {
83
-		$this->serverContainer = $serverContainer;
84
-	}
85
-
86
-	public function registerProvider(string $shareProviderClass): void {
87
-		$this->registeredShareProviders[] = $shareProviderClass;
88
-	}
89
-
90
-	/**
91
-	 * Create the default share provider.
92
-	 *
93
-	 * @return DefaultShareProvider
94
-	 */
95
-	protected function defaultShareProvider() {
96
-		if ($this->defaultProvider === null) {
97
-			$this->defaultProvider = new DefaultShareProvider(
98
-				$this->serverContainer->getDatabaseConnection(),
99
-				$this->serverContainer->getUserManager(),
100
-				$this->serverContainer->getGroupManager(),
101
-				$this->serverContainer->getLazyRootFolder(),
102
-				$this->serverContainer->getMailer(),
103
-				$this->serverContainer->query(Defaults::class),
104
-				$this->serverContainer->getL10NFactory(),
105
-				$this->serverContainer->getURLGenerator(),
106
-				$this->serverContainer->getConfig()
107
-			);
108
-		}
109
-
110
-		return $this->defaultProvider;
111
-	}
112
-
113
-	/**
114
-	 * Create the federated share provider
115
-	 *
116
-	 * @return FederatedShareProvider
117
-	 */
118
-	protected function federatedShareProvider() {
119
-		if ($this->federatedProvider === null) {
120
-			/*
58
+    /** @var IServerContainer */
59
+    private $serverContainer;
60
+    /** @var DefaultShareProvider */
61
+    private $defaultProvider = null;
62
+    /** @var FederatedShareProvider */
63
+    private $federatedProvider = null;
64
+    /** @var  ShareByMailProvider */
65
+    private $shareByMailProvider;
66
+    /** @var  \OCA\Circles\ShareByCircleProvider */
67
+    private $shareByCircleProvider = null;
68
+    /** @var bool */
69
+    private $circlesAreNotAvailable = false;
70
+    /** @var \OCA\Talk\Share\RoomShareProvider */
71
+    private $roomShareProvider = null;
72
+
73
+    private $registeredShareProviders = [];
74
+
75
+    private $shareProviders = [];
76
+
77
+    /**
78
+     * IProviderFactory constructor.
79
+     *
80
+     * @param IServerContainer $serverContainer
81
+     */
82
+    public function __construct(IServerContainer $serverContainer) {
83
+        $this->serverContainer = $serverContainer;
84
+    }
85
+
86
+    public function registerProvider(string $shareProviderClass): void {
87
+        $this->registeredShareProviders[] = $shareProviderClass;
88
+    }
89
+
90
+    /**
91
+     * Create the default share provider.
92
+     *
93
+     * @return DefaultShareProvider
94
+     */
95
+    protected function defaultShareProvider() {
96
+        if ($this->defaultProvider === null) {
97
+            $this->defaultProvider = new DefaultShareProvider(
98
+                $this->serverContainer->getDatabaseConnection(),
99
+                $this->serverContainer->getUserManager(),
100
+                $this->serverContainer->getGroupManager(),
101
+                $this->serverContainer->getLazyRootFolder(),
102
+                $this->serverContainer->getMailer(),
103
+                $this->serverContainer->query(Defaults::class),
104
+                $this->serverContainer->getL10NFactory(),
105
+                $this->serverContainer->getURLGenerator(),
106
+                $this->serverContainer->getConfig()
107
+            );
108
+        }
109
+
110
+        return $this->defaultProvider;
111
+    }
112
+
113
+    /**
114
+     * Create the federated share provider
115
+     *
116
+     * @return FederatedShareProvider
117
+     */
118
+    protected function federatedShareProvider() {
119
+        if ($this->federatedProvider === null) {
120
+            /*
121 121
 			 * Check if the app is enabled
122 122
 			 */
123
-			$appManager = $this->serverContainer->getAppManager();
124
-			if (!$appManager->isEnabledForUser('federatedfilesharing')) {
125
-				return null;
126
-			}
123
+            $appManager = $this->serverContainer->getAppManager();
124
+            if (!$appManager->isEnabledForUser('federatedfilesharing')) {
125
+                return null;
126
+            }
127 127
 
128
-			/*
128
+            /*
129 129
 			 * TODO: add factory to federated sharing app
130 130
 			 */
131
-			$l = $this->serverContainer->getL10N('federatedfilesharing');
132
-			$addressHandler = new AddressHandler(
133
-				$this->serverContainer->getURLGenerator(),
134
-				$l,
135
-				$this->serverContainer->getCloudIdManager()
136
-			);
137
-			$notifications = new Notifications(
138
-				$addressHandler,
139
-				$this->serverContainer->getHTTPClientService(),
140
-				$this->serverContainer->query(\OCP\OCS\IDiscoveryService::class),
141
-				$this->serverContainer->getJobList(),
142
-				\OC::$server->getCloudFederationProviderManager(),
143
-				\OC::$server->getCloudFederationFactory(),
144
-				$this->serverContainer->query(IEventDispatcher::class)
145
-			);
146
-			$tokenHandler = new TokenHandler(
147
-				$this->serverContainer->getSecureRandom()
148
-			);
149
-
150
-			$this->federatedProvider = new FederatedShareProvider(
151
-				$this->serverContainer->getDatabaseConnection(),
152
-				$addressHandler,
153
-				$notifications,
154
-				$tokenHandler,
155
-				$l,
156
-				$this->serverContainer->getLogger(),
157
-				$this->serverContainer->getLazyRootFolder(),
158
-				$this->serverContainer->getConfig(),
159
-				$this->serverContainer->getUserManager(),
160
-				$this->serverContainer->getCloudIdManager(),
161
-				$this->serverContainer->getGlobalScaleConfig(),
162
-				$this->serverContainer->getCloudFederationProviderManager()
163
-			);
164
-		}
165
-
166
-		return $this->federatedProvider;
167
-	}
168
-
169
-	/**
170
-	 * Create the federated share provider
171
-	 *
172
-	 * @return ShareByMailProvider
173
-	 */
174
-	protected function getShareByMailProvider() {
175
-		if ($this->shareByMailProvider === null) {
176
-			/*
131
+            $l = $this->serverContainer->getL10N('federatedfilesharing');
132
+            $addressHandler = new AddressHandler(
133
+                $this->serverContainer->getURLGenerator(),
134
+                $l,
135
+                $this->serverContainer->getCloudIdManager()
136
+            );
137
+            $notifications = new Notifications(
138
+                $addressHandler,
139
+                $this->serverContainer->getHTTPClientService(),
140
+                $this->serverContainer->query(\OCP\OCS\IDiscoveryService::class),
141
+                $this->serverContainer->getJobList(),
142
+                \OC::$server->getCloudFederationProviderManager(),
143
+                \OC::$server->getCloudFederationFactory(),
144
+                $this->serverContainer->query(IEventDispatcher::class)
145
+            );
146
+            $tokenHandler = new TokenHandler(
147
+                $this->serverContainer->getSecureRandom()
148
+            );
149
+
150
+            $this->federatedProvider = new FederatedShareProvider(
151
+                $this->serverContainer->getDatabaseConnection(),
152
+                $addressHandler,
153
+                $notifications,
154
+                $tokenHandler,
155
+                $l,
156
+                $this->serverContainer->getLogger(),
157
+                $this->serverContainer->getLazyRootFolder(),
158
+                $this->serverContainer->getConfig(),
159
+                $this->serverContainer->getUserManager(),
160
+                $this->serverContainer->getCloudIdManager(),
161
+                $this->serverContainer->getGlobalScaleConfig(),
162
+                $this->serverContainer->getCloudFederationProviderManager()
163
+            );
164
+        }
165
+
166
+        return $this->federatedProvider;
167
+    }
168
+
169
+    /**
170
+     * Create the federated share provider
171
+     *
172
+     * @return ShareByMailProvider
173
+     */
174
+    protected function getShareByMailProvider() {
175
+        if ($this->shareByMailProvider === null) {
176
+            /*
177 177
 			 * Check if the app is enabled
178 178
 			 */
179
-			$appManager = $this->serverContainer->getAppManager();
180
-			if (!$appManager->isEnabledForUser('sharebymail')) {
181
-				return null;
182
-			}
183
-
184
-			$settingsManager = new SettingsManager($this->serverContainer->getConfig());
185
-
186
-			$this->shareByMailProvider = new ShareByMailProvider(
187
-				$this->serverContainer->getDatabaseConnection(),
188
-				$this->serverContainer->getSecureRandom(),
189
-				$this->serverContainer->getUserManager(),
190
-				$this->serverContainer->getLazyRootFolder(),
191
-				$this->serverContainer->getL10N('sharebymail'),
192
-				$this->serverContainer->getLogger(),
193
-				$this->serverContainer->getMailer(),
194
-				$this->serverContainer->getURLGenerator(),
195
-				$this->serverContainer->getActivityManager(),
196
-				$settingsManager,
197
-				$this->serverContainer->query(Defaults::class),
198
-				$this->serverContainer->getHasher(),
199
-				$this->serverContainer->get(IEventDispatcher::class),
200
-				$this->serverContainer->get(IManager::class)
201
-			);
202
-		}
203
-
204
-		return $this->shareByMailProvider;
205
-	}
206
-
207
-
208
-	/**
209
-	 * Create the circle share provider
210
-	 *
211
-	 * @return FederatedShareProvider
212
-	 *
213
-	 * @suppress PhanUndeclaredClassMethod
214
-	 */
215
-	protected function getShareByCircleProvider() {
216
-		if ($this->circlesAreNotAvailable) {
217
-			return null;
218
-		}
219
-
220
-		if (!$this->serverContainer->getAppManager()->isEnabledForUser('circles') ||
221
-			!class_exists('\OCA\Circles\ShareByCircleProvider')
222
-		) {
223
-			$this->circlesAreNotAvailable = true;
224
-			return null;
225
-		}
226
-
227
-		if ($this->shareByCircleProvider === null) {
228
-			$this->shareByCircleProvider = new \OCA\Circles\ShareByCircleProvider(
229
-				$this->serverContainer->getDatabaseConnection(),
230
-				$this->serverContainer->getSecureRandom(),
231
-				$this->serverContainer->getUserManager(),
232
-				$this->serverContainer->getLazyRootFolder(),
233
-				$this->serverContainer->getL10N('circles'),
234
-				$this->serverContainer->getLogger(),
235
-				$this->serverContainer->getURLGenerator()
236
-			);
237
-		}
238
-
239
-		return $this->shareByCircleProvider;
240
-	}
241
-
242
-	/**
243
-	 * Create the room share provider
244
-	 *
245
-	 * @return RoomShareProvider
246
-	 */
247
-	protected function getRoomShareProvider() {
248
-		if ($this->roomShareProvider === null) {
249
-			/*
179
+            $appManager = $this->serverContainer->getAppManager();
180
+            if (!$appManager->isEnabledForUser('sharebymail')) {
181
+                return null;
182
+            }
183
+
184
+            $settingsManager = new SettingsManager($this->serverContainer->getConfig());
185
+
186
+            $this->shareByMailProvider = new ShareByMailProvider(
187
+                $this->serverContainer->getDatabaseConnection(),
188
+                $this->serverContainer->getSecureRandom(),
189
+                $this->serverContainer->getUserManager(),
190
+                $this->serverContainer->getLazyRootFolder(),
191
+                $this->serverContainer->getL10N('sharebymail'),
192
+                $this->serverContainer->getLogger(),
193
+                $this->serverContainer->getMailer(),
194
+                $this->serverContainer->getURLGenerator(),
195
+                $this->serverContainer->getActivityManager(),
196
+                $settingsManager,
197
+                $this->serverContainer->query(Defaults::class),
198
+                $this->serverContainer->getHasher(),
199
+                $this->serverContainer->get(IEventDispatcher::class),
200
+                $this->serverContainer->get(IManager::class)
201
+            );
202
+        }
203
+
204
+        return $this->shareByMailProvider;
205
+    }
206
+
207
+
208
+    /**
209
+     * Create the circle share provider
210
+     *
211
+     * @return FederatedShareProvider
212
+     *
213
+     * @suppress PhanUndeclaredClassMethod
214
+     */
215
+    protected function getShareByCircleProvider() {
216
+        if ($this->circlesAreNotAvailable) {
217
+            return null;
218
+        }
219
+
220
+        if (!$this->serverContainer->getAppManager()->isEnabledForUser('circles') ||
221
+            !class_exists('\OCA\Circles\ShareByCircleProvider')
222
+        ) {
223
+            $this->circlesAreNotAvailable = true;
224
+            return null;
225
+        }
226
+
227
+        if ($this->shareByCircleProvider === null) {
228
+            $this->shareByCircleProvider = new \OCA\Circles\ShareByCircleProvider(
229
+                $this->serverContainer->getDatabaseConnection(),
230
+                $this->serverContainer->getSecureRandom(),
231
+                $this->serverContainer->getUserManager(),
232
+                $this->serverContainer->getLazyRootFolder(),
233
+                $this->serverContainer->getL10N('circles'),
234
+                $this->serverContainer->getLogger(),
235
+                $this->serverContainer->getURLGenerator()
236
+            );
237
+        }
238
+
239
+        return $this->shareByCircleProvider;
240
+    }
241
+
242
+    /**
243
+     * Create the room share provider
244
+     *
245
+     * @return RoomShareProvider
246
+     */
247
+    protected function getRoomShareProvider() {
248
+        if ($this->roomShareProvider === null) {
249
+            /*
250 250
 			 * Check if the app is enabled
251 251
 			 */
252
-			$appManager = $this->serverContainer->getAppManager();
253
-			if (!$appManager->isEnabledForUser('spreed')) {
254
-				return null;
255
-			}
256
-
257
-			try {
258
-				$this->roomShareProvider = $this->serverContainer->query('\OCA\Talk\Share\RoomShareProvider');
259
-			} catch (\OCP\AppFramework\QueryException $e) {
260
-				return null;
261
-			}
262
-		}
263
-
264
-		return $this->roomShareProvider;
265
-	}
266
-
267
-	/**
268
-	 * @inheritdoc
269
-	 */
270
-	public function getProvider($id) {
271
-		$provider = null;
272
-		if (isset($this->shareProviders[$id])) {
273
-			return $this->shareProviders[$id];
274
-		}
275
-
276
-		if ($id === 'ocinternal') {
277
-			$provider = $this->defaultShareProvider();
278
-		} elseif ($id === 'ocFederatedSharing') {
279
-			$provider = $this->federatedShareProvider();
280
-		} elseif ($id === 'ocMailShare') {
281
-			$provider = $this->getShareByMailProvider();
282
-		} elseif ($id === 'ocCircleShare') {
283
-			$provider = $this->getShareByCircleProvider();
284
-		} elseif ($id === 'ocRoomShare') {
285
-			$provider = $this->getRoomShareProvider();
286
-		}
287
-
288
-		foreach ($this->registeredShareProviders as $shareProvider) {
289
-			/** @var IShareProvider $instance */
290
-			$instance = $this->serverContainer->get($shareProvider);
291
-			$this->shareProviders[$instance->identifier()] = $instance;
292
-		}
293
-
294
-		if (isset($this->shareProviders[$id])) {
295
-			$provider = $this->shareProviders[$id];
296
-		}
297
-
298
-		if ($provider === null) {
299
-			throw new ProviderException('No provider with id .' . $id . ' found.');
300
-		}
301
-
302
-		return $provider;
303
-	}
304
-
305
-	/**
306
-	 * @inheritdoc
307
-	 */
308
-	public function getProviderForType($shareType) {
309
-		$provider = null;
310
-
311
-		if ($shareType === IShare::TYPE_USER ||
312
-			$shareType === IShare::TYPE_GROUP ||
313
-			$shareType === IShare::TYPE_LINK
314
-		) {
315
-			$provider = $this->defaultShareProvider();
316
-		} elseif ($shareType === IShare::TYPE_REMOTE || $shareType === IShare::TYPE_REMOTE_GROUP) {
317
-			$provider = $this->federatedShareProvider();
318
-		} elseif ($shareType === IShare::TYPE_EMAIL) {
319
-			$provider = $this->getShareByMailProvider();
320
-		} elseif ($shareType === IShare::TYPE_CIRCLE) {
321
-			$provider = $this->getShareByCircleProvider();
322
-		} elseif ($shareType === IShare::TYPE_ROOM) {
323
-			$provider = $this->getRoomShareProvider();
324
-		} elseif ($shareType === IShare::TYPE_DECK) {
325
-			$provider = $this->getProvider('deck');
326
-		}
327
-
328
-
329
-		if ($provider === null) {
330
-			throw new ProviderException('No share provider for share type ' . $shareType);
331
-		}
332
-
333
-		return $provider;
334
-	}
335
-
336
-	public function getAllProviders() {
337
-		$shares = [$this->defaultShareProvider(), $this->federatedShareProvider()];
338
-		$shareByMail = $this->getShareByMailProvider();
339
-		if ($shareByMail !== null) {
340
-			$shares[] = $shareByMail;
341
-		}
342
-		$shareByCircle = $this->getShareByCircleProvider();
343
-		if ($shareByCircle !== null) {
344
-			$shares[] = $shareByCircle;
345
-		}
346
-		$roomShare = $this->getRoomShareProvider();
347
-		if ($roomShare !== null) {
348
-			$shares[] = $roomShare;
349
-		}
350
-
351
-		foreach ($this->registeredShareProviders as $shareProvider) {
352
-			/** @var IShareProvider $instance */
353
-			$instance = $this->serverContainer->get($shareProvider);
354
-			if (!isset($this->shareProviders[$instance->identifier()])) {
355
-				$this->shareProviders[$instance->identifier()] = $instance;
356
-			}
357
-			$shares[] = $this->shareProviders[$instance->identifier()];
358
-		}
359
-
360
-
361
-
362
-		return $shares;
363
-	}
252
+            $appManager = $this->serverContainer->getAppManager();
253
+            if (!$appManager->isEnabledForUser('spreed')) {
254
+                return null;
255
+            }
256
+
257
+            try {
258
+                $this->roomShareProvider = $this->serverContainer->query('\OCA\Talk\Share\RoomShareProvider');
259
+            } catch (\OCP\AppFramework\QueryException $e) {
260
+                return null;
261
+            }
262
+        }
263
+
264
+        return $this->roomShareProvider;
265
+    }
266
+
267
+    /**
268
+     * @inheritdoc
269
+     */
270
+    public function getProvider($id) {
271
+        $provider = null;
272
+        if (isset($this->shareProviders[$id])) {
273
+            return $this->shareProviders[$id];
274
+        }
275
+
276
+        if ($id === 'ocinternal') {
277
+            $provider = $this->defaultShareProvider();
278
+        } elseif ($id === 'ocFederatedSharing') {
279
+            $provider = $this->federatedShareProvider();
280
+        } elseif ($id === 'ocMailShare') {
281
+            $provider = $this->getShareByMailProvider();
282
+        } elseif ($id === 'ocCircleShare') {
283
+            $provider = $this->getShareByCircleProvider();
284
+        } elseif ($id === 'ocRoomShare') {
285
+            $provider = $this->getRoomShareProvider();
286
+        }
287
+
288
+        foreach ($this->registeredShareProviders as $shareProvider) {
289
+            /** @var IShareProvider $instance */
290
+            $instance = $this->serverContainer->get($shareProvider);
291
+            $this->shareProviders[$instance->identifier()] = $instance;
292
+        }
293
+
294
+        if (isset($this->shareProviders[$id])) {
295
+            $provider = $this->shareProviders[$id];
296
+        }
297
+
298
+        if ($provider === null) {
299
+            throw new ProviderException('No provider with id .' . $id . ' found.');
300
+        }
301
+
302
+        return $provider;
303
+    }
304
+
305
+    /**
306
+     * @inheritdoc
307
+     */
308
+    public function getProviderForType($shareType) {
309
+        $provider = null;
310
+
311
+        if ($shareType === IShare::TYPE_USER ||
312
+            $shareType === IShare::TYPE_GROUP ||
313
+            $shareType === IShare::TYPE_LINK
314
+        ) {
315
+            $provider = $this->defaultShareProvider();
316
+        } elseif ($shareType === IShare::TYPE_REMOTE || $shareType === IShare::TYPE_REMOTE_GROUP) {
317
+            $provider = $this->federatedShareProvider();
318
+        } elseif ($shareType === IShare::TYPE_EMAIL) {
319
+            $provider = $this->getShareByMailProvider();
320
+        } elseif ($shareType === IShare::TYPE_CIRCLE) {
321
+            $provider = $this->getShareByCircleProvider();
322
+        } elseif ($shareType === IShare::TYPE_ROOM) {
323
+            $provider = $this->getRoomShareProvider();
324
+        } elseif ($shareType === IShare::TYPE_DECK) {
325
+            $provider = $this->getProvider('deck');
326
+        }
327
+
328
+
329
+        if ($provider === null) {
330
+            throw new ProviderException('No share provider for share type ' . $shareType);
331
+        }
332
+
333
+        return $provider;
334
+    }
335
+
336
+    public function getAllProviders() {
337
+        $shares = [$this->defaultShareProvider(), $this->federatedShareProvider()];
338
+        $shareByMail = $this->getShareByMailProvider();
339
+        if ($shareByMail !== null) {
340
+            $shares[] = $shareByMail;
341
+        }
342
+        $shareByCircle = $this->getShareByCircleProvider();
343
+        if ($shareByCircle !== null) {
344
+            $shares[] = $shareByCircle;
345
+        }
346
+        $roomShare = $this->getRoomShareProvider();
347
+        if ($roomShare !== null) {
348
+            $shares[] = $roomShare;
349
+        }
350
+
351
+        foreach ($this->registeredShareProviders as $shareProvider) {
352
+            /** @var IShareProvider $instance */
353
+            $instance = $this->serverContainer->get($shareProvider);
354
+            if (!isset($this->shareProviders[$instance->identifier()])) {
355
+                $this->shareProviders[$instance->identifier()] = $instance;
356
+            }
357
+            $shares[] = $this->shareProviders[$instance->identifier()];
358
+        }
359
+
360
+
361
+
362
+        return $shares;
363
+    }
364 364
 }
Please login to merge, or discard this patch.
lib/private/Migration/ConsoleOutput.php 1 patch
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -37,57 +37,57 @@
 block discarded – undo
37 37
  */
38 38
 class ConsoleOutput implements IOutput {
39 39
 
40
-	/** @var OutputInterface */
41
-	private $output;
40
+    /** @var OutputInterface */
41
+    private $output;
42 42
 
43
-	/** @var ProgressBar */
44
-	private $progressBar;
43
+    /** @var ProgressBar */
44
+    private $progressBar;
45 45
 
46
-	public function __construct(OutputInterface $output) {
47
-		$this->output = $output;
48
-	}
46
+    public function __construct(OutputInterface $output) {
47
+        $this->output = $output;
48
+    }
49 49
 
50
-	/**
51
-	 * @param string $message
52
-	 */
53
-	public function info($message) {
54
-		$this->output->writeln("<info>$message</info>");
55
-	}
50
+    /**
51
+     * @param string $message
52
+     */
53
+    public function info($message) {
54
+        $this->output->writeln("<info>$message</info>");
55
+    }
56 56
 
57
-	/**
58
-	 * @param string $message
59
-	 */
60
-	public function warning($message) {
61
-		$this->output->writeln("<comment>$message</comment>");
62
-	}
57
+    /**
58
+     * @param string $message
59
+     */
60
+    public function warning($message) {
61
+        $this->output->writeln("<comment>$message</comment>");
62
+    }
63 63
 
64
-	/**
65
-	 * @param int $max
66
-	 */
67
-	public function startProgress($max = 0) {
68
-		if (!is_null($this->progressBar)) {
69
-			$this->progressBar->finish();
70
-		}
71
-		$this->progressBar = new ProgressBar($this->output);
72
-		$this->progressBar->start($max);
73
-	}
64
+    /**
65
+     * @param int $max
66
+     */
67
+    public function startProgress($max = 0) {
68
+        if (!is_null($this->progressBar)) {
69
+            $this->progressBar->finish();
70
+        }
71
+        $this->progressBar = new ProgressBar($this->output);
72
+        $this->progressBar->start($max);
73
+    }
74 74
 
75
-	/**
76
-	 * @param int $step
77
-	 * @param string $description
78
-	 */
79
-	public function advance($step = 1, $description = '') {
80
-		if (!is_null($this->progressBar)) {
81
-			$this->progressBar = new ProgressBar($this->output);
82
-			$this->progressBar->start();
83
-		}
84
-		$this->progressBar->advance($step);
85
-	}
75
+    /**
76
+     * @param int $step
77
+     * @param string $description
78
+     */
79
+    public function advance($step = 1, $description = '') {
80
+        if (!is_null($this->progressBar)) {
81
+            $this->progressBar = new ProgressBar($this->output);
82
+            $this->progressBar->start();
83
+        }
84
+        $this->progressBar->advance($step);
85
+    }
86 86
 
87
-	public function finishProgress() {
88
-		if (is_null($this->progressBar)) {
89
-			return;
90
-		}
91
-		$this->progressBar->finish();
92
-	}
87
+    public function finishProgress() {
88
+        if (is_null($this->progressBar)) {
89
+            return;
90
+        }
91
+        $this->progressBar->finish();
92
+    }
93 93
 }
Please login to merge, or discard this patch.
apps/dav/lib/Avatars/RootCollection.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -7,23 +7,23 @@
 block discarded – undo
7 7
 
8 8
 class RootCollection extends AbstractPrincipalCollection {
9 9
 
10
-	/**
11
-	 * This method returns a node for a principal.
12
-	 *
13
-	 * The passed array contains principal information, and is guaranteed to
14
-	 * at least contain a uri item. Other properties may or may not be
15
-	 * supplied by the authentication backend.
16
-	 *
17
-	 * @param array $principalInfo
18
-	 * @return AvatarHome
19
-	 */
20
-	public function getChildForPrincipal(array $principalInfo) {
21
-		$avatarManager = \OC::$server->getAvatarManager();
22
-		return new AvatarHome($principalInfo, $avatarManager);
23
-	}
10
+    /**
11
+     * This method returns a node for a principal.
12
+     *
13
+     * The passed array contains principal information, and is guaranteed to
14
+     * at least contain a uri item. Other properties may or may not be
15
+     * supplied by the authentication backend.
16
+     *
17
+     * @param array $principalInfo
18
+     * @return AvatarHome
19
+     */
20
+    public function getChildForPrincipal(array $principalInfo) {
21
+        $avatarManager = \OC::$server->getAvatarManager();
22
+        return new AvatarHome($principalInfo, $avatarManager);
23
+    }
24 24
 
25
-	public function getName() {
26
-		return 'avatars';
27
-	}
25
+    public function getName() {
26
+        return 'avatars';
27
+    }
28 28
 
29 29
 }
Please login to merge, or discard this patch.
apps/dav/lib/Migration/CalDAVRemoveEmptyValue.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
65 65
 
66 66
 		$output->startProgress(count($objects));
67 67
 		foreach ($objects as $row) {
68
-			$calObject = $this->calDavBackend->getCalendarObject((int)$row['calendarid'], $row['uri']);
69
-			$data = preg_replace('/' . $pattern . '/', ':', $calObject['calendardata']);
68
+			$calObject = $this->calDavBackend->getCalendarObject((int) $row['calendarid'], $row['uri']);
69
+			$data = preg_replace('/'.$pattern.'/', ':', $calObject['calendardata']);
70 70
 
71 71
 			if ($data !== $calObject['calendardata']) {
72 72
 				$output->advance();
@@ -76,14 +76,14 @@  discard block
 block discarded – undo
76 76
 				} catch (InvalidDataException $e) {
77 77
 					$this->logger->info('Calendar object for calendar {cal} with uri {uri} still invalid', [
78 78
 						'app' => 'dav',
79
-						'cal' => (int)$row['calendarid'],
79
+						'cal' => (int) $row['calendarid'],
80 80
 						'uri' => $row['uri'],
81 81
 					]);
82 82
 					$warnings++;
83 83
 					continue;
84 84
 				}
85 85
 
86
-				$this->calDavBackend->updateCalendarObject((int)$row['calendarid'], $row['uri'], $data);
86
+				$this->calDavBackend->updateCalendarObject((int) $row['calendarid'], $row['uri'], $data);
87 87
 				$count++;
88 88
 			}
89 89
 		}
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 			->where($query->expr()->like(
105 105
 				'calendardata',
106 106
 				$query->createNamedParameter(
107
-					'%' . $this->db->escapeLikeParameter($pattern) . '%',
107
+					'%'.$this->db->escapeLikeParameter($pattern).'%',
108 108
 					IQueryBuilder::PARAM_STR
109 109
 				),
110 110
 				IQueryBuilder::PARAM_STR
Please login to merge, or discard this patch.
Indentation   +114 added lines, -114 removed lines patch added patch discarded remove patch
@@ -35,118 +35,118 @@
 block discarded – undo
35 35
 
36 36
 class CalDAVRemoveEmptyValue implements IRepairStep {
37 37
 
38
-	/** @var IDBConnection */
39
-	private $db;
40
-
41
-	/** @var CalDavBackend */
42
-	private $calDavBackend;
43
-
44
-	/** @var ILogger */
45
-	private $logger;
46
-
47
-	/**
48
-	 * @param IDBConnection $db
49
-	 * @param CalDavBackend $calDavBackend
50
-	 * @param ILogger $logger
51
-	 */
52
-	public function __construct(IDBConnection $db, CalDavBackend $calDavBackend, ILogger $logger) {
53
-		$this->db = $db;
54
-		$this->calDavBackend = $calDavBackend;
55
-		$this->logger = $logger;
56
-	}
57
-
58
-	public function getName() {
59
-		return 'Fix broken values of calendar objects';
60
-	}
61
-
62
-	public function run(IOutput $output) {
63
-		$pattern = ';VALUE=:';
64
-		$count = $warnings = 0;
65
-
66
-		$objects = $this->getInvalidObjects($pattern);
67
-
68
-		$output->startProgress(count($objects));
69
-		foreach ($objects as $row) {
70
-			$calObject = $this->calDavBackend->getCalendarObject((int)$row['calendarid'], $row['uri']);
71
-			$data = preg_replace('/' . $pattern . '/', ':', $calObject['calendardata']);
72
-
73
-			if ($data !== $calObject['calendardata']) {
74
-				$output->advance();
75
-
76
-				try {
77
-					$this->calDavBackend->getDenormalizedData($data);
78
-				} catch (InvalidDataException $e) {
79
-					$this->logger->info('Calendar object for calendar {cal} with uri {uri} still invalid', [
80
-						'app' => 'dav',
81
-						'cal' => (int)$row['calendarid'],
82
-						'uri' => $row['uri'],
83
-					]);
84
-					$warnings++;
85
-					continue;
86
-				}
87
-
88
-				$this->calDavBackend->updateCalendarObject((int)$row['calendarid'], $row['uri'], $data);
89
-				$count++;
90
-			}
91
-		}
92
-		$output->finishProgress();
93
-
94
-		if ($warnings > 0) {
95
-			$output->warning(sprintf('%d events could not be updated, see log file for more information', $warnings));
96
-		}
97
-		if ($count > 0) {
98
-			$output->info(sprintf('Updated %d events', $count));
99
-		}
100
-	}
101
-
102
-	protected function getInvalidObjects($pattern) {
103
-		if ($this->db->getDatabasePlatform() instanceof OraclePlatform) {
104
-			$rows = [];
105
-			$chunkSize = 500;
106
-			$query = $this->db->getQueryBuilder();
107
-			$query->select($query->func()->count('*', 'num_entries'))
108
-				->from('calendarobjects');
109
-			$result = $query->execute();
110
-			$count = $result->fetchOne();
111
-			$result->closeCursor();
112
-
113
-			$numChunks = ceil($count / $chunkSize);
114
-
115
-			$query = $this->db->getQueryBuilder();
116
-			$query->select(['calendarid', 'uri', 'calendardata'])
117
-				->from('calendarobjects')
118
-				->setMaxResults($chunkSize);
119
-			for ($chunk = 0; $chunk < $numChunks; $chunk++) {
120
-				$query->setFirstResult($chunk * $chunkSize);
121
-				$result = $query->execute();
122
-
123
-				while ($row = $result->fetch()) {
124
-					if (mb_strpos($row['calendardata'], $pattern) !== false) {
125
-						unset($row['calendardata']);
126
-						$rows[] = $row;
127
-					}
128
-				}
129
-				$result->closeCursor();
130
-			}
131
-			return $rows;
132
-		}
133
-
134
-		$query = $this->db->getQueryBuilder();
135
-		$query->select(['calendarid', 'uri'])
136
-			->from('calendarobjects')
137
-			->where($query->expr()->like(
138
-				'calendardata',
139
-				$query->createNamedParameter(
140
-					'%' . $this->db->escapeLikeParameter($pattern) . '%',
141
-					IQueryBuilder::PARAM_STR
142
-				),
143
-				IQueryBuilder::PARAM_STR
144
-			));
145
-
146
-		$result = $query->execute();
147
-		$rows = $result->fetchAll();
148
-		$result->closeCursor();
149
-
150
-		return $rows;
151
-	}
38
+    /** @var IDBConnection */
39
+    private $db;
40
+
41
+    /** @var CalDavBackend */
42
+    private $calDavBackend;
43
+
44
+    /** @var ILogger */
45
+    private $logger;
46
+
47
+    /**
48
+     * @param IDBConnection $db
49
+     * @param CalDavBackend $calDavBackend
50
+     * @param ILogger $logger
51
+     */
52
+    public function __construct(IDBConnection $db, CalDavBackend $calDavBackend, ILogger $logger) {
53
+        $this->db = $db;
54
+        $this->calDavBackend = $calDavBackend;
55
+        $this->logger = $logger;
56
+    }
57
+
58
+    public function getName() {
59
+        return 'Fix broken values of calendar objects';
60
+    }
61
+
62
+    public function run(IOutput $output) {
63
+        $pattern = ';VALUE=:';
64
+        $count = $warnings = 0;
65
+
66
+        $objects = $this->getInvalidObjects($pattern);
67
+
68
+        $output->startProgress(count($objects));
69
+        foreach ($objects as $row) {
70
+            $calObject = $this->calDavBackend->getCalendarObject((int)$row['calendarid'], $row['uri']);
71
+            $data = preg_replace('/' . $pattern . '/', ':', $calObject['calendardata']);
72
+
73
+            if ($data !== $calObject['calendardata']) {
74
+                $output->advance();
75
+
76
+                try {
77
+                    $this->calDavBackend->getDenormalizedData($data);
78
+                } catch (InvalidDataException $e) {
79
+                    $this->logger->info('Calendar object for calendar {cal} with uri {uri} still invalid', [
80
+                        'app' => 'dav',
81
+                        'cal' => (int)$row['calendarid'],
82
+                        'uri' => $row['uri'],
83
+                    ]);
84
+                    $warnings++;
85
+                    continue;
86
+                }
87
+
88
+                $this->calDavBackend->updateCalendarObject((int)$row['calendarid'], $row['uri'], $data);
89
+                $count++;
90
+            }
91
+        }
92
+        $output->finishProgress();
93
+
94
+        if ($warnings > 0) {
95
+            $output->warning(sprintf('%d events could not be updated, see log file for more information', $warnings));
96
+        }
97
+        if ($count > 0) {
98
+            $output->info(sprintf('Updated %d events', $count));
99
+        }
100
+    }
101
+
102
+    protected function getInvalidObjects($pattern) {
103
+        if ($this->db->getDatabasePlatform() instanceof OraclePlatform) {
104
+            $rows = [];
105
+            $chunkSize = 500;
106
+            $query = $this->db->getQueryBuilder();
107
+            $query->select($query->func()->count('*', 'num_entries'))
108
+                ->from('calendarobjects');
109
+            $result = $query->execute();
110
+            $count = $result->fetchOne();
111
+            $result->closeCursor();
112
+
113
+            $numChunks = ceil($count / $chunkSize);
114
+
115
+            $query = $this->db->getQueryBuilder();
116
+            $query->select(['calendarid', 'uri', 'calendardata'])
117
+                ->from('calendarobjects')
118
+                ->setMaxResults($chunkSize);
119
+            for ($chunk = 0; $chunk < $numChunks; $chunk++) {
120
+                $query->setFirstResult($chunk * $chunkSize);
121
+                $result = $query->execute();
122
+
123
+                while ($row = $result->fetch()) {
124
+                    if (mb_strpos($row['calendardata'], $pattern) !== false) {
125
+                        unset($row['calendardata']);
126
+                        $rows[] = $row;
127
+                    }
128
+                }
129
+                $result->closeCursor();
130
+            }
131
+            return $rows;
132
+        }
133
+
134
+        $query = $this->db->getQueryBuilder();
135
+        $query->select(['calendarid', 'uri'])
136
+            ->from('calendarobjects')
137
+            ->where($query->expr()->like(
138
+                'calendardata',
139
+                $query->createNamedParameter(
140
+                    '%' . $this->db->escapeLikeParameter($pattern) . '%',
141
+                    IQueryBuilder::PARAM_STR
142
+                ),
143
+                IQueryBuilder::PARAM_STR
144
+            ));
145
+
146
+        $result = $query->execute();
147
+        $rows = $result->fetchAll();
148
+        $result->closeCursor();
149
+
150
+        return $rows;
151
+    }
152 152
 }
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Search/Xml/Filter/CompFilter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 		$reader->parseInnerTree();
40 40
 
41 41
 		if (!is_string($componentName)) {
42
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}comp-filter requires a valid name attribute');
42
+			throw new BadRequest('The {'.SearchPlugin::NS_Nextcloud.'}comp-filter requires a valid name attribute');
43 43
 		}
44 44
 
45 45
 		return $componentName;
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -27,21 +27,21 @@
 block discarded – undo
27 27
 
28 28
 class CompFilter implements XmlDeserializable {
29 29
 
30
-	/**
31
-	 * @param Reader $reader
32
-	 * @throws BadRequest
33
-	 * @return string
34
-	 */
35
-	public static function xmlDeserialize(Reader $reader) {
36
-		$att = $reader->parseAttributes();
37
-		$componentName = $att['name'];
30
+    /**
31
+     * @param Reader $reader
32
+     * @throws BadRequest
33
+     * @return string
34
+     */
35
+    public static function xmlDeserialize(Reader $reader) {
36
+        $att = $reader->parseAttributes();
37
+        $componentName = $att['name'];
38 38
 
39
-		$reader->parseInnerTree();
39
+        $reader->parseInnerTree();
40 40
 
41
-		if (!is_string($componentName)) {
42
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}comp-filter requires a valid name attribute');
43
-		}
41
+        if (!is_string($componentName)) {
42
+            throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}comp-filter requires a valid name attribute');
43
+        }
44 44
 
45
-		return $componentName;
46
-	}
45
+        return $componentName;
46
+    }
47 47
 }
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Search/Xml/Filter/PropFilter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 		$reader->parseInnerTree();
40 40
 
41 41
 		if (!is_string($componentName)) {
42
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}prop-filter requires a valid name attribute');
42
+			throw new BadRequest('The {'.SearchPlugin::NS_Nextcloud.'}prop-filter requires a valid name attribute');
43 43
 		}
44 44
 
45 45
 		return $componentName;
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -27,21 +27,21 @@
 block discarded – undo
27 27
 
28 28
 class PropFilter implements XmlDeserializable {
29 29
 
30
-	/**
31
-	 * @param Reader $reader
32
-	 * @throws BadRequest
33
-	 * @return string
34
-	 */
35
-	public static function xmlDeserialize(Reader $reader) {
36
-		$att = $reader->parseAttributes();
37
-		$componentName = $att['name'];
30
+    /**
31
+     * @param Reader $reader
32
+     * @throws BadRequest
33
+     * @return string
34
+     */
35
+    public static function xmlDeserialize(Reader $reader) {
36
+        $att = $reader->parseAttributes();
37
+        $componentName = $att['name'];
38 38
 
39
-		$reader->parseInnerTree();
39
+        $reader->parseInnerTree();
40 40
 
41
-		if (!is_string($componentName)) {
42
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}prop-filter requires a valid name attribute');
43
-		}
41
+        if (!is_string($componentName)) {
42
+            throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}prop-filter requires a valid name attribute');
43
+        }
44 44
 
45
-		return $componentName;
46
-	}
45
+        return $componentName;
46
+    }
47 47
 }
Please login to merge, or discard this patch.
apps/dav/lib/CalDAV/Search/Xml/Filter/ParamFilter.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@
 block discarded – undo
40 40
 		$reader->parseInnerTree();
41 41
 
42 42
 		if (!is_string($property)) {
43
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}param-filter requires a valid property attribute');
43
+			throw new BadRequest('The {'.SearchPlugin::NS_Nextcloud.'}param-filter requires a valid property attribute');
44 44
 
45 45
 		}
46 46
 		if (!is_string($parameter)) {
47
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}param-filter requires a valid parameter attribute');
47
+			throw new BadRequest('The {'.SearchPlugin::NS_Nextcloud.'}param-filter requires a valid parameter attribute');
48 48
 		}
49 49
 
50 50
 		return [
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -27,28 +27,28 @@
 block discarded – undo
27 27
 
28 28
 class ParamFilter implements XmlDeserializable {
29 29
 
30
-	/**
31
-	 * @param Reader $reader
32
-	 * @throws BadRequest
33
-	 * @return string
34
-	 */
35
-	public static function xmlDeserialize(Reader $reader) {
36
-		$att = $reader->parseAttributes();
37
-		$property = $att['property'];
38
-		$parameter = $att['name'];
30
+    /**
31
+     * @param Reader $reader
32
+     * @throws BadRequest
33
+     * @return string
34
+     */
35
+    public static function xmlDeserialize(Reader $reader) {
36
+        $att = $reader->parseAttributes();
37
+        $property = $att['property'];
38
+        $parameter = $att['name'];
39 39
 
40
-		$reader->parseInnerTree();
40
+        $reader->parseInnerTree();
41 41
 
42
-		if (!is_string($property)) {
43
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}param-filter requires a valid property attribute');
44
-		}
45
-		if (!is_string($parameter)) {
46
-			throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}param-filter requires a valid parameter attribute');
47
-		}
42
+        if (!is_string($property)) {
43
+            throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}param-filter requires a valid property attribute');
44
+        }
45
+        if (!is_string($parameter)) {
46
+            throw new BadRequest('The {' . SearchPlugin::NS_Nextcloud . '}param-filter requires a valid parameter attribute');
47
+        }
48 48
 
49
-		return [
50
-			'property' => $property,
51
-			'parameter' => $parameter,
52
-		];
53
-	}
49
+        return [
50
+            'property' => $property,
51
+            'parameter' => $parameter,
52
+        ];
53
+    }
54 54
 }
Please login to merge, or discard this patch.
apps/encryption/templates/mail.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	<tr><td>
28 28
 			<table cellspacing="0" cellpadding="0" border="0" width="600px">
29 29
 				<tr>
30
-					<td colspan="2" bgcolor="<?php p($theme->getColorPrimary());?>">
30
+					<td colspan="2" bgcolor="<?php p($theme->getColorPrimary()); ?>">
31 31
 						<img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL(image_path('', 'logo-mail.png'))); ?>" alt="<?php p($theme->getName()); ?>"/>
32 32
 					</td>
33 33
 				</tr>
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 					<td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">--<br>
53 53
 						<?php p($theme->getName()); ?> -
54 54
 						<?php p($theme->getSlogan()); ?>
55
-						<br><a href="<?php p($theme->getBaseUrl()); ?>"><?php p($theme->getBaseUrl());?></a>
55
+						<br><a href="<?php p($theme->getBaseUrl()); ?>"><?php p($theme->getBaseUrl()); ?></a>
56 56
 					</td>
57 57
 				</tr>
58 58
 				<tr>
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
 					<td width="20px">&nbsp;</td>
16 16
 					<td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">
17 17
 						<?php
18
-						print_unescaped($l->t('Hey there,<br><br>the admin enabled server-side-encryption. Your files were encrypted using the password <strong>%s</strong>.<br><br>Please login to the web interface, go to the section "basic encryption module" of your personal settings and update your encryption password by entering this password into the "old log-in password" field and your current login-password.<br><br>', [$_['password']]));
19
-						// TRANSLATORS term at the end of a mail
20
-						p($l->t('Cheers!'));
21
-						?>
18
+                        print_unescaped($l->t('Hey there,<br><br>the admin enabled server-side-encryption. Your files were encrypted using the password <strong>%s</strong>.<br><br>Please login to the web interface, go to the section "basic encryption module" of your personal settings and update your encryption password by entering this password into the "old log-in password" field and your current login-password.<br><br>', [$_['password']]));
19
+                        // TRANSLATORS term at the end of a mail
20
+                        p($l->t('Cheers!'));
21
+                        ?>
22 22
 					</td>
23 23
 				</tr>
24 24
 				<tr><td colspan="2">&nbsp;</td></tr>
Please login to merge, or discard this patch.