Passed
Branch master (04fbc2)
by Sand
02:02
created
SandCage.php 2 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
 	}
28 28
 
29 29
 	/** 
30
-	* The "schedule-tasks" service
31
-	* @param array $payload values to send
32
-	* @param string $callback_endpoint to send the callback to
33
-	*/ 
30
+	 * The "schedule-tasks" service
31
+	 * @param array $payload values to send
32
+	 * @param string $callback_endpoint to send the callback to
33
+	 */ 
34 34
 	public function scheduleFiles($payload, $callback_endpoint='') {
35 35
 
36 36
 		$this->post = true;
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
 	}
46 46
 
47 47
 	/** 
48
-	* The "destroy-files" service
49
-	* @param array $payload values to send
50
-	* @param string $callback_endpoint to send the callback to
51
-	*/ 
48
+	 * The "destroy-files" service
49
+	 * @param array $payload values to send
50
+	 * @param string $callback_endpoint to send the callback to
51
+	 */ 
52 52
 	public function destroyFiles($payload, $callback_endpoint='') {
53 53
 
54 54
 		$this->post = true;
@@ -63,9 +63,9 @@  discard block
 block discarded – undo
63 63
 	}
64 64
 
65 65
 	/** 
66
-	* The "list-files" service
67
-	* @param array $payload values to send
68
-	*/ 
66
+	 * The "list-files" service
67
+	 * @param array $payload values to send
68
+	 */ 
69 69
 	public function listFiles($payload) {
70 70
 
71 71
 		$this->post = true;
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
 	}
77 77
 
78 78
 	/** 
79
-	* The "get-info" service
80
-	* @param array $payload values to send
81
-	*/ 
79
+	 * The "get-info" service
80
+	 * @param array $payload values to send
81
+	 */ 
82 82
 	public function getInfo($payload) {
83 83
 
84 84
 		$this->post = true;
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
 	}
90 90
 
91 91
 	/** 
92
-	* Send a requst using cURL 
93
-	* @param string $service_endpoint to request
94
-	*/ 
92
+	 * Send a requst using cURL 
93
+	 * @param string $service_endpoint to request
94
+	 */ 
95 95
 	public function call($service_endpoint) {
96 96
 
97 97
 		// Initialize the cURL session
@@ -130,9 +130,9 @@  discard block
 block discarded – undo
130 130
 	}
131 131
 
132 132
 	/** 
133
-	* Return the HTTP status of the call
134
-	* @return array or FALSE on failure 
135
-	*/ 
133
+	 * Return the HTTP status of the call
134
+	 * @return array or FALSE on failure 
135
+	 */ 
136 136
 	public function getHttpStatus() {
137 137
 
138 138
 		return $this->status;
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
 	}
141 141
 
142 142
 	/** 
143
-	* Return the HTTP status of the call
144
-	* @return array or FALSE on failure  
145
-	*/ 
143
+	 * Return the HTTP status of the call
144
+	 * @return array or FALSE on failure  
145
+	 */ 
146 146
 	public function getResponse() {
147 147
 
148 148
 		return $this->response;
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 	protected $status;
20 20
 	protected $response;
21 21
 
22
-	public function __construct($sandcage_api_key=null) {
22
+	public function __construct($sandcage_api_key = null) {
23 23
 
24 24
 		if (!is_null($sandcage_api_key)) {
25 25
 			$this->sandcage_api_key = $sandcage_api_key;
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	* @param array $payload values to send
35 35
 	* @param string $callback_endpoint to send the callback to
36 36
 	*/ 
37
-	public function scheduleFiles($payload, $callback_endpoint='') {
37
+	public function scheduleFiles($payload, $callback_endpoint = '') {
38 38
 
39 39
 		$this->post = true;
40 40
 		$this->post_fields = array('key'=>$this->sandcage_api_key) + $payload;
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 	* @param array $payload values to send
53 53
 	* @param string $callback_endpoint to send the callback to
54 54
 	*/ 
55
-	public function destroyFiles($payload, $callback_endpoint='') {
55
+	public function destroyFiles($payload, $callback_endpoint = '') {
56 56
 
57 57
 		$this->post = true;
58 58
 		$this->post_fields = array('key'=>$this->sandcage_api_key) + $payload;
Please login to merge, or discard this patch.