Completed
Push — master ( fc6227...6ab97c )
by Maxence
04:01
created
lib/Service/MembersService.php 2 patches
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
 	/**
103 103
 	 * @param string $circleUniqueId
104 104
 	 * @param $ident
105
-	 * @param $type
105
+	 * @param integer $type
106 106
 	 *
107
-	 * @return array
107
+	 * @return Member[]
108 108
 	 * @throws \Exception
109 109
 	 */
110 110
 	public function addMember($circleUniqueId, $ident, $type) {
@@ -228,8 +228,8 @@  discard block
 block discarded – undo
228 228
 	/**
229 229
 	 * Verify if a local account is valid.
230 230
 	 *
231
-	 * @param $ident
232
-	 * @param $type
231
+	 * @param string $ident
232
+	 * @param integer $type
233 233
 	 *
234 234
 	 * @throws NoUserException
235 235
 	 */
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 	 * Verify if a mail have a valid format.
251 251
 	 *
252 252
 	 * @param $ident
253
-	 * @param $type
253
+	 * @param integer $type
254 254
 	 *
255 255
 	 * @throws EmailAccountInvalidFormatException
256 256
 	 */
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
 	 * Verify if a contact exist in current user address books.
272 272
 	 *
273 273
 	 * @param $ident
274
-	 * @param $type
274
+	 * @param integer $type
275 275
 	 *
276 276
 	 * @throws NoUserException
277 277
 	 */
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
 	 * @param int $type
365 365
 	 * @param int $level
366 366
 	 *
367
-	 * @return array
367
+	 * @return Member[]
368 368
 	 * @throws \Exception
369 369
 	 */
370 370
 	public function levelMember($circleUniqueId, $name, $type, $level) {
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 	/**
404 404
 	 * @param Circle $circle
405 405
 	 * @param Member $member
406
-	 * @param $level
406
+	 * @param integer $level
407 407
 	 *
408 408
 	 * @throws \Exception
409 409
 	 */
@@ -454,9 +454,9 @@  discard block
 block discarded – undo
454 454
 	/**
455 455
 	 * @param string $circleUniqueId
456 456
 	 * @param string $name
457
-	 * @param $type
457
+	 * @param integer $type
458 458
 	 *
459
-	 * @return array
459
+	 * @return Member[]
460 460
 	 * @throws \Exception
461 461
 	 */
462 462
 	public function removeMember($circleUniqueId, $name, $type) {
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	 * @param Circle $circle
150 150
 	 * @param Member $member
151 151
 	 */
152
-	private function addMemberBasedOnItsType(Circle $circle, Member &$member) {
152
+	private function addMemberBasedOnItsType(Circle $circle, Member & $member) {
153 153
 		$this->addLocalMember($circle, $member);
154 154
 		$this->addEmailAddress($member);
155 155
 		$this->addContact($member);
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 			return;
281 281
 		}
282 282
 
283
-		$tmpContact = $this->userId . ':' . $ident;
283
+		$tmpContact = $this->userId.':'.$ident;
284 284
 		try {
285 285
 			MiscService::getContactData($tmpContact);
286 286
 		} catch (Exception $e) {
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
 	 *
408 408
 	 * @throws \Exception
409 409
 	 */
410
-	private function editMemberLevel(Circle $circle, Member &$member, $level) {
410
+	private function editMemberLevel(Circle $circle, Member & $member, $level) {
411 411
 		try {
412 412
 			$isMod = $circle->getHigherViewer();
413 413
 			$isMod->hasToBeModerator();
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 	 *
432 432
 	 * @throws \Exception
433 433
 	 */
434
-	private function switchOwner(Circle $circle, Member &$member) {
434
+	private function switchOwner(Circle $circle, Member & $member) {
435 435
 		try {
436 436
 			$isMod = $circle->getHigherViewer();
437 437
 			$isMod->hasToBeOwner();
Please login to merge, or discard this patch.
lib/Service/MiscService.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
127 127
 
128 128
 
129 129
 	/**
130
-	 * @param $ident
130
+	 * @param string $ident
131 131
 	 * @deprecated - move this somewhere else, no static if possible
132 132
 	 * @return mixed|string
133 133
 	 */
Please login to merge, or discard this patch.