Completed
Pull Request — master (#70)
by
unknown
06:33
created
src/Resource/Orders.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
     /**
167 167
      * Create a new order in MoIP.
168 168
      *
169
-     * @return Orders
169
+     * @return stdClass
170 170
      */
171 171
     public function create()
172 172
     {
Please login to merge, or discard this patch.
src/Resource/MoipResource.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -74,6 +74,9 @@
 block discarded – undo
74 74
         }
75 75
     }
76 76
 
77
+    /**
78
+     * @param string $key
79
+     */
77 80
     protected function getIfSetDateFmt($key, $fmt, stdClass $data = null)
78 81
     {
79 82
         $val = $this->getIfSet($key, $data);
Please login to merge, or discard this patch.
src/MoipOAuth.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/Resource/Account.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      *
103 103
      * @param string $moip_id
104 104
      *
105
-     * @return \Moip\Resource\Account
105
+     * @return stdClass
106 106
      */
107 107
     public function get($moip_id)
108 108
     {
@@ -291,8 +291,8 @@  discard block
 block discarded – undo
291 291
     /**
292 292
      * Set name from account.
293 293
      *
294
-     * @param string $name Account's person name.
295 294
      *
295
+     * @param string $lastname
296 296
      * @return \Moip\Resource\Account
297 297
      */
298 298
     public function setLastName($lastname)
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     /**
306 306
      * Set birth date from account.
307 307
      *
308
-     * @param \DateTime|string $birthDate Date of birth of the credit card holder.
308
+     * @param string $birthDate Date of birth of the credit card holder.
309 309
      *
310 310
      * @return \Moip\Resource\Account
311 311
      */
@@ -361,8 +361,8 @@  discard block
 block discarded – undo
361 361
      *
362 362
      * @param string $number    						Número do documento.
363 363
      * @param string $issuer      						Emissor do documento.
364
-     * @param \DateTime|string $birthDate $issueDate 	Data de emissão do documento.
365 364
      * @param string $type								Tipo do documento. Valores possíveis: RG.
365
+     * @param string $issueDate
366 366
      *
367 367
      * @return \Moip\Resource\Account
368 368
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
      */
137 137
     public function getFullname()
138 138
     {
139
-        return $this->getIfSet('name', $this->data->person) . ' ' . $this->getIfSet('lastName', $this->data->person);
139
+        return $this->getIfSet('name', $this->data->person).' '.$this->getIfSet('lastName', $this->data->person);
140 140
     }
141 141
 
142 142
     /**
Please login to merge, or discard this patch.
tests/MoipTestCase.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
 	/**
145 145
 	 * Creates a account.
146 146
 	 *
147
-	 * @return Account
147
+	 * @return \stdClass
148 148
 	 */
149 149
 	public function createAccount()
150 150
 	{
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
 	{
151 151
 		$moip = new Moip(new MoipOAuth('1tldio91gi74r34zv30d4saz8yuuws5'), Moip::ENDPOINT_SANDBOX);
152 152
 		
153
-		$uniqEmail = 'fulano' . uniqid('MPA-') . '@detal123.com.br';
153
+		$uniqEmail = 'fulano'.uniqid('MPA-').'@detal123.com.br';
154 154
 		
155 155
 		$account = $moip->accounts()
156 156
 			->setEmail($uniqEmail)
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 			->setLastName('de Tal')
159 159
 			->setBirthDate('1987-11-27')
160 160
 			->setTaxDocument('22222222222')
161
-			->setPhone(11,988888888)
161
+			->setPhone(11, 988888888)
162 162
 			->addAddress('Av. Ibirapuera', '2035', 'Moema', 'Sao Paulo', 'SP', '04078010')
163 163
 			->setIdentityDocument('411111115', 'SSP', '2000-05-06')
164 164
 			->create();
Please login to merge, or discard this patch.
src/MoipBasicAuth.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.