Completed
Push — master ( c47ca2...c47ca2 )
by Maxence
12s
created
lib/Service/EventsService.php 2 patches
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -712,7 +712,7 @@  discard block
 block discarded – undo
712 712
 	 * generateEvent()
713 713
 	 * Create an Activity Event with the basic settings for the app.
714 714
 	 *
715
-	 * @param $type
715
+	 * @param string $type
716 716
 	 *
717 717
 	 * @return \OCP\Activity\IEvent
718 718
 	 */
@@ -750,6 +750,9 @@  discard block
 block discarded – undo
750 750
 		}
751 751
 	}
752 752
 	
753
+	/**
754
+	 * @param string $context
755
+	 */
753 756
 	private function dispatch($context, $arguments) {
754 757
 		\OC::$server->getEventDispatcher()->dispatch($context, new GenericEvent(null,$arguments));
755 758
 	}
Please login to merge, or discard this patch.
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 				$this->publishEvent($event, [$user]);
109 109
 			}
110 110
 		);
111
-		$this->dispatch('\OCA\Circles::onCircleCreation',  ['circle' => $circle]);
111
+		$this->dispatch('\OCA\Circles::onCircleCreation', ['circle' => $circle]);
112 112
 	}
113 113
 
114 114
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 				$circle->getUniqueId(), Member::LEVEL_MEMBER, true
135 135
 			)
136 136
 		);
137
-		$this->dispatch('\OCA\Circles::onCircleDestruction',  ['circle' => $circle]);
137
+		$this->dispatch('\OCA\Circles::onCircleDestruction', ['circle' => $circle]);
138 138
 	}
139 139
 
140 140
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
 					  )
179 179
 				  )
180 180
 		);
181
-		$this->dispatch('\OCA\Circles::onMemberNew',  ['circle' => $circle, 'member' => $member]);
181
+		$this->dispatch('\OCA\Circles::onMemberNew', ['circle' => $circle, 'member' => $member]);
182 182
 	}
183 183
 
184 184
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 					  )
235 235
 				  )
236 236
 		);
237
-		$this->dispatch('\OCA\Circles::onMemberInvited',  ['circle' => $circle, 'member' => $member]);
237
+		$this->dispatch('\OCA\Circles::onMemberInvited', ['circle' => $circle, 'member' => $member]);
238 238
 	}
239 239
 
240 240
 
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
 					  )
267 267
 				  )
268 268
 		);
269
-		$this->dispatch('\OCA\Circles::onMemberRequesting',  ['circle' => $circle, 'member' => $member]);
269
+		$this->dispatch('\OCA\Circles::onMemberRequesting', ['circle' => $circle, 'member' => $member]);
270 270
 	}
271 271
 
272 272
 
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
 					  )
300 300
 				  )
301 301
 		);
302
-		$this->dispatch('\OCA\Circles::onMemberLeaving',  ['circle' => $circle, 'member' => $member]);
302
+		$this->dispatch('\OCA\Circles::onMemberLeaving', ['circle' => $circle, 'member' => $member]);
303 303
 	}
304 304
 
305 305
 
@@ -332,7 +332,7 @@  discard block
 block discarded – undo
332 332
 		$this->membersRequest->avoidDuplicateMembers($mods, [$member]);
333 333
 
334 334
 		$this->publishEvent($event, $mods);
335
-		$this->dispatch('\OCA\Circles::onMemberLevel',  ['circle' => $circle, 'member' => $member]);
335
+		$this->dispatch('\OCA\Circles::onMemberLevel', ['circle' => $circle, 'member' => $member]);
336 336
 	}
337 337
 
338 338
 
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
 				$circle->getUniqueId(), Member::LEVEL_MEMBER, true
358 358
 			)
359 359
 		);
360
-		$this->dispatch('\OCA\Circles::onMemberOwner',  ['circle' => $circle, 'member' => $member]);
360
+		$this->dispatch('\OCA\Circles::onMemberOwner', ['circle' => $circle, 'member' => $member]);
361 361
 	}
362 362
 
363 363
 
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 		);
391 391
 
392 392
 		$this->publishEvent($event, $mods);
393
-		$this->dispatch('\OCA\Circles::onGroupLink',  ['circle' => $circle, 'group' => $group]);
393
+		$this->dispatch('\OCA\Circles::onGroupLink', ['circle' => $circle, 'group' => $group]);
394 394
 	}
395 395
 
396 396
 
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
 		);
424 424
 
425 425
 		$this->publishEvent($event, $mods);
426
-		$this->dispatch('\OCA\Circles::onGroupUnlink',  ['circle' => $circle, 'group' => $group]);
426
+		$this->dispatch('\OCA\Circles::onGroupUnlink', ['circle' => $circle, 'group' => $group]);
427 427
 	}
428 428
 
429 429
 
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
 		);
457 457
 
458 458
 		$this->publishEvent($event, $mods);
