Completed
Pull Request — master (#6884)
by Georg
12:50
created
apps/dav/appinfo/routes.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
  */
23 23
 
24 24
 return [
25
-	'routes' => [
26
-		['name' => 'birthday_calendar#enable', 'url' => '/enableBirthdayCalendar', 'verb' => 'POST'],
27
-		['name' => 'birthday_calendar#disable', 'url' => '/disableBirthdayCalendar', 'verb' => 'POST'],
28
-	]
25
+    'routes' => [
26
+        ['name' => 'birthday_calendar#enable', 'url' => '/enableBirthdayCalendar', 'verb' => 'POST'],
27
+        ['name' => 'birthday_calendar#disable', 'url' => '/disableBirthdayCalendar', 'verb' => 'POST'],
28
+    ]
29 29
 ];
Please login to merge, or discard this patch.
apps/dav/lib/Controller/BirthdayCalendarController.php 2 patches
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -32,50 +32,50 @@
 block discarded – undo
32 32
 
33 33
 class BirthdayCalendarController extends Controller {
34 34
 
35
-	/**
36
-	 * @var IDBConnection
37
-	 */
38
-	protected $db;
35
+    /**
36
+     * @var IDBConnection
37
+     */
38
+    protected $db;
39 39
 
40
-	/**
41
-	 * @var IConfig
42
-	 */
43
-	protected $config;
40
+    /**
41
+     * @var IConfig
42
+     */
43
+    protected $config;
44 44
 
45
-	/**
46
-	 * BirthdayCalendar constructor.
47
-	 *
48
-	 * @param string $appName
49
-	 * @param IRequest $request
50
-	 * @param IDBConnection $db
51
-	 * @param IConfig $config
52
-	 */
53
-	public function __construct($appName, IRequest $request,
54
-								IDBConnection $db, IConfig $config){
55
-		parent::__construct($appName, $request);
56
-		$this->db = $db;
57
-		$this->config = $config;
58
-	}
45
+    /**
46
+     * BirthdayCalendar constructor.
47
+     *
48
+     * @param string $appName
49
+     * @param IRequest $request
50
+     * @param IDBConnection $db
51
+     * @param IConfig $config
52
+     */
53
+    public function __construct($appName, IRequest $request,
54
+                                IDBConnection $db, IConfig $config){
55
+        parent::__construct($appName, $request);
56
+        $this->db = $db;
57
+        $this->config = $config;
58
+    }
59 59
 
60
-	/**
61
-	 * @return Response
62
-	 */
63
-	public function enable() {
64
-		$this->config->setAppValue($this->appName, 'generateBirthdayCalendar', 'yes');
60
+    /**
61
+     * @return Response
62
+     */
63
+    public function enable() {
64
+        $this->config->setAppValue($this->appName, 'generateBirthdayCalendar', 'yes');
65 65
 
66
-		// TODO schedule background job to regenerate
66
+        // TODO schedule background job to regenerate
67 67
 
68
-		return new JSONResponse([]);
69
-	}
68
+        return new JSONResponse([]);
69
+    }
70 70
 
71
-	/**
72
-	 * @return Response
73
-	 */
74
-	public function disable() {
75
-		$this->config->setAppValue($this->appName, 'generateBirthdayCalendar', 'no');
71
+    /**
72
+     * @return Response
73
+     */
74
+    public function disable() {
75
+        $this->config->setAppValue($this->appName, 'generateBirthdayCalendar', 'no');
76 76
 
77
-		// TODO delete all birthday calendars
77
+        // TODO delete all birthday calendars
78 78
 
79
-		return new JSONResponse([]);
80
-	}
79
+        return new JSONResponse([]);
80
+    }
81 81
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 	 * @param IConfig $config
52 52
 	 */
53 53
 	public function __construct($appName, IRequest $request,
54
-								IDBConnection $db, IConfig $config){
54
+								IDBConnection $db, IConfig $config) {
55 55
 		parent::__construct($appName, $request);
56 56
 		$this->db = $db;
57 57
 		$this->config = $config;
Please login to merge, or discard this patch.
apps/dav/lib/Settings/CalDAVSettings.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -29,41 +29,41 @@
 block discarded – undo
29 29
 
30 30
 class CalDAVSettings implements ISettings {
31 31
 
32
-	/** @var IConfig */
33
-	private $config;
32
+    /** @var IConfig */
33
+    private $config;
34 34
 
35
-	/**
36
-	 * CalDAVSettings constructor.
37
-	 *
38
-	 * @param IConfig $config
39
-	 */
40
-	public function __construct(IConfig $config) {
41
-		$this->config = $config;
42
-	}
35
+    /**
36
+     * CalDAVSettings constructor.
37
+     *
38
+     * @param IConfig $config
39
+     */
40
+    public function __construct(IConfig $config) {
41
+        $this->config = $config;
42
+    }
43 43
 
44
-	/**
45
-	 * @return TemplateResponse
46
-	 */
47
-	public function getForm() {
48
-		$parameters = [
49
-			'send_invitations' => $this->config->getAppValue('dav', 'sendInvitations', 'yes'),
50
-			'generate_birthday_calendar' => $this->config->getAppValue('dav', 'generateBirthdayCalendar', 'yes'),
51
-		];
44
+    /**
45
+     * @return TemplateResponse
46
+     */
47
+    public function getForm() {
48
+        $parameters = [
49
+            'send_invitations' => $this->config->getAppValue('dav', 'sendInvitations', 'yes'),
50
+            'generate_birthday_calendar' => $this->config->getAppValue('dav', 'generateBirthdayCalendar', 'yes'),
51
+        ];
52 52
 
53
-		return new TemplateResponse('dav', 'settings-admin-caldav', $parameters);
54
-	}
53
+        return new TemplateResponse('dav', 'settings-admin-caldav', $parameters);
54
+    }
55 55
 
56
-	/**
57
-	 * @return string
58
-	 */
59
-	public function getSection() {
60
-		return 'additional';
61
-	}
56
+    /**
57
+     * @return string
58
+     */
59
+    public function getSection() {
60
+        return 'additional';
61
+    }
62 62
 
63
-	/**
64
-	 * @return int
65
-	 */
66
-	public function getPriority() {
67
-		return 20;
68
-	}
63
+    /**
64
+     * @return int
65
+     */
66
+    public function getPriority() {
67
+        return 20;
68
+    }
69 69
 }
Please login to merge, or discard this patch.