@@ -21,8 +21,7 @@ discard block |
||
21 | 21 | * UsageApi constructor. |
22 | 22 | * @param $data |
23 | 23 | */ |
24 | - public function __construct($data) |
|
25 | - { |
|
24 | + public function __construct($data) { |
|
26 | 25 | $this->_params['os_type'] = urlencode($data['os']); |
27 | 26 | $this->_params['server_type'] = urlencode($data['server']); |
28 | 27 | $this->_params['php_version'] = urlencode($data['phpver']); |
@@ -38,8 +37,7 @@ discard block |
||
38 | 37 | /** |
39 | 38 | * |
40 | 39 | */ |
41 | - public function send() |
|
42 | - { |
|
40 | + public function send() { |
|
43 | 41 | $fields_string = $this->getFieldsString(); |
44 | 42 | |
45 | 43 | $ch = curl_init(); |
@@ -58,8 +56,7 @@ discard block |
||
58 | 56 | /** |
59 | 57 | * @return string |
60 | 58 | */ |
61 | - protected function getFieldsString() |
|
62 | - { |
|
59 | + protected function getFieldsString() { |
|
63 | 60 | $fields_string = ''; |
64 | 61 | foreach ($this->_params as $key => $value) { |
65 | 62 | $fields_string .= $key . '=' . $value . '&'; |