|
@@ -69,14 +69,14 @@ class RefillOil extends refill\IRefillOil
|
|
|
|
|
|
public function query($refill_info)
|
|
|
{
|
|
|
-
|
|
|
- $waterno_by_voucher = function($voucher):string {
|
|
|
+ $waterno_by_voucher = function ($voucher): string
|
|
|
+ {
|
|
|
$matches = [];
|
|
|
- $ret = preg_match("/\:(\d+)/",$voucher,$matches);
|
|
|
- if ($ret === 1 && !empty($matches)){
|
|
|
+ $ret = preg_match("/\:(\d+)/", $voucher, $matches);
|
|
|
+ if ($ret === 1 && !empty($matches)) {
|
|
|
return $matches[1];
|
|
|
}
|
|
|
- return '';
|
|
|
+ return '';
|
|
|
};
|
|
|
|
|
|
$params['username'] = config::USER_NAME;
|