Completed
Push — master ( 893fe7...1d240f )
by Michał
01:59
created
src/Barenote/Endpoint/Authentication.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                 'email'    => $email
47 47
             ]
48 48
         );
49
-        $url    = self::URL_REGISTER;
49
+        $url = self::URL_REGISTER;
50 50
 
51 51
         $response = $this->transport->sendRequest($method, $url, $body);
52 52
 
Please login to merge, or discard this patch.
src/Barenote/BarenoteClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      * @var Transport
14 14
      */
15 15
     private $transport;
16
-    private $endpoints = [];
16
+    private $endpoints = [ ];
17 17
 
18 18
     /**
19 19
      * BarenoteClient constructor.
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         $this->transport = new HttpfulTransport();
24 24
         $this->transport->setHost("http://localhost:8080");
25 25
 
26
-        $this->endpoints['authentication'] = new Authentication($this->transport);
26
+        $this->endpoints[ 'authentication' ] = new Authentication($this->transport);
27 27
     }
28 28
 
29 29
     public function authenticate(string $username, string $password)
@@ -37,6 +37,6 @@  discard block
 block discarded – undo
37 37
      */
38 38
     public function getAuthenticationEndpoint()
39 39
     {
40
-        return $this->endpoints['authentication'];
40
+        return $this->endpoints[ 'authentication' ];
41 41
     }
42 42
 }
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
src/Barenote/Domain/Credentials.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
 
46 46
     public function jsonSerialize()
47 47
     {
48
-        return ['username' => $this->username, 'password' => $this->password];
48
+        return [ 'username' => $this->username, 'password' => $this->password ];
49 49
     }
50 50
 }
51 51
\ No newline at end of file
Please login to merge, or discard this patch.