Completed
Pull Request — master (#93)
by Janis
14:24
created
lib/Controller/AdminSettingsController.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 	 * @param string $userId        	
40 40
 	 */
41 41
 	public function __construct($appName, IRequest $request, IL10N $l10n, AppConfigService $appConfig, $userId) {
42
-		parent::__construct ( $appName, $request );
42
+		parent::__construct($appName, $request);
43 43
 		$this->l10n = $l10n;
44 44
 		$this->appConfig = $appConfig;
45 45
 	}
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
 	 * @return DataResponse
51 51
 	 */
52 52
 	public function getSettings() {
53
-		return $this->handleNotFound ( function () {
54
-			return [ 'languages' => $this->appConfig->getAppValue ( 'languages' )];
53
+		return $this->handleNotFound(function() {
54
+			return ['languages' => $this->appConfig->getAppValue('languages')];
55 55
 		} );
56 56
 	}
57 57
 	
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
 	 * @return DataResponse
63 63
 	 */
64 64
 	public function setSettings($languages) {
65
-		return $this->handleNotFound ( function () use ($languages) {
65
+		return $this->handleNotFound(function() use ($languages) {
66 66
 			if ($languages !== null) {
67
-				$this->appConfig->setAppValue ( 'languages', $languages );
68
-				return $this->l10n->t ( 'Saved' );
67
+				$this->appConfig->setAppValue('languages', $languages);
68
+				return $this->l10n->t('Saved');
69 69
 			} else {
70
-				throw new NotFoundException ( $this->l10n->t ( 'The languages are not specified in the correct format.' ) );
70
+				throw new NotFoundException($this->l10n->t('The languages are not specified in the correct format.'));
71 71
 			}
72 72
 		} );
73 73
 	}
Please login to merge, or discard this patch.
appinfo/routes.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,13 +18,13 @@
 block discarded – undo
18 18
  * it's instantiated in there
19 19
  */
20 20
 return [
21
-    'routes' => [
21
+	'routes' => [
22 22
 		['name' => 'Job#process', 'url' => '/', 'verb' => 'POST'],
23
-    	['name' => 'Job#deleteJob', 'url' => '/', 'verb' => 'DELETE'],
24
-    	['name' => 'Job#getAllJobs', 'url' => '/', 'verb' => 'GET'],
23
+		['name' => 'Job#deleteJob', 'url' => '/', 'verb' => 'DELETE'],
24
+		['name' => 'Job#getAllJobs', 'url' => '/', 'verb' => 'GET'],
25 25
 		['name' => 'Status#getStatus', 'url' => '/status', 'verb' => 'GET'],
26
-    	// settings
27
-    	['name' => 'AdminSettings#setSettings', 'url' => '/admin', 'verb' => 'POST'],
28
-    	['name' => 'AdminSettings#getSettings', 'url' => '/settings', 'verb' => 'GET']
29
-    ]
26
+		// settings
27
+		['name' => 'AdminSettings#setSettings', 'url' => '/admin', 'verb' => 'POST'],
28
+		['name' => 'AdminSettings#getSettings', 'url' => '/settings', 'verb' => 'GET']
29
+	]
30 30
 ];
31 31
\ No newline at end of file
Please login to merge, or discard this patch.