File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
src/SimpleSoftwareIO/QrCode/DataTypes Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments