@@ -13,11 +13,11 @@ discard block |
||
| 13 | 13 | */ |
| 14 | 14 | private static $instance = null; |
| 15 | 15 | |
| 16 | - public function __construct($config=null){ |
|
| 16 | + public function __construct($config = null) { |
|
| 17 | 17 | $this->config = $config; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | - private function __clone(){} |
|
| 20 | + private function __clone() {} |
|
| 21 | 21 | |
| 22 | 22 | public function __sleep(): array |
| 23 | 23 | { |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | return []; |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | - protected static function init($gateway, $config=null) |
|
| 28 | + protected static function init($gateway, $config = null) |
|
| 29 | 29 | { |
| 30 | 30 | if (!self::$instance instanceof static) { |
| 31 | 31 | self::$instance = new static($config); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * @param $config |
| 42 | 42 | * @return mixed |
| 43 | 43 | */ |
| 44 | - public static function __callStatic($gateway, $config=null) |
|
| 44 | + public static function __callStatic($gateway, $config = null) |
|
| 45 | 45 | { |
| 46 | 46 | return self::init($gateway, ...$config); |
| 47 | 47 | } |