Skip to content

Commit a407161

Browse files
committed
Cleanup. #658
1 parent 7ad8b97 commit a407161

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

src/Payment/API.php

+17-11
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,20 @@ public function getMerchant()
384384
return $this->merchant;
385385
}
386386

387+
/**
388+
* Set sandbox mode.
389+
*
390+
* @param bool $enabled
391+
*
392+
* @return $this
393+
*/
394+
public function sandboxMode($enabled = false)
395+
{
396+
$this->sandboxEnabled = $enabled;
397+
398+
return $this;
399+
}
400+
387401
/**
388402
* Make a API request.
389403
*
@@ -451,19 +465,11 @@ protected function parseResponse($response)
451465
}
452466

453467
/**
454-
* Set sandbox mode.
455-
*
456-
* @param bool $enabled
457-
*/
458-
public function sandboxMode($enabled = false)
459-
{
460-
$this->sandboxEnabled = $enabled;
461-
}
462-
463-
/**
464-
* Wrap sandbox API.
468+
* Wrap API.
465469
*
466470
* @param string $resource
471+
*
472+
* @return string
467473
*/
468474
protected function wrapApi($resource)
469475
{

0 commit comments

Comments
 (0)