Passed
Pull Request — master (#1339)
by René
05:25 queued 01:34
created
lib/Model/Acl.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -43,15 +43,15 @@
 block discarded – undo
43 43
  * @package OCA\Polls\Model\Acl
44 44
  */
45 45
 class Acl implements JsonSerializable {
46
-	public const PERMISSION_VIEW ='view';
47
-	public const PERMISSION_EDIT ='edit';
48
-	public const PERMISSION_DELETE ='delete';
49
-	public const PERMISSION_COMMENT ='comment';
50
-	public const PERMISSION_SUBSCRIBE ='subscribe';
51
-	public const PERMISSION_VOTE ='vote';
52
-	public const PERMISSION_SEE_RESULTS ='seeResults';
53
-	public const PERMISSION_SEE_USERNAMES ='seeUserNames';
54
-	public const PERMISSION_TAKE_OVER ='takeOver';
46
+	public const PERMISSION_VIEW = 'view';
47
+	public const PERMISSION_EDIT = 'edit';
48
+	public const PERMISSION_DELETE = 'delete';
49
+	public const PERMISSION_COMMENT = 'comment';
50
+	public const PERMISSION_SUBSCRIBE = 'subscribe';
51
+	public const PERMISSION_VOTE = 'vote';
52
+	public const PERMISSION_SEE_RESULTS = 'seeResults';
53
+	public const PERMISSION_SEE_USERNAMES = 'seeUserNames';
54
+	public const PERMISSION_TAKE_OVER = 'takeOver';
55 55
 
56 56
 	/** @var IUserManager */
57 57
 	private $userManager;
Please login to merge, or discard this patch.
lib/Service/CommentService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 	 * Get comments
58 58
 	 * Read all comments of a poll based on the poll id and return list as array
59 59
 	 */
60
-	public function list(?int $pollId = 0, string $token = ''): array {
60
+	public function list(?int $pollId = 0, string $token = '') : array {
61 61
 		if ($token) {
62 62
 			$this->acl->setToken($token);
63 63
 		} else {
Please login to merge, or discard this patch.
lib/Service/VoteService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
 	/**
73 73
 	 * Read all votes of a poll based on the poll id and return list as array
74 74
 	 */
75
-	public function list(?int $pollId = 0, string $token = ''): array {
75
+	public function list(?int $pollId = 0, string $token = '') : array {
76 76
 		if ($token) {
77 77
 			$this->acl->setToken($token);
78 78
 		} else {
Please login to merge, or discard this patch.
lib/Service/OptionService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
 	 *
70 70
 	 * @psalm-return array<array-key, Option>
71 71
 	 */
72
-	public function list(?int $pollId = 0, string $token = ''): array {
72
+	public function list(?int $pollId = 0, string $token = '') : array {
73 73
 		if ($token) {
74 74
 			$this->acl->setToken($token);
75 75
 		} else {
Please login to merge, or discard this patch.