@@ -268,8 +268,7 @@ |
||
268 | 268 | } |
269 | 269 | |
270 | 270 | $this->aCommands = ($bBefore) ? |
271 | - array_merge($aCommands, $this->aCommands) : |
|
272 | - array_merge($this->aCommands, $aCommands); |
|
271 | + array_merge($aCommands, $this->aCommands) : array_merge($this->aCommands, $aCommands); |
|
273 | 272 | } |
274 | 273 | |
275 | 274 | /** |
@@ -18,8 +18,7 @@ |
||
18 | 18 | */ |
19 | 19 | public function __construct() |
20 | 20 | { |
21 | - $aData = isset($_POST['jxnbags']) ? $this->readData($_POST) : |
|
22 | - (isset($_GET['jxnbags']) ? $this->readData($_GET) : []); |
|
21 | + $aData = isset($_POST['jxnbags']) ? $this->readData($_POST) : (isset($_GET['jxnbags']) ? $this->readData($_GET) : []); |
|
23 | 22 | $this->xBag = new DataBag\Bag($aData); |
24 | 23 | } |
25 | 24 |
@@ -21,7 +21,8 @@ |
||
21 | 21 | * @return void |
22 | 22 | */ |
23 | 23 | public function appendResponse($mCommands, bool $bBefore = false) |
24 | - {} |
|
24 | + { |
|
25 | +} |
|
25 | 26 | |
26 | 27 | /** |
27 | 28 | * Add a command to display a debug message to the user |
@@ -99,7 +99,7 @@ |
||
99 | 99 | { |
100 | 100 | return bin2hex(random_bytes(7)); |
101 | 101 | } |
102 | - catch(Exception $e){} |
|
102 | + catch(Exception $e) {} |
|
103 | 103 | // Generate the name |
104 | 104 | $sChars = '0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz'; |
105 | 105 | return substr(str_shuffle($sChars), 0, 14); |
@@ -99,7 +99,9 @@ |
||
99 | 99 | { |
100 | 100 | return bin2hex(random_bytes(7)); |
101 | 101 | } |
102 | - catch(Exception $e){} |
|
102 | + catch(Exception $e) |
|
103 | + { |
|
104 | +} |
|
103 | 105 | // Generate the name |
104 | 106 | $sChars = '0123456789abcdefghijklmnopqrstuvwxyz0123456789abcdefghijklmnopqrstuvwxyz'; |
105 | 107 | return substr(str_shuffle($sChars), 0, 14); |