@@ -69,8 +69,7 @@ discard block |
||
69 | 69 | public function appendCommands(array $aCommands, bool $bBefore = false) |
70 | 70 | { |
71 | 71 | $this->aCommands = ($bBefore) ? |
72 | - array_merge($aCommands, $this->aCommands) : |
|
73 | - array_merge($this->aCommands, $aCommands); |
|
72 | + array_merge($aCommands, $this->aCommands) : array_merge($this->aCommands, $aCommands); |
|
74 | 73 | } |
75 | 74 | |
76 | 75 | /** |
@@ -94,7 +93,7 @@ discard block |
||
94 | 93 | * |
95 | 94 | * @return ResponseInterface |
96 | 95 | */ |
97 | - public function addCommand(string $sName, array|JsonSerializable $aArgs): ResponseInterface |
|
96 | + public function addCommand(string $sName, array | JsonSerializable $aArgs): ResponseInterface |
|
98 | 97 | { |
99 | 98 | $this->aCommands[] = [ |
100 | 99 | 'name' => $this->str($sName), |
@@ -113,7 +112,7 @@ discard block |
||
113 | 112 | * @return ResponseInterface |
114 | 113 | */ |
115 | 114 | public function addPluginCommand(ResponsePlugin $xPlugin, string $sName, |
116 | - array|JsonSerializable $aArgs): ResponseInterface |
|
115 | + array | JsonSerializable $aArgs): ResponseInterface |
|
117 | 116 | { |
118 | 117 | $this->aCommands[] = [ |
119 | 118 | 'name' => $this->str($sName), |
@@ -132,10 +131,10 @@ discard block |
||
132 | 131 | * |
133 | 132 | * @return ResponseInterface |
134 | 133 | */ |
135 | - protected function _addCommand(string $sName, array|JsonSerializable $aArgs, |
|
134 | + protected function _addCommand(string $sName, array | JsonSerializable $aArgs, |
|
136 | 135 | bool $bRemoveEmpty = false): ResponseInterface |
137 | 136 | { |
138 | - if($bRemoveEmpty) |
|
137 | + if ($bRemoveEmpty) |
|
139 | 138 | { |
140 | 139 | $aArgs = array_filter($aArgs, function($xArg) { |
141 | 140 | return $xArg === ''; |