@@ -42,6 +42,11 @@ |
||
42 | 42 | return json_decode($systems->getBody()); |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param string $url |
|
47 | + * |
|
48 | + * @return string |
|
49 | + */ |
|
45 | 50 | private function prepareUrl($url) |
46 | 51 | { |
47 | 52 | $preparedUrl = str_replace("#project#", $this->project, $url); |
@@ -13,6 +13,9 @@ |
||
13 | 13 | return $this->getStatusCode(); |
14 | 14 | } |
15 | 15 | |
16 | + /** |
|
17 | + * @return string |
|
18 | + */ |
|
16 | 19 | public function getContentType() |
17 | 20 | { |
18 | 21 | $exploded = explode(';', $this->hasHeader('Content-Type') ? $this->getHeader('Content-Type')[0] : null); |
@@ -159,6 +159,10 @@ |
||
159 | 159 | } |
160 | 160 | } |
161 | 161 | |
162 | + /** |
|
163 | + * @param string $identifier |
|
164 | + * @param string $message |
|
165 | + */ |
|
162 | 166 | public function send($identifier, $system, $message, $status, $url = '', $value = 0) |
163 | 167 | { |
164 | 168 | $event = new Event($identifier, $system, $status, $this->tool, $message, $value); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | $this->collect = $collect; |
52 | 52 | $this->identifier = $identifier; |
53 | 53 | |
54 | - if($tool) { |
|
54 | + if ($tool) { |
|
55 | 55 | $this->tool = $tool; |
56 | 56 | } |
57 | 57 |