codestyle

This commit is contained in:
David Remer 2020-09-02 14:53:30 +03:00
parent ccda439569
commit 5fc8dde271
4 changed files with 21 additions and 7 deletions

View file

@ -198,7 +198,12 @@ class CreditCardGateway extends PayPalGateway {
);
}
/**
* Whether the gateway is available or not.
*
* @return bool
*/
public function is_available() : bool {
return $this->config->has('dcc_enabled') && $this->config->get('dcc_enabled');
return $this->config->has( 'dcc_enabled' ) && $this->config->get( 'dcc_enabled' );
}
}