@@ -161,8 +161,7 @@ |
||
| 161 | 161 | { |
| 162 | 162 | $iNextDotPos = strpos($sName, '.', $sPrefixLen); |
| 163 | 163 | $sOptionName = $iNextDotPos === false ? |
| 164 | - substr($sName, $sPrefixLen) : |
|
| 165 | - substr($sName, $sPrefixLen, $iNextDotPos - $sPrefixLen); |
|
| 164 | + substr($sName, $sPrefixLen) : substr($sName, $sPrefixLen, $iNextDotPos - $sPrefixLen); |
|
| 166 | 165 | $aOptions[$sOptionName] = $sPrefix . $sOptionName; |
| 167 | 166 | } |
| 168 | 167 | } |
@@ -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 | |