Code Duplication    Length = 12-12 lines in 2 locations

SandCage.php 2 locations

@@ 37-48 (lines=12) @@
34
	* @param array $payload values to send
35
	* @param string $callback_endpoint to send the callback to
36
	*/ 
37
	public function scheduleFiles($payload, $callback_endpoint='') {
38
39
		$this->post = true;
40
		$this->post_fields = array('key'=>$this->sandcage_api_key) + $payload;
41
42
		if ($callback_endpoint != '') {
43
			$this->post_fields['callback_url'] = $callback_endpoint;
44
		}
45
46
		$this->call($this->sandcage_api_endpoint_base . 'schedule-tasks');
47
48
	}
49
50
	/** 
51
	* The "destroy-files" service
@@ 55-66 (lines=12) @@
52
	* @param array $payload values to send
53
	* @param string $callback_endpoint to send the callback to
54
	*/ 
55
	public function destroyFiles($payload, $callback_endpoint='') {
56
57
		$this->post = true;
58
		$this->post_fields = array('key'=>$this->sandcage_api_key) + $payload;
59
60
		if ($callback_endpoint != '') {
61
			$this->post_fields['callback_url'] = $callback_endpoint;
62
		}
63
64
		$this->call($this->sandcage_api_endpoint_base . 'destroy-files');
65
66
	}
67
68
	/** 
69
	* The "list-files" service