Completed
Pull Request — master (#173)
by
unknown
01:44
created
src/Auth/BasicAuth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Auth/Connect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -562,7 +562,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Auth/OAuth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
tests/Resource/RefundTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
tests/Resource/CustomerTest.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,8 +68,8 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -163,10 +163,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Resource/CustomerCreditCard.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -259,8 +259,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Resource/MoipResource.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -272,10 +272,10 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
src/Resource/Account.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
150 150
             }
151 151
         }
152 152
         return false;
153
-     }
153
+        }
154 154
 
155 155
     /**
156 156
      * Get account id.
Please login to merge, or discard this patch.