@@ -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 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | $order = $this->createOrder()->create(); |
| 13 | 13 | $this->mockHttpSession($this->body_billet_pay); |
| 14 | 14 | $payment = $order->payments() |
| 15 | - ->setBoleto(new \DateTime('today +1day'),'http://dev.moip.com.br/images/logo-header-moip.png') |
|
| 15 | + ->setBoleto(new \DateTime('today +1day'), 'http://dev.moip.com.br/images/logo-header-moip.png') |
|
| 16 | 16 | ->execute(); |
| 17 | 17 | $this->mockHttpSession(''); |
| 18 | 18 | $payment->authorize(); |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | $order = $this->createOrder()->create(); |
| 29 | 29 | $this->mockHttpSession($this->body_billet_pay); |
| 30 | 30 | $payment = $order->payments() |
| 31 | - ->setBoleto(new \DateTime('today +1day'),'http://dev.moip.com.br/images/logo-header-moip.png') |
|
| 31 | + ->setBoleto(new \DateTime('today +1day'), 'http://dev.moip.com.br/images/logo-header-moip.png') |
|
| 32 | 32 | ->execute(); |
| 33 | 33 | $this->mockHttpSession(''); |
| 34 | 34 | $payment->authorize(); |
@@ -25,16 +25,16 @@ |
||
| 25 | 25 | ->addAlternativePhone(11, 66448899, 55) |
| 26 | 26 | ->addAlternativePhone(11, 66338899, 55) |
| 27 | 27 | ->setTransparentAccount(true) |
| 28 | - ->addAddress('Rua de teste', 123, 'Bairro', 'Sao Paulo', 'SP', '01234567', 'Apt. 23','BRA') |
|
| 28 | + ->addAddress('Rua de teste', 123, 'Bairro', 'Sao Paulo', 'SP', '01234567', 'Apt. 23', 'BRA') |
|
| 29 | 29 | ->setCompanyName('Empresa Teste', 'Teste Empresa ME') |
| 30 | 30 | ->setCompanyOpeningDate('2011-01-01') |
| 31 | 31 | ->setCompanyPhone(11, 66558899, 55) |
| 32 | 32 | ->setCompanyTaxDocument('69086878000198') |
| 33 | - ->setCompanyAddress('Rua de teste 2', 123, 'Bairro Teste', 'Sao Paulo', 'SP', '01234567', 'Apt. 23','BRA') |
|
| 33 | + ->setCompanyAddress('Rua de teste 2', 123, 'Bairro Teste', 'Sao Paulo', 'SP', '01234567', 'Apt. 23', 'BRA') |
|
| 34 | 34 | ->setCompanyMainActivity('82.91-1/00', 'Atividades de cobranças e informações cadastrais') |
| 35 | 35 | ->create(); |
| 36 | 36 | $this->assertNotEmpty($account->getId()); |
| 37 | - $this->assertEquals('66448899',$account->getAlternativePhones()[0]->number); |
|
| 37 | + $this->assertEquals('66448899', $account->getAlternativePhones()[0]->number); |
|
| 38 | 38 | $this->assertEquals('Teste Empresa ME', $account->getCompany()->businessName); |
| 39 | 39 | } |
| 40 | 40 | } |