459
-		$this->dispatch('\OCA\Circles::onGroupLevel',  ['circle' => $circle, 'group' => $group]);
459
+		$this->dispatch('\OCA\Circles::onGroupLevel', ['circle' => $circle, 'group' => $group]);
460 460
 	}
461 461
 
462 462
 
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 			$link->getCircleId(), Member::LEVEL_MODERATOR, true
482 482
 		)
483 483
 		);
484
-		$this->dispatch('\OCA\Circles::onLinkRequestSent',  ['circle' => $circle, 'link' => $link]);
484
+		$this->dispatch('\OCA\Circles::onLinkRequestSent', ['circle' => $circle, 'link' => $link]);
485 485
 	}
486 486
 
487 487
 
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
 			$link->getCircleId(), Member::LEVEL_MODERATOR, true
507 507
 		)
508 508
 		);
509
-		$this->dispatch('\OCA\Circles::onLinkRequestReceived',  ['circle' => $circle, 'link' => $link]);
509
+		$this->dispatch('\OCA\Circles::onLinkRequestReceived', ['circle' => $circle, 'link' => $link]);
510 510
 	}
511 511
 
512 512
 
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
 			$link->getCircleId(), Member::LEVEL_MODERATOR, true
532 532
 		)
533 533
 		);
534
-		$this->dispatch('\OCA\Circles::onLinkRequestRejected',  ['circle' => $circle, 'link' => $link]);
534
+		$this->dispatch('\OCA\Circles::onLinkRequestRejected', ['circle' => $circle, 'link' => $link]);
535 535
 	}
536 536
 
537 537
 
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
 			$link->getCircleId(), Member::LEVEL_MODERATOR, true
557 557
 		)
558 558
 		);
559
-		$this->dispatch('\OCA\Circles::onLinkRequestCanceled',  ['circle' => $circle, 'link' => $link]);
559
+		$this->dispatch('\OCA\Circles::onLinkRequestCanceled', ['circle' => $circle, 'link' => $link]);
560 560
 	}
561 561
 
562 562
 
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
 			$link->getCircleId(), Member::LEVEL_MODERATOR, true
582 582
 		)
583 583
 		);
584
-		$this->dispatch('\OCA\Circles::onLinkRequestAccepted',  ['circle' => $circle, 'link' => $link]);
584
+		$this->dispatch('\OCA\Circles::onLinkRequestAccepted', ['circle' => $circle, 'link' => $link]);
585 585
 	}
586 586
 
587 587
 
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
 			$link->getCircleId(), Member::LEVEL_MODERATOR, true
607 607
 		)
608 608
 		);
609
-		$this->dispatch('\OCA\Circles::onLinkRequestAccepting',  ['circle' => $circle, 'link' => $link]);
609
+		$this->dispatch('\OCA\Circles::onLinkRequestAccepting', ['circle' => $circle, 'link' => $link]);
610 610
 	}
611 611
 
612 612
 
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
 			$link->getCircleId(), Member::LEVEL_MODERATOR, true
632 632
 		)
633 633
 		);
634
-		$this->dispatch('\OCA\Circles::onLinkUp',  ['circle' => $circle, 'link' => $link]);
634
+		$this->dispatch('\OCA\Circles::onLinkUp', ['circle' => $circle, 'link' => $link]);
635 635
 	}
636 636
 
637 637
 
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
 			$link->getCircleId(), Member::LEVEL_MODERATOR, true
657 657
 		)
658 658
 		);
659
-		$this->dispatch('\OCA\Circles::onLinkDown',  ['circle' => $circle, 'link' => $link]);
659
+		$this->dispatch('\OCA\Circles::onLinkDown', ['circle' => $circle, 'link' => $link]);
660 660
 	}
661 661
 
662 662
 
@@ -693,7 +693,7 @@  discard block
 block discarded – undo
693 693
 			$link->getCircleId(), Member::LEVEL_MODERATOR, true
694 694
 		)
695 695
 		);
696
-		$this->dispatch('\OCA\Circles::onLinkRemove',  ['circle' => $circle, 'link' => $link]);
696
+		$this->dispatch('\OCA\Circles::onLinkRemove', ['circle' => $circle, 'link' => $link]);
697 697
 	}
698 698
 
699 699
 	/**
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
 	 * @param Circle $circle
705 705
 	 */
706 706
 	public function onSettingsChange(Circle $circle) {
707
-		$this->dispatch('\OCA\Circles::onSettingsChange',  ['circle' => $circle]);
707
+		$this->dispatch('\OCA\Circles::onSettingsChange', ['circle' => $circle]);
708 708
 	}
709 709
 
710 710
 
@@ -751,7 +751,7 @@  discard block
 block discarded – undo
751 751
 	}
752 752
 	
753 753
 	private function dispatch($context, $arguments) {
754
-		\OC::$server->getEventDispatcher()->dispatch($context, new GenericEvent(null,$arguments));
754
+		\OC::$server->getEventDispatcher()->dispatch($context, new GenericEvent(null, $arguments));
755 755
 	}
756 756
 
757 757
 }
758 758
\ No newline at end of file
Please login to merge, or discard this patch.