@@ -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(); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | } else { |
82 | 82 | $system = $this->system; |
83 | 83 | } |
84 | - $this->send($identifier, $system, 'smoke', $message, self::STATUS_FAILURE, (string)$result->getUrl()); |
|
84 | + $this->send($identifier, $system, 'smoke', $message, self::STATUS_FAILURE, (string) $result->getUrl()); |
|
85 | 85 | $failedTests[] = $ruleLKey; |
86 | 86 | } |
87 | 87 | } |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | } else { |
94 | 94 | $system = $this->system; |
95 | 95 | } |
96 | - $this->send($identifier, $system, 'smoke_' . $rule, '', self::STATUS_SUCCESS, (string)$result->getUrl()); |
|
96 | + $this->send($identifier, $system, 'smoke_' . $rule, '', self::STATUS_SUCCESS, (string) $result->getUrl()); |
|
97 | 97 | } |
98 | 98 | } |
99 | 99 | } |
@@ -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); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | return; |
24 | 24 | } |
25 | 25 | |
26 | - if(!file_exists($filename) ){ |
|
26 | + if (!file_exists($filename)) { |
|
27 | 27 | return; |
28 | 28 | } |
29 | 29 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | return; |
24 | 24 | } |
25 | 25 | |
26 | - if(!file_exists($filename) ){ |
|
26 | + if (!file_exists($filename)) { |
|
27 | 27 | return; |
28 | 28 | } |
29 | 29 |