Completed
Push — master ( b60009...a65047 )
by Maxence
03:07
created

UserHooks::getController()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
4
namespace OCA\Circles\Hooks;
5
6
use OCA\Circles\AppInfo\Application;
7
8
9
class UserHooks {
10
11
	static protected function getController() {
0 ignored issues
show
Coding Style introduced by
As per PSR2, the static declaration should come after the visibility declaration.
Loading history...
12
		$app = new Application();
13
14
		return $app->getContainer()
15
				   ->query('UserEvents');
16
	}
17
18
19
	public static function onUserCreated($params) {
20
		self::getController()
21
			->onUserCreated($params);
22
	}
23
24
25
	public static function onUserDeleted($params) {
26
		self::getController()
27
			->onUserDeleted($params);
28
	}
29
30
}
31
32