Completed
Push — master ( 5a8cbd...82d575 )
by Maxence
06:28 queued 02:55
created

UserHooks::onUserDeleted()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
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 onUserDeleted($params) {
20
		self::getController()
21
			->onUserDeleted($params);
22
	}
23
24
}
25
26