@@ -70,6 +70,11 @@ |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | + /** |
|
74 | + * @param string $identifier |
|
75 | + * @param string $tool |
|
76 | + * @param string $status |
|
77 | + */ |
|
73 | 78 | public function send($identifier, $system, $tool, $message, $status, $url = "") |
74 | 79 | { |
75 | 80 | $curl = curl_init(); |
@@ -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); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | public function isFiltered(Event $event, $ruleName, Response $response) |
47 | 47 | { |
48 | 48 | foreach ($this->filters as $filter) { |
49 | - if ($ruleName === $filter['rule'] && 0 < preg_match("$" . preg_quote($filter['uri']) . "$", (string)$response->getUri())) { |
|
49 | + if ($ruleName === $filter['rule'] && 0 < preg_match("$" . preg_quote($filter['uri']) . "$", (string) $response->getUri())) { |
|
50 | 50 | $event->setProcessed(); |
51 | 51 | return true; |
52 | 52 | } |
@@ -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); |