Skip to content

Commit cb4851c

Browse files
author
Corey McCormick
committed
Fix styleci issues
1 parent a78627d commit cb4851c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/SimpleSoftwareIO/QrCode/DataTypes/BTC.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BTC implements DataTypeInterface
2828
/**
2929
* The amount to send.
3030
*
31-
* @var integer
31+
* @var int
3232
*/
3333
protected $amount;
3434

@@ -94,7 +94,7 @@ protected function setProperties(array $arguments)
9494
}
9595

9696
/**
97-
* Sets the optional BitCoin options
97+
* Sets the optional BitCoin options.
9898
*
9999
* @param array $options
100100
*/
@@ -121,10 +121,10 @@ protected function setOptions(array $options)
121121
protected function buildBitCoinString()
122122
{
123123
$query = http_build_query([
124-
'amount' => $this->amount,
125-
'label' => $this->label,
126-
'$message' => $this->message,
127-
'r' => $this->returnAddress
124+
'amount' => $this->amount,
125+
'label' => $this->label,
126+
'$message' => $this->message,
127+
'r' => $this->returnAddress
128128
]);
129129

130130
$btc = $this->prefix.$this->address.'?'.$query;

tests/DataTypes/BTC.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ public function test_it_generates_a_valid_btc_qrcode_with_an_address_amount_labe
3333
'btcaddress',
3434
0.0034,
3535
[
36-
'label' => 'label',
37-
'message' => 'message',
36+
'label' => 'label',
37+
'message' => 'message',
3838
'returnAddress' => 'https://www.returnaddress.com'
3939
]
4040
]);
4141

42-
$properFormat = 'bitcoin:btcaddress?amount=0.0034&label=label&%24message=message&r=' . urlencode('https://www.returnaddress.com');
42+
$properFormat = 'bitcoin:btcaddress?amount=0.0034&label=label&%24message=message&r='.urlencode('https://www.returnaddress.com');
4343

4444
$this->assertEquals($properFormat, strval($this->btc));
4545
}

0 commit comments

Comments
 (0)