removed unnecessary request calls via WS

This code has been written 6 times. You should create a function to store these messages in a file instead of doing copy/paste.

Here is a function I made by mixing your redundant code:
```
public function logDebugContent($url, $result, $data = array(), $method = null)
{
	$debug_content = '<h2 style="padding: 10px 0 10px 0; display: block; border-top: solid 2px #000000; border-bottom: solid 2px #000000;">
		['.date('Y-m-d H:i:s').']</h2><h2>\''.Tools::safeOutput($url).'\'
		</h2><h3>';
	if (isset($method))
		'Method: '.$method.', ';
	$debug_content .= 'Params:</h3><pre>';
	$debug_content .= print_r($data, true);
	$debug_content .= '</pre><br /><h3>Response:</h3><pre>';
	$debug_content .= print_r($result, true);
	$debug_content .= '</pre>';
	$debug_filename = Configuration::get(self::CONFIG_DEBUG_FILENAME);
	$current_content = Tools::file_get_contents(_PS_MODULE_DIR_.'textmaster/'.$debug_filename);
	@file_put_contents(_PS_MODULE_DIR_.'textmaster/'.$debug_filename, $debug_content.$current_content, LOCK_EX);
}
```