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

UserHooks   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getController() 0 6 1
A onUserDeleted() 0 4 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