@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | |
41 | 41 | $curl = new Curl(); |
42 | 42 | $curl->get($this->projectUrl . '/projects/' . $this->projectId . '/' . |
43 | - 'repository/commits/' . $sha . '/statuses?private_token='. $this->privateKey); |
|
43 | + 'repository/commits/' . $sha . '/statuses?private_token=' . $this->privateKey); |
|
44 | 44 | |
45 | 45 | if ($curl->error) { |
46 | 46 | throw new \Exception('Error: ' . $curl->errorCode . ': ' . $curl->errorMessage); |
@@ -62,8 +62,8 @@ discard block |
||
62 | 62 | { |
63 | 63 | $this->status = 'success'; |
64 | 64 | |
65 | - foreach($response as $buildStatus) { |
|
66 | - if($buildStatus->allow_failure === false && $buildStatus->status == 'failed') { |
|
65 | + foreach ($response as $buildStatus) { |
|
66 | + if ($buildStatus->allow_failure === false && $buildStatus->status == 'failed') { |
|
67 | 67 | $this->status = 'failed'; |
68 | 68 | } |
69 | 69 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | { |
79 | 79 | $curl = new Curl(); |
80 | 80 | $curl->get($this->projectUrl . '/projects/' . $this->projectId . '/' . |
81 | - 'repository/commits?private_token='. $this->privateKey . '&ref_name=' . $branch); |
|
81 | + 'repository/commits?private_token=' . $this->privateKey . '&ref_name=' . $branch); |
|
82 | 82 | |
83 | 83 | if ($curl->error) { |
84 | 84 | throw new \Exception('Error: ' . $curl->errorCode . ': ' . $curl->errorMessage); |