@@ -40,11 +40,10 @@ discard block |
||
| 40 | 40 | * |
| 41 | 41 | * @param ConnectorContract|array|string $config |string $config |
| 42 | 42 | */ |
| 43 | - public function __construct(ConnectorContract|array|string $config = []) |
|
| 43 | + public function __construct(ConnectorContract | array | string $config = []) |
|
| 44 | 44 | { |
| 45 | 45 | $this->configs = ($config instanceof ConnectorContract) ? |
| 46 | - $this->connectorConfigurable($config) : |
|
| 47 | - $this->webHookConfigurable($config); |
|
| 46 | + $this->connectorConfigurable($config) : $this->webHookConfigurable($config); |
|
| 48 | 47 | } |
| 49 | 48 | |
| 50 | 49 | /** |
@@ -80,7 +79,7 @@ discard block |
||
| 80 | 79 | * @param array|string $config |
| 81 | 80 | * @return Hook |
| 82 | 81 | */ |
| 83 | - public function configurable(array|string $config): self |
|
| 82 | + public function configurable(array | string $config): self |
|
| 84 | 83 | { |
| 85 | 84 | $this->configs = $this->webHookConfigurable($config); |
| 86 | 85 | |
@@ -107,7 +106,7 @@ discard block |
||
| 107 | 106 | * @param array|string $config |
| 108 | 107 | * @return array |
| 109 | 108 | */ |
| 110 | - private function webHookConfigurable(array|string $config): array |
|
| 109 | + private function webHookConfigurable(array | string $config): array |
|
| 111 | 110 | { |
| 112 | 111 | $hookConfig = new Config($config); |
| 113 | 112 | |
@@ -157,7 +156,7 @@ discard block |
||
| 157 | 156 | { |
| 158 | 157 | $this->method = $method; |
| 159 | 158 | |
| 160 | - $this->pathUri = Str::contains($url, '/') ? $url : Arr::get($this->hooks, $url. '.' .$method, $url); |
|
| 159 | + $this->pathUri = Str::contains($url, '/') ? $url : Arr::get($this->hooks, $url . '.' . $method, $url); |
|
| 161 | 160 | } |
| 162 | 161 | |
| 163 | 162 | /** |