@@ -17,17 +17,17 @@ |
||
| 17 | 17 | public function testNotifyOfDeployment() |
| 18 | 18 | { |
| 19 | 19 | $deployment = $this->getMockBuilder(Deployment::class) |
| 20 | - ->disableOriginalConstructor() |
|
| 21 | - ->getMock(); |
|
| 20 | + ->disableOriginalConstructor() |
|
| 21 | + ->getMock(); |
|
| 22 | 22 | |
| 23 | 23 | $client = $this->getMockBuilder(CodebaseClient::class) |
| 24 | - ->disableOriginalConstructor() |
|
| 25 | - ->setMethods(['registerDeployment']) |
|
| 26 | - ->getMock(); |
|
| 24 | + ->disableOriginalConstructor() |
|
| 25 | + ->setMethods(['registerDeployment']) |
|
| 26 | + ->getMock(); |
|
| 27 | 27 | |
| 28 | 28 | $client->expects($this->once()) |
| 29 | - ->method('registerDeployment') |
|
| 30 | - ->with($this->equalTo($deployment)); |
|
| 29 | + ->method('registerDeployment') |
|
| 30 | + ->with($this->equalTo($deployment)); |
|
| 31 | 31 | |
| 32 | 32 | $notifier = new CodebaseNotifier($client); |
| 33 | 33 | $notifier->notifyOfDeployment($deployment); |
@@ -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 | |
@@ -72,15 +72,15 @@ |
||
| 72 | 72 | ]; |
| 73 | 73 | |
| 74 | 74 | $this->changeInspector = $this->getMockBuilder(ChangeInspector::class) |
| 75 | - ->disableOriginalConstructor() |
|
| 76 | - ->setMethods(['getChangesFromDeployment']) |
|
| 77 | - ->getMock(); |
|
| 75 | + ->disableOriginalConstructor() |
|
| 76 | + ->setMethods(['getChangesFromDeployment']) |
|
| 77 | + ->getMock(); |
|
| 78 | 78 | $this->changeInspector->expects($this->once()) |
| 79 | - ->method('getChangesFromDeployment') |
|
| 80 | - ->with($this->callback(function ($subject) { |
|
| 81 | - return $subject == $this->deployment; |
|
| 82 | - })) |
|
| 83 | - ->will($this->returnValue($changes)); |
|
| 79 | + ->method('getChangesFromDeployment') |
|
| 80 | + ->with($this->callback(function ($subject) { |
|
| 81 | + return $subject == $this->deployment; |
|
| 82 | + })) |
|
| 83 | + ->will($this->returnValue($changes)); |
|
| 84 | 84 | |
| 85 | 85 | $this->deployment = new Deployment( |
| 86 | 86 | $this->environment, |
@@ -77,7 +77,7 @@ |
||
| 77 | 77 | ->getMock(); |
| 78 | 78 | $this->changeInspector->expects($this->once()) |
| 79 | 79 | ->method('getChangesFromDeployment') |
| 80 | - ->with($this->callback(function ($subject) { |
|
| 80 | + ->with($this->callback(function($subject) { |
|
| 81 | 81 | return $subject == $this->deployment; |
| 82 | 82 | })) |
| 83 | 83 | ->will($this->returnValue($changes)); |
@@ -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 | { |