@@ -59,16 +59,16 @@ discard block |
||
| 59 | 59 | public function __construct(?array $config = null) |
| 60 | 60 | { |
| 61 | 61 | parent::__construct([]); |
| 62 | - if(!empty($config) && array_key_exists('channel_prefix', $config)) { |
|
| 62 | + if (!empty($config) && array_key_exists('channel_prefix', $config)) { |
|
| 63 | 63 | $this->channelPrefix = $config['channel_prefix']; |
| 64 | 64 | } |
| 65 | - if(!empty($config) && array_key_exists('display', $config)) { |
|
| 65 | + if (!empty($config) && array_key_exists('display', $config)) { |
|
| 66 | 66 | $this->displayConfig = $config['display']; |
| 67 | 67 | } |
| 68 | - if(!empty($config) && array_key_exists('user_class', $config)) { |
|
| 68 | + if (!empty($config) && array_key_exists('user_class', $config)) { |
|
| 69 | 69 | $this->userClass = $config['user_class']; |
| 70 | 70 | } |
| 71 | - if(!empty($config) && array_key_exists('user_methods', $config)) { |
|
| 71 | + if (!empty($config) && array_key_exists('user_methods', $config)) { |
|
| 72 | 72 | $this->userMethods = $config['user_methods']; |
| 73 | 73 | } |
| 74 | 74 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | */ |
| 179 | 179 | private function addChannelInfo(): void |
| 180 | 180 | { |
| 181 | - if(!array_key_exists('global_channel', $this->record['extra'])){ |
|
| 181 | + if (!array_key_exists('global_channel', $this->record['extra'])) { |
|
| 182 | 182 | $this->addInfo('global_channel', $this->record['channel']); |
| 183 | 183 | } |
| 184 | 184 | |