Completed
Pull Request — gcconnex (#1540)
by Nick
16:17
created

Site   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A publicPages() 0 6 1
1
<?php
2
3
namespace ColdTrick\Analytics;
4
5
class Site {
6
	
7
	/**
8
	 * Add URLs to the allowed pages when in walled garden
9
	 *
10
	 * @param string $hook         the name of the hook
11
	 * @param string $type         the type of the hook
12
	 * @param array  $return_value current return value
13
	 * @param mixed  $params       supplied params
14
	 *
15
	 * @return array
16
	 */
17
	public static function publicPages($hook, $type, $return_value, $params) {
18
		
19
		$return_value[] = 'analytics/ajax_success';
20
		
21
		return $return_value;
22
	}
23
}
24