@@ -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(); |
@@ -68,8 +68,8 @@ |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | /** |
71 | - * MoipTest create credit card for customer. |
|
72 | - */ |
|
71 | + * MoipTest create credit card for customer. |
|
72 | + */ |
|
73 | 73 | public function testCreateCreditCard() { |
74 | 74 | $this->mockHttpSession($this->body_client); |
75 | 75 | $customer = $this->createCustomer()->create(); |
@@ -84,7 +84,7 @@ |
||
84 | 84 | ->setFullName('Jose Portador da Silva') |
85 | 85 | ->setBirthDate('1988-12-30') |
86 | 86 | ->setTaxDocument('CPF', '33333333333') |
87 | - ->setPhone('55','11','66778899') |
|
87 | + ->setPhone('55', '11', '66778899') |
|
88 | 88 | ->create($customer->getId()); |
89 | 89 | |
90 | 90 | $this->assertNotEmpty($creditCard->getId()); |
@@ -163,10 +163,10 @@ |
||
163 | 163 | } |
164 | 164 | |
165 | 165 | /** |
166 | - * Method to read JSON from a file. |
|
167 | - * |
|
168 | - * @param string $filename location of file |
|
169 | - */ |
|
166 | + * Method to read JSON from a file. |
|
167 | + * |
|
168 | + * @param string $filename location of file |
|
169 | + */ |
|
170 | 170 | public function readJsonFile($filename) |
171 | 171 | { |
172 | 172 | return file_get_contents("$filename.json", FILE_USE_INCLUDE_PATH); |
@@ -259,8 +259,8 @@ |
||
259 | 259 | * |
260 | 260 | * @return boolean |
261 | 261 | */ |
262 | - public function getStore() |
|
263 | - { |
|
264 | - return $this->data->creditCard->store; |
|
265 | - } |
|
262 | + public function getStore() |
|
263 | + { |
|
264 | + return $this->data->creditCard->store; |
|
265 | + } |
|
266 | 266 | } |
@@ -272,10 +272,10 @@ |
||
272 | 272 | * |
273 | 273 | * @return stdClass |
274 | 274 | */ |
275 | - public function getByPathNoPopulate($path) |
|
276 | - { |
|
277 | - return $this->httpRequest($path, Requests::GET); |
|
278 | - } |
|
275 | + public function getByPathNoPopulate($path) |
|
276 | + { |
|
277 | + return $this->httpRequest($path, Requests::GET); |
|
278 | + } |
|
279 | 279 | |
280 | 280 | /** |
281 | 281 | * Create a new item in Moip. |
@@ -138,8 +138,8 @@ discard block |
||
138 | 138 | * |
139 | 139 | * @return stdClass |
140 | 140 | */ |
141 | - public function checkAccountExists($tax_document) |
|
142 | - { |
|
141 | + public function checkAccountExists($tax_document) |
|
142 | + { |
|
143 | 143 | try { |
144 | 144 | $this->getByPathNoPopulate(sprintf('/%s/%s/%s?tax_document=%s', MoipResource::VERSION, self::PATH, 'exists', $tax_document)); |
145 | 145 | |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | } |
152 | 152 | return false; |
153 | - } |
|
153 | + } |
|
154 | 154 | |
155 | 155 | /** |
156 | 156 | * Get account id. |