@@ -37,7 +37,7 @@ |
||
37 | 37 | * |
38 | 38 | * @param \Requests_Hooks $hooks Hook system |
39 | 39 | */ |
40 | - public function register(Requests_Hooks &$hooks) |
|
40 | + public function register(Requests_Hooks & $hooks) |
|
41 | 41 | { |
42 | 42 | $hooks->register('requests.before_request', [&$this, 'before_request']); |
43 | 43 | } |
@@ -562,7 +562,7 @@ |
||
562 | 562 | * |
563 | 563 | * @param Requests_Hooks $hooks Hook system |
564 | 564 | */ |
565 | - public function register(Requests_Hooks &$hooks) |
|
565 | + public function register(Requests_Hooks & $hooks) |
|
566 | 566 | { |
567 | 567 | // TODO: Implement register() method. |
568 | 568 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * |
38 | 38 | * @param \Requests_Hooks $hooks Hook system |
39 | 39 | */ |
40 | - public function register(Requests_Hooks &$hooks) |
|
40 | + public function register(Requests_Hooks & $hooks) |
|
41 | 41 | { |
42 | 42 | $hooks->register('requests.before_request', [&$this, 'before_request']); |
43 | 43 | } |
@@ -117,14 +117,14 @@ discard block |
||
117 | 117 | */ |
118 | 118 | public function testCreateOrderWithInstallmentPreferences() |
119 | 119 | { |
120 | - $quantity = [1,6]; |
|
120 | + $quantity = [1, 6]; |
|
121 | 121 | $discount = 0; |
122 | 122 | $additional = 100; |
123 | 123 | $order = $this->createOrder()->setInstallmentCheckoutPreferences($quantity, $discount, $additional); |
124 | 124 | $returned_order = $this->executeOrder($order); |
125 | 125 | |
126 | 126 | $this->assertNotEmpty($returned_order->getId()); |
127 | - $this->assertEquals([1,6],$returned_order->getCheckoutPreferences()->installments->quantity); |
|
127 | + $this->assertEquals([1, 6], $returned_order->getCheckoutPreferences()->installments->quantity); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | public function testCreateOrderAddingReceiverNoAmount() |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | $returned_order = $this->executeOrder($order); |
134 | 134 | $this->assertNotEmpty($returned_order->getId()); |
135 | 135 | $receivers = $returned_order->getReceiverIterator(); |
136 | - $this->assertEquals('MPA-7ED9D2D0BC81',$receivers[0]->moipAccount->id); |
|
136 | + $this->assertEquals('MPA-7ED9D2D0BC81', $receivers[0]->moipAccount->id); |
|
137 | 137 | } |
138 | 138 | |
139 | 139 | public function testCreateOrderAddingReceiverAmountFixed() |