Completed
Push — master ( 6b1ea1...07aa67 )
by Michael
02:51
created
tests/Notifiers/CodebaseNotifierTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,17 +17,17 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Clients/SlackClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
tests/DeploymentTest.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -72,15 +72,15 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/Clients/CodebaseClient.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -7,13 +7,13 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.