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

Site::publicPages()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 4
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
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