@@ -7,13 +7,13 @@ |
||
| 7 | 7 | class CodebaseClient |
| 8 | 8 | { |
| 9 | 9 | protected $username; |
| 10 | - protected $password; |
|
| 11 | - protected $headers = [ |
|
| 10 | + protected $password; |
|
| 11 | + protected $headers = [ |
|
| 12 | 12 | 'Accept: application/xml', |
| 13 | 13 | 'Content-type: application/xml', |
| 14 | 14 | ]; |
| 15 | 15 | |
| 16 | - const WEBSERVICE_URL = 'http://api3.codebasehq.com/'; |
|
| 16 | + const WEBSERVICE_URL = 'http://api3.codebasehq.com/'; |
|
| 17 | 17 | |
| 18 | 18 | public function __construct($username, $password) |
| 19 | 19 | { |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | curl_setopt($ch, \CURLOPT_URL, $this->webhookUrl); |
| 28 | 28 | |
| 29 | 29 | curl_setopt($ch, \CURLOPT_POST, 1); |
| 30 | - curl_setopt($ch, \CURLOPT_POSTFIELDS, 'payload=' .json_encode($payload)); |
|
| 30 | + curl_setopt($ch, \CURLOPT_POSTFIELDS, 'payload=' . json_encode($payload)); |
|
| 31 | 31 | |
| 32 | 32 | $result = curl_exec($ch); |
| 33 | 33 | |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | |
| 59 | 59 | $change = new Change(); |
| 60 | 60 | foreach ($gitLog as $line) { |
| 61 | - if(strpos($line, 'commit') === 0) { |
|
| 61 | + if (strpos($line, 'commit') === 0) { |
|
| 62 | 62 | if (null !== $change->reference) { |
| 63 | 63 | $change->fullDescription = trim($change->fullDescription); |
| 64 | 64 | $changes[] = $change; |