Completed
Pull Request — master (#173)
by
unknown
01:44
created
src/Resource/Account.php 2 patches
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      *
137 137
      * @param string $tax_document
138 138
      *
139
-     * @return stdClass
139
+     * @return boolean
140 140
      */
141 141
      public function checkAccountExists($tax_document)
142 142
      {
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
     /**
374 374
      * Set birth date from account.
375 375
      *
376
-     * @param \DateTime|string $birthDate Date of birth of the credit card holder.
376
+     * @param string $birthDate Date of birth of the credit card holder.
377 377
      *
378 378
      * @return \Moip\Resource\Account
379 379
      */
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
      *
430 430
      * @param string $number Número do documento.
431 431
      * @param string $issuer Emissor do documento.
432
-     * @param $issueDate
432
+     * @param string $issueDate
433 433
      * @param string $type Tipo do documento. Valores possíveis: RG.
434 434
      *
435 435
      * @return Account
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
     /**
563 563
      * Set company opening date.
564 564
      *
565
-     * @param \DateTime|string $openingDate .
565
+     * @param string $openingDate .
566 566
      *
567 567
      * @return $this
568 568
      */
@@ -597,8 +597,9 @@  discard block
 block discarded – undo
597 597
     /**
598 598
      * Set company tax document.
599 599
      *
600
-     * @param string $documentNumber .
601 600
      *
601
+     * @param string $cnae
602
+     * @param string $description
602 603
      * @return $this
603 604
      */
604 605
     public function setCompanyMainActivity($cnae, $description)
Please login to merge, or discard this 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.
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.