Skip to content

Commit

Permalink
Merge pull request #19 from RTLer/analysis-zY9Wv0
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
RTLer authored Jan 17, 2018
2 parents af892c5 + c0fe0a6 commit 0239989
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Zarinpal.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

class Zarinpal
{
private $redirectUrl = "https://www.zarinpal.com/pg/StartPay/%u";
private $redirectUrl = 'https://www.zarinpal.com/pg/StartPay/%u';
private $merchantID;
private $driver;
private $Authority;
Expand Down Expand Up @@ -83,7 +83,7 @@ public function verify($status, $amount, $authority)

public function redirect()
{
header('Location: ' . sprintf($this->redirectUrl, $this->Authority));
header('Location: '.sprintf($this->redirectUrl, $this->Authority));
die;
}

Expand All @@ -96,19 +96,19 @@ public function getDriver()
}

/**
* active sandbox mod for test env
* active sandbox mod for test env.
*/
public function enableSandbox()
{
$this->redirectUrl = "https://sandbox.zarinpal.com/pg/StartPay/%u";
$this->redirectUrl = 'https://sandbox.zarinpal.com/pg/StartPay/%u';
$this->getDriver()->enableSandbox();
}

/**
* active zarinGate mode
* active zarinGate mode.
*/
public function isZarinGate()
{
$this->redirectUrl = $this->redirectUrl."/ZarinGate";
$this->redirectUrl = $this->redirectUrl.'/ZarinGate';
}
}

0 comments on commit 0239989

Please sign in to comment.