Passed
Push — master ( 80cc67...34ea0b )
by Dominic
02:42
created
src/Interfaces/MakesHttpRequests.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -4,33 +4,33 @@
 block discarded – undo
4 4
 
5 5
 interface MakesHttpRequests
6 6
 {
7
-    /**
8
-     * Make a 'POST' request
9
-     * 
10
-     * @param string $url The request url
11
-     * @param array $options The request options
12
-     * @return array The response body
13
-     * @throws \tbclla\Revolut\Exceptions\ApiException API returned a 4xx or 5xx response code
14
-     */
15
-    public function post(string $url, array $options = []);
7
+	/**
8
+	 * Make a 'POST' request
9
+	 * 
10
+	 * @param string $url The request url
11
+	 * @param array $options The request options
12
+	 * @return array The response body
13
+	 * @throws \tbclla\Revolut\Exceptions\ApiException API returned a 4xx or 5xx response code
14
+	 */
15
+	public function post(string $url, array $options = []);
16 16
 
17
-    /**
18
-     * Make a 'GET' request
19
-     * 
20
-     * @param string $url The request url
21
-     * @param array $options The request options
22
-     * @return array|null The response body
23
-     * @throws \tbclla\Revolut\Exceptions\ApiException API returned a 4xx or 5xx response code
24
-     */
25
-    public function get(string $url, array $options = []);
17
+	/**
18
+	 * Make a 'GET' request
19
+	 * 
20
+	 * @param string $url The request url
21
+	 * @param array $options The request options
22
+	 * @return array|null The response body
23
+	 * @throws \tbclla\Revolut\Exceptions\ApiException API returned a 4xx or 5xx response code
24
+	 */
25
+	public function get(string $url, array $options = []);
26 26
 
27
-    /**
28
-     * Make a 'DELETE' request
29
-     * 
30
-     * @param string $url The request url
31
-     * @param array $options The request options
32
-     * @return void
33
-     * @throws \tbclla\Revolut\Exceptions\ApiException API returned a 4xx or 5xx response code
34
-     */
35
-    public function delete(string $url, array $options = []);
27
+	/**
28
+	 * Make a 'DELETE' request
29
+	 * 
30
+	 * @param string $url The request url
31
+	 * @param array $options The request options
32
+	 * @return void
33
+	 * @throws \tbclla\Revolut\Exceptions\ApiException API returned a 4xx or 5xx response code
34
+	 */
35
+	public function delete(string $url, array $options = []);
36 36
 }
Please login to merge, or discard this patch.
src/Interfaces/Buildable.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -4,20 +4,20 @@
 block discarded – undo
4 4
 
5 5
 interface Buildable
6 6
 {
7
-    /**
8
-     * Create a resource
9
-     *
10
-     * @param array $json The request body
11
-     * @return array The response body
12
-     * @throws \tbclla\Revolut\Exceptions\ApiException if the client responded with a 4xx-5xx response
13
-     * @throws \tbclla\Revolut\Exceptions\AppUnauthorizedException if the app needs to be re-authorized
14
-     */
15
-    public function create(array $json);
7
+	/**
8
+	 * Create a resource
9
+	 *
10
+	 * @param array $json The request body
11
+	 * @return array The response body
12
+	 * @throws \tbclla\Revolut\Exceptions\ApiException if the client responded with a 4xx-5xx response
13
+	 * @throws \tbclla\Revolut\Exceptions\AppUnauthorizedException if the app needs to be re-authorized
14
+	 */
15
+	public function create(array $json);
16 16
 
17
-    /**
18
-     * Get a buildable instance
19
-     *
20
-     * @return \tbclla\Revolut\Builders\Builder
21
-     */
22
-    public function build();
17
+	/**
18
+	 * Get a buildable instance
19
+	 *
20
+	 * @return \tbclla\Revolut\Builders\Builder
21
+	 */
22
+	public function build();
23 23
 }
Please login to merge, or discard this patch.
src/Interfaces/GrantsAccessTokens.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -4,24 +4,24 @@
 block discarded – undo
4 4
 
5 5
 interface GrantsAccessTokens
6 6
 {
7
-    /**
8
-     * Get the token value
9
-     *
10
-     * @return string
11
-     */
12
-    public function getValue();
7
+	/**
8
+	 * Get the token value
9
+	 *
10
+	 * @return string
11
+	 */
12
+	public function getValue();
13 13
 
14
-    /**
15
-     * Get the token type
16
-     *
17
-     * @return string
18
-     */
19
-    public static function getType();
14
+	/**
15
+	 * Get the token type
16
+	 *
17
+	 * @return string
18
+	 */
19
+	public static function getType();
20 20
 
21
-    /**
22
-     * Get the grant type of the token
23
-     * 
24
-     * @return string
25
-     */
26
-    public static function getGrantType();
21
+	/**
22
+	 * Get the grant type of the token
23
+	 * 
24
+	 * @return string
25
+	 */
26
+	public static function getGrantType();
27 27
 }
Please login to merge, or discard this patch.
src/Interfaces/TokenRepository.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -4,33 +4,33 @@
 block discarded – undo
4 4
 
5 5
 interface TokenRepository
6 6
 {
7
-    /**
8
-     * Get the latest active access token
9
-     *
10
-     * @return \tbclla\Revolut\Auth\AccessToken|null
11
-     */
12
-    public function getAccessToken();
7
+	/**
8
+	 * Get the latest active access token
9
+	 *
10
+	 * @return \tbclla\Revolut\Auth\AccessToken|null
11
+	 */
12
+	public function getAccessToken();
13 13
 
14
-    /**
15
-     * Get the latest refresh token
16
-     *
17
-     * @return \tbclla\Revolut\Auth\RefreshToken|null
18
-     */
19
-    public function getRefreshToken();
14
+	/**
15
+	 * Get the latest refresh token
16
+	 *
17
+	 * @return \tbclla\Revolut\Auth\RefreshToken|null
18
+	 */
19
+	public function getRefreshToken();
20 20
 
21
-    /**
22
-     * Create a new access token
23
-     *
24
-     * @param string $value
25
-     * @return \tbclla\Revolut\Auth\AccessToken
26
-     */
27
-    public function createAccessToken(string $value);
21
+	/**
22
+	 * Create a new access token
23
+	 *
24
+	 * @param string $value
25
+	 * @return \tbclla\Revolut\Auth\AccessToken
26
+	 */
27
+	public function createAccessToken(string $value);
28 28
 
29
-    /**
30
-     * Create a new refresh token
31
-     *
32
-     * @param string $value
33
-     * @return \tbclla\Revolut\Auth\RefreshToken
34
-     */
35
-    public function createRefreshToken(string $value);
29
+	/**
30
+	 * Create a new refresh token
31
+	 *
32
+	 * @param string $value
33
+	 * @return \tbclla\Revolut\Auth\RefreshToken
34
+	 */
35
+	public function createRefreshToken(string $value);
36 36
 }
Please login to merge, or discard this patch.