@@ -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; |
@@ -10,12 +10,12 @@ |
||
| 10 | 10 | protected $curl; |
| 11 | 11 | protected $codebaseProjectName; |
| 12 | 12 | protected $repositoryName; |
| 13 | - protected $headers = [ |
|
| 13 | + protected $headers = [ |
|
| 14 | 14 | 'Accept' => 'application/xml', |
| 15 | 15 | 'Content-type' => 'application/xml', |
| 16 | 16 | ]; |
| 17 | 17 | |
| 18 | - const WEBSERVICE_URL = 'http://api3.codebasehq.com/'; |
|
| 18 | + const WEBSERVICE_URL = 'http://api3.codebasehq.com/'; |
|
| 19 | 19 | |
| 20 | 20 | public function __construct(Curl $curl, $username, $password, $codebaseProjectName, $repositoryName = null) |
| 21 | 21 | { |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | else { |
| 45 | 45 | $tickets = simplexml_load_string($this->curl->response); |
| 46 | 46 | $completed_ticket_names = []; |
| 47 | - foreach($tickets as $ticket) { |
|
| 47 | + foreach ($tickets as $ticket) { |
|
| 48 | 48 | $completed_ticket_names[] = (string) $ticket->summary; |
| 49 | 49 | } |
| 50 | 50 | |
@@ -40,8 +40,7 @@ |
||
| 40 | 40 | |
| 41 | 41 | if ($this->curl->error) { |
| 42 | 42 | return []; |
| 43 | - } |
|
| 44 | - else { |
|
| 43 | + } else { |
|
| 45 | 44 | $tickets = simplexml_load_string($this->curl->response); |
| 46 | 45 | $completed_ticket_names = []; |
| 47 | 46 | foreach($tickets as $ticket) { |