Completed
Push — master ( 5c1713...deb9d0 )
by Julius
05:06 queued 02:41
created
lib/Controller/LabelController.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -30,12 +30,12 @@  discard block
 block discarded – undo
30 30
 
31 31
 class LabelController extends Controller {
32 32
 
33
-    private $labelService;
33
+	private $labelService;
34 34
 
35
-    public function __construct($appName, IRequest $request, LabelService $labelService) {
36
-        parent::__construct($appName, $request);
37
-        $this->labelService = $labelService;
38
-    }
35
+	public function __construct($appName, IRequest $request, LabelService $labelService) {
36
+		parent::__construct($appName, $request);
37
+		$this->labelService = $labelService;
38
+	}
39 39
 
40 40
 	/**
41 41
 	 * @NoAdminRequired
@@ -44,9 +44,9 @@  discard block
 block discarded – undo
44 44
 	 * @param $boardId
45 45
 	 * @return \OCP\AppFramework\Db\Entity
46 46
 	 */
47
-    public function create($title, $color, $boardId) {
48
-        return $this->labelService->create($title, $color, $boardId);
49
-    }
47
+	public function create($title, $color, $boardId) {
48
+		return $this->labelService->create($title, $color, $boardId);
49
+	}
50 50
 
51 51
 	/**
52 52
 	 * @NoAdminRequired
@@ -55,17 +55,17 @@  discard block
 block discarded – undo
55 55
 	 * @param $color
56 56
 	 * @return \OCP\AppFramework\Db\Entity
57 57
 	 */
58
-    public function update($id, $title, $color) {
59
-        return $this->labelService->update($id, $title, $color);
60
-    }
58
+	public function update($id, $title, $color) {
59
+		return $this->labelService->update($id, $title, $color);
60
+	}
61 61
 
62 62
 	/**
63 63
 	 * @NoAdminRequired
64 64
 	 * @param $labelId
65 65
 	 * @return \OCP\AppFramework\Db\Entity
66 66
 	 */
67
-    public function delete($labelId) {
68
-        return $this->labelService->delete($labelId);
69
-    }
67
+	public function delete($labelId) {
68
+		return $this->labelService->delete($labelId);
69
+	}
70 70
 
71 71
 }
Please login to merge, or discard this patch.
lib/Controller/StackController.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -31,31 +31,31 @@  discard block
 block discarded – undo
31 31
 
32 32
 
33 33
 class StackController extends Controller {
34
-    private $userId;
35
-    private $stackService;
36
-    public function __construct($appName, IRequest $request, StackService $cardService, $userId) {
37
-        parent::__construct($appName, $request);
38
-        $this->userId = $userId;
39
-        $this->stackService = $cardService;
40
-    }
34
+	private $userId;
35
+	private $stackService;
36
+	public function __construct($appName, IRequest $request, StackService $cardService, $userId) {
37
+		parent::__construct($appName, $request);
38
+		$this->userId = $userId;
39
+		$this->stackService = $cardService;
40
+	}
41 41
 
42 42
 	/**
43 43
 	 * @NoAdminRequired
44 44
 	 * @param $boardId
45 45
 	 * @return array
46 46
 	 */
47
-    public function index($boardId) {
48
-            return $this->stackService->findAll($boardId);
49
-    }
47
+	public function index($boardId) {
48
+			return $this->stackService->findAll($boardId);
49
+	}
50 50
 
51 51
 	/**
52 52
 	 * @NoAdminRequired
53 53
 	 * @param $boardId
54 54
 	 * @return array
55 55
 	 */
56
-    public function archived($boardId) {
57
-            return $this->stackService->findAllArchived($boardId);
58
-    }
56
+	public function archived($boardId) {
57
+			return $this->stackService->findAllArchived($boardId);
58
+	}
59 59
 
60 60
 	/**
61 61
 	 * @NoAdminRequired
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
 	 * @param int $order
65 65
 	 * @return \OCP\AppFramework\Db\Entity
66 66
 	 */
67
-    public function create($title, $boardId, $order = 999) {
68
-        return $this->stackService->create($title, $boardId, $order);
69
-    }
67
+	public function create($title, $boardId, $order = 999) {
68
+		return $this->stackService->create($title, $boardId, $order);
69
+	}
70 70
 
71 71
 	/**
72 72
 	 * @NoAdminRequired
@@ -76,16 +76,16 @@  discard block
 block discarded – undo
76 76
 	 * @param $order
77 77
 	 * @return \OCP\AppFramework\Db\Entity
78 78
 	 */
79
-    public function update($id, $title, $boardId, $order) {
80
-        return $this->stackService->update($id, $title, $boardId, $order);
81
-    }
79
+	public function update($id, $title, $boardId, $order) {
80
+		return $this->stackService->update($id, $title, $boardId, $order);
81
+	}
82 82
 
83 83
 	/**
84 84
 	 * @NoAdminRequired
85 85
 	 * @param $stackId
86 86
 	 * @return \OCP\AppFramework\Db\Entity
87 87
 	 */
88
-    public function delete($stackId) {
89
-        return $this->stackService->delete($stackId);
90
-    }
88
+	public function delete($stackId) {
89
+		return $this->stackService->delete($stackId);
90
+	}
91 91
 }
Please login to merge, or discard this patch.
lib/Controller/CardController.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -29,23 +29,23 @@  discard block
 block discarded – undo
29 29
 
30 30
 class CardController extends Controller {
31 31
 
32
-    private $userId;
33
-    private $cardService;
32
+	private $userId;
33
+	private $cardService;
34 34
 
35
-    public function __construct($appName, IRequest $request, CardService $cardService, $userId) {
36
-        parent::__construct($appName, $request);
37
-        $this->userId = $userId;
38
-        $this->cardService = $cardService;
39
-    }
35
+	public function __construct($appName, IRequest $request, CardService $cardService, $userId) {
36
+		parent::__construct($appName, $request);
37
+		$this->userId = $userId;
38
+		$this->cardService = $cardService;
39
+	}
40 40
 
41 41
 	/**
42 42
 	 * @NoAdminRequired
43 43
 	 * @param $cardId
44 44
 	 * @return \OCP\AppFramework\Db\Entity
45 45
 	 */
46
-    public function read($cardId) {
47
-        return $this->cardService->find($cardId);
48
-    }
46
+	public function read($cardId) {
47
+		return $this->cardService->find($cardId);
48
+	}
49 49
 
50 50
 	/**
51 51
 	 * @NoAdminRequired
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
 	 * @param $order
55 55
 	 * @return array
56 56
 	 */
57
-    public function reorder($cardId, $stackId, $order) {
58
-        return $this->cardService->reorder($cardId, $stackId, $order);
59
-    }
57
+	public function reorder($cardId, $stackId, $order) {
58
+		return $this->cardService->reorder($cardId, $stackId, $order);
59
+	}
60 60
 
61 61
 	/**
62 62
 	 * @NoAdminRequired
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
 	 * @param $title
65 65
 	 * @return \OCP\AppFramework\Db\Entity
66 66
 	 */
67
-    public function rename($cardId, $title) {
68
-        return $this->cardService->rename($cardId, $title);
69
-    }
67
+	public function rename($cardId, $title) {
68
+		return $this->cardService->rename($cardId, $title);
69
+	}
70 70
 
71 71
 	/**
72 72
 	 * @NoAdminRequired
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
 	 * @param int $order
77 77
 	 * @return \OCP\AppFramework\Db\Entity
78 78
 	 */
79
-    public function create($title, $stackId, $type, $order = 999) {
80
-        return $this->cardService->create($title, $stackId, $type, $order, $this->userId);
81
-    }
79
+	public function create($title, $stackId, $type, $order = 999) {
80
+		return $this->cardService->create($title, $stackId, $type, $order, $this->userId);
81
+	}
82 82
 
83 83
 	/**
84 84
 	 * @NoAdminRequired
@@ -90,53 +90,53 @@  discard block
 block discarded – undo
90 90
 	 * @param $description
91 91
 	 * @return \OCP\AppFramework\Db\Entity
92 92
 	 */
93
-    public function update($id, $title, $stackId, $type, $order, $description) {
94
-            return $this->cardService->update($id, $title, $stackId, $type, $order, $description, $this->userId);
95
-    }
93
+	public function update($id, $title, $stackId, $type, $order, $description) {
94
+			return $this->cardService->update($id, $title, $stackId, $type, $order, $description, $this->userId);
95
+	}
96 96
 
97 97
 	/**
98 98
 	 * @NoAdminRequired
99 99
 	 * @param $cardId
100 100
 	 * @return \OCP\AppFramework\Db\Entity
101 101
 	 */
102
-    public function delete($cardId) {
103
-        return $this->cardService->delete($cardId);
104
-    }
102
+	public function delete($cardId) {
103
+		return $this->cardService->delete($cardId);
104
+	}
105 105
 
106 106
 	/**
107 107
 	 * @NoAdminRequired
108 108
 	 * @param $cardId
109 109
 	 * @return \OCP\AppFramework\Db\Entity
110 110
 	 */
111
-    public function archive($cardId) {
112
-        return $this->cardService->archive($cardId);
113
-    }
111
+	public function archive($cardId) {
112
+		return $this->cardService->archive($cardId);
113
+	}
114 114
 
115 115
 	/**
116 116
 	 * @NoAdminRequired
117 117
 	 * @param $cardId
118 118
 	 * @return \OCP\AppFramework\Db\Entity
119 119
 	 */
120
-    public function unarchive($cardId) {
121
-        return $this->cardService->unarchive($cardId);
122
-    }
120
+	public function unarchive($cardId) {
121
+		return $this->cardService->unarchive($cardId);
122
+	}
123 123
 
124 124
 	/**
125 125
 	 * @NoAdminRequired
126 126
 	 * @param $cardId
127 127
 	 * @param $labelId
128 128
 	 */
129
-    public function assignLabel($cardId, $labelId) {
130
-        $this->cardService->assignLabel($cardId, $labelId);
131
-    }
129
+	public function assignLabel($cardId, $labelId) {
130
+		$this->cardService->assignLabel($cardId, $labelId);
131
+	}
132 132
 
133 133
 	/**
134 134
 	 * @NoAdminRequired
135 135
 	 * @param $cardId
136 136
 	 * @param $labelId
137 137
 	 */
138
-    public function removeLabel($cardId, $labelId) {
139
-        $this->cardService->removeLabel($cardId, $labelId);
140
-    }
138
+	public function removeLabel($cardId, $labelId) {
139
+		$this->cardService->removeLabel($cardId, $labelId);
140
+	}
141 141
 
142 142
 }
Please login to merge, or discard this patch.