Passed
Push — master ( 046212...e3ed84 )
by Dominic
02:47
created
src/Resources/Payment.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -15,43 +15,43 @@
 block discarded – undo
15 15
 	const ENDPOINT = '/pay';
16 16
 
17 17
 	/**
18
-     * @see https://revolut-engineering.github.io/api-docs/business-api/#payments-create-payment Official API documentation
19
-     */
20
-    public function create(array $json)
21
-    {
22
-        return $this->client->post(self::ENDPOINT, ['json' => $json]);
23
-    }
18
+	 * @see https://revolut-engineering.github.io/api-docs/business-api/#payments-create-payment Official API documentation
19
+	 */
20
+	public function create(array $json)
21
+	{
22
+		return $this->client->post(self::ENDPOINT, ['json' => $json]);
23
+	}
24 24
 
25
-    /**
26
-     * Schedule a payment for up to 30 days
27
-     *
28
-     * @see https://revolut-engineering.github.io/api-docs/business-api/#payments-schedule-payment Official API documentation
29
-     * @param array $json The request parameters
30
-     * @param string $date a future ISO date (Up to 30 days)
31
-     * @return array
32
-     */
33
-    public function schedule(array $json, string $date)
34
-    {
35
-        return $this->create(array_merge($json, ['schedule_for' => $date]));
36
-    }
25
+	/**
26
+	 * Schedule a payment for up to 30 days
27
+	 *
28
+	 * @see https://revolut-engineering.github.io/api-docs/business-api/#payments-schedule-payment Official API documentation
29
+	 * @param array $json The request parameters
30
+	 * @param string $date a future ISO date (Up to 30 days)
31
+	 * @return array
32
+	 */
33
+	public function schedule(array $json, string $date)
34
+	{
35
+		return $this->create(array_merge($json, ['schedule_for' => $date]));
36
+	}
37 37
 
38
-    /**
39
-     * Cancel a scheduled payment
40
-     * 
41
-     * @see https://revolut-engineering.github.io/api-docs/business-api/#payments-cancel-payment Official API documentation
42
-     * @param string $id The ID of the payment in UUID format
43
-     * @return void
44
-     */
45
-    public function cancel(string $id) : void
46
-    {
47
-        $this->client->delete('/transaction/' . $id);
48
-    }
38
+	/**
39
+	 * Cancel a scheduled payment
40
+	 * 
41
+	 * @see https://revolut-engineering.github.io/api-docs/business-api/#payments-cancel-payment Official API documentation
42
+	 * @param string $id The ID of the payment in UUID format
43
+	 * @return void
44
+	 */
45
+	public function cancel(string $id) : void
46
+	{
47
+		$this->client->delete('/transaction/' . $id);
48
+	}
49 49
 
50
-    /**
51
-     * @return \tbclla\Revolut\Builders\PaymentBuilder
52
-     */
53
-    public function build()
54
-    {
55
-        return new PaymentBuilder($this, $this->client->generateRequestId());
56
-    }
50
+	/**
51
+	 * @return \tbclla\Revolut\Builders\PaymentBuilder
52
+	 */
53
+	public function build()
54
+	{
55
+		return new PaymentBuilder($this, $this->client->generateRequestId());
56
+	}
57 57
 }
Please login to merge, or discard this patch.
src/Resources/Exchange.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 	}
24 24
 
25 25
 	/**
26
-     * @return \tbclla\Revolut\Builders\ExchangeBuilder
27
-     */
26
+	 * @return \tbclla\Revolut\Builders\ExchangeBuilder
27
+	 */
28 28
 	public function build()
29 29
 	{
30 30
 		return new ExchangeBuilder($this, $this->client->generateRequestId());
Please login to merge, or discard this patch.
src/Resources/Transfer.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -15,18 +15,18 @@
 block discarded – undo
15 15
 	const ENDPOINT = '/transfer';
16 16
 
17 17
 	/**
18
-     * @see https://revolut-engineering.github.io/api-docs/business-api/#transfers-create-transfer Official API documentation
19
-     */
20
-    public function create(array $json)
21
-    {
22
-        return $this->client->post(self::ENDPOINT, ['json' => $json]);
23
-    }
18
+	 * @see https://revolut-engineering.github.io/api-docs/business-api/#transfers-create-transfer Official API documentation
19
+	 */
20
+	public function create(array $json)
21
+	{
22
+		return $this->client->post(self::ENDPOINT, ['json' => $json]);
23
+	}
24 24
 
25
-    /**
26
-     * @return \tbclla\Revolut\Builders\TransferBuilder
27
-     */
28
-    public function build()
29
-    {
30
-        return new TransferBuilder($this, $this->client->generateRequestId());
31
-    }
25
+	/**
26
+	 * @return \tbclla\Revolut\Builders\TransferBuilder
27
+	 */
28
+	public function build()
29
+	{
30
+		return new TransferBuilder($this, $this->client->generateRequestId());
31
+	}
32 32
 }
Please login to merge, or discard this patch.
src/Resources/PaymentDraft.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@
 block discarded – undo
58 58
 	}
59 59
 
60 60
 	/**
61
-     * @return \tbclla\Revolut\Builders\PaymentDraftBuilder
62
-     */
61
+	 * @return \tbclla\Revolut\Builders\PaymentDraftBuilder
62
+	 */
63 63
 	public function build()
64 64
 	{
65 65
 		return new PaymentDraftBuilder($this);
Please login to merge, or discard this patch.
src/database/migrations/2019_08_19_000000_create_revolut_tokens_table.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -6,30 +6,30 @@
 block discarded – undo
6 6
 
7 7
 class CreateRevolutTokensTable extends Migration
8 8
 {
9
-    /**
10
-     * Run the migrations.
11
-     *
12
-     * @return void
13
-     */
14
-    public function up()
15
-    {
16
-        Schema::create(config('revolut.tokens_table'), function(Blueprint $table) {
9
+	/**
10
+	 * Run the migrations.
11
+	 *
12
+	 * @return void
13
+	 */
14
+	public function up()
15
+	{
16
+		Schema::create(config('revolut.tokens_table'), function(Blueprint $table) {
17 17
 			$table->bigIncrements('id');
18 18
 			$table->string('type');
19
-            $table->mediumText('value');
20
-            $table->boolean('is_encrypted')->default(false);
19
+			$table->mediumText('value');
20
+			$table->boolean('is_encrypted')->default(false);
21 21
 			$table->timestamp('expires_at')->nullable();
22
-            $table->timestamp('created_at')->useCurrent();
23
-        });
24
-    }
22
+			$table->timestamp('created_at')->useCurrent();
23
+		});
24
+	}
25 25
 
26
-    /**
27
-     * Reverse the migrations.
28
-     *
29
-     * @return void
30
-     */
31
-    public function down()
32
-    {
33
-        Schema::dropIfExists(config('revolut.tokens_table'));
34
-    }
26
+	/**
27
+	 * Reverse the migrations.
28
+	 *
29
+	 * @return void
30
+	 */
31
+	public function down()
32
+	{
33
+		Schema::dropIfExists(config('revolut.tokens_table'));
34
+	}
35 35
 }
Please login to merge, or discard this patch.