Passed
Pull Request — master (#966)
by René
03:56
created
lib/Controller/OptionApiController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
 		parent::__construct($appName,
56 56
 			$request,
57 57
 			'POST, PUT, GET, DELETE',
58
-            'Authorization, Content-Type, Accept',
59
-            1728000);
58
+			'Authorization, Content-Type, Accept',
59
+			1728000);
60 60
 		$this->optionService = $optionService;
61 61
 	}
62 62
 
Please login to merge, or discard this patch.
lib/Controller/CommentApiController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@
 block discarded – undo
58 58
 		parent::__construct($appName,
59 59
 			$request,
60 60
 			'POST, GET, DELETE',
61
-            'Authorization, Content-Type, Accept',
62
-            1728000);
61
+			'Authorization, Content-Type, Accept',
62
+			1728000);
63 63
 		$this->commentService = $commentService;
64 64
 		$this->urlGenerator = $urlGenerator;
65 65
 	}
Please login to merge, or discard this patch.
lib/Service/CommentService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	 * @return Array
90 90
 	 */
91 91
 	public function list($pollId = 0, $token = '') {
92
-		$this->logger->debug('call commentService->get(' . $pollId . ', '. $token . ')');
92
+		$this->logger->debug('call commentService->get(' . $pollId . ', ' . $token . ')');
93 93
 
94 94
 		if (!$this->acl->checkAuthorize($pollId, $token)) {
95 95
 			throw new NotAuthorizedException;
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 	 * @return Comment
115 115
 	 */
116 116
 	public function add($message, $pollId = 0, $token = '') {
117
-		$this->logger->debug('call commentService->write("' . $message . '", ' .$pollId . ', "' .$token . '")');
117
+		$this->logger->debug('call commentService->write("' . $message . '", ' . $pollId . ', "' . $token . '")');
118 118
 
119 119
 		if (!$this->acl->checkAuthorize($pollId, $token)) {
120 120
 			throw new NotAuthorizedException;
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 			}
135 135
 
136 136
 		} catch (\Exception $e) {
137
-			$this->logger->alert('Error writing comment for pollId ' . $pollId . ': '. $e);
137
+			$this->logger->alert('Error writing comment for pollId ' . $pollId . ': ' . $e);
138 138
 			throw new NotAuthorizedException($e);
139 139
 		}
140 140
 	}
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	 */
150 150
 	public function delete($commentId, $token = '') {
151 151
 
152
-		$this->logger->debug('call commentService->delete(' . $commentId . ', "' .$token . '")');
152
+		$this->logger->debug('call commentService->delete(' . $commentId . ', "' . $token . '")');
153 153
 		$this->comment = $this->commentMapper->find($commentId);
154 154
 		if (!$this->acl->checkAuthorize($this->comment->getPollId(), $token) || $this->comment->getUserId() !== $this->acl->getUserId()) {
155 155
 			throw new NotAuthorizedException;
Please login to merge, or discard this patch.
lib/Service/OptionService.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 use OCA\Polls\Service\LogService;
40 40
 use OCA\Polls\Model\Acl;
41 41
 
42
-class OptionService  {
42
+class OptionService {
43 43
 
44 44
 	private $userId;
45 45
 	private $optionMapper;
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 	 * @return array Array of Option objects
120 120
 	 */
121 121
 	public function list($pollId = 0, $token = '') {
122
-		$this->logger->debug('call optionService->list(' . $pollId . ', '. $token . ')');
122
+		$this->logger->debug('call optionService->list(' . $pollId . ', ' . $token . ')');
123 123
 
124 124
 		if (!$this->acl->checkAuthorize($pollId, $token)) {
125 125
 			throw new NotAuthorizedException;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 use OCA\Polls\Service\LogService;
40 40
 use OCA\Polls\Model\Acl;
41 41
 
42
-class OptionService  {
42
+class OptionService {
43 43
 
44 44
 	private $userId;
45 45
 	private $optionMapper;
Please login to merge, or discard this patch.