Passed
Pull Request — master (#966)
by René
04:02
created
lib/Service/CommentService.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
 	 * @return Array
98 98
 	 */
99 99
 	public function get($pollId = 0, $token = '') {
100
-		$this->logger->alert('call commentService->get(' . $pollId . ', '. $token . ')');
100
+		$this->logger->alert('call commentService->get(' . $pollId . ', ' . $token . ')');
101 101
 
102 102
 		try {
103 103
 			if ($token && !\OC::$server->getUserSession()->isLoggedIn()) {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 			}
115 115
 
116 116
 		} catch (Exception $e) {
117
-			$this->logger->alert('Error reading comments for pollId ' . $pollId . ': '. $e);
117
+			$this->logger->alert('Error reading comments for pollId ' . $pollId . ': ' . $e);
118 118
 			throw new DoesNotExistException($e);
119 119
 		}
120 120
 
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	 * @return Comment
130 130
 	 */
131 131
 	public function add($message, $pollId = 0, $token = '') {
132
-		$this->logger->debug('call commentService->write("' . $message . '", ' .$pollId . ', "' .$token . '")');
132
+		$this->logger->debug('call commentService->write("' . $message . '", ' . $pollId . ', "' . $token . '")');
133 133
 		try {
134 134
 			if ($token && !\OC::$server->getUserSession()->isLoggedIn()) {
135 135
 				$this->acl->setToken($token);
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 			}
151 151
 
152 152
 		} catch (Exception $e) {
153
-			$this->logger->alert('Error wrinting comment for pollId ' . $pollId . ': '. $e);
153
+			$this->logger->alert('Error wrinting comment for pollId ' . $pollId . ': ' . $e);
154 154
 			throw new Exception($e);
155 155
 		}
156 156
 	}
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 	 * @return Comment
165 165
 	 */
166 166
 	public function delete($commentId, $token = '') {
167
-		$this->logger->debug('call commentService->delete(' . $commentId . ', "' .$token . '")');
167
+		$this->logger->debug('call commentService->delete(' . $commentId . ', "' . $token . '")');
168 168
 		try {
169 169
 			$this->comment = $this->commentMapper->find($commentId);
170 170
 
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
@@ -53,8 +53,8 @@
 block discarded – undo
53 53
 		parent::__construct($appName,
54 54
 			$request,
55 55
 			'POST, GET, DELETE',
56
-            'Authorization, Content-Type, Accept',
57
-            1728000);
56
+			'Authorization, Content-Type, Accept',
57
+			1728000);
58 58
 		$this->commentService = $commentService;
59 59
 	}
60 60
 
Please login to merge, or discard this patch.