diff --git a/WePayV3/Contracts/BasicWePay.php b/WePayV3/Contracts/BasicWePay.php index 7807649..9092eb1 100644 --- a/WePayV3/Contracts/BasicWePay.php +++ b/WePayV3/Contracts/BasicWePay.php @@ -294,7 +294,9 @@ abstract class BasicWePay protected function _autoCert() { $certs = $this->tmpFile("{$this->config['mch_id']}_certs"); - if (is_array($certs)) foreach ($certs as $k => $v) if ($v['expire'] < time()) unset($certs[$k]); + if (is_array($certs)) foreach ($certs as $k => $v) { + if ($v['expire'] < time()) unset($certs[$k]); + } if (empty($certs)) { Cert::instance($this->config)->download(); $certs = $this->tmpFile("{$this->config['mch_id']}_certs");