| @@ -162,19 +162,18 @@ discard block | ||
| 162 | 162 | private function getPathAsStr() | 
| 163 | 163 |      { | 
| 164 | 164 | $jQuery = 'jaxon.jq'; // The JQuery selector | 
| 165 | - if(!$this->sPath) | |
| 165 | + if (!$this->sPath) | |
| 166 | 166 |          { | 
| 167 | 167 | // If an empty selector is given, use the event target instead | 
| 168 | 168 | return "$jQuery(e.currentTarget)"; | 
| 169 | 169 | } | 
| 170 | - if(!$this->xContext) | |
| 170 | + if (!$this->xContext) | |
| 171 | 171 |          { | 
| 172 | 172 |              return "$jQuery('" . $this->sPath . "')"; | 
| 173 | 173 | } | 
| 174 | 174 | |
| 175 | 175 | $sContext = is_a($this->xContext, self::class) ? | 
| 176 | - $this->xContext->getScript() : | |
| 177 | -            "$jQuery('" . trim("{$this->xContext}") . "')"; | |
| 176 | +            $this->xContext->getScript() : "$jQuery('" . trim("{$this->xContext}") . "')"; | |
| 178 | 177 |          return "$jQuery('{$this->sPath}', $sContext)"; | 
| 179 | 178 | } | 
| 180 | 179 | |
| @@ -196,10 +195,10 @@ discard block | ||
| 196 | 195 |      { | 
| 197 | 196 | $sName = $this->sPath ?? 'this'; | 
| 198 | 197 | $aCall = ['_type' => 'select', '_name' => $sName]; | 
| 199 | - if(($this->xContext)) | |
| 198 | + if (($this->xContext)) | |
| 200 | 199 |          { | 
| 201 | 200 | $aCall['context'] = is_a($this->xContext, self::class) ? | 
| 202 | - $this->xContext->jsonSerialize() :$this->xContext; | |
| 201 | + $this->xContext->jsonSerialize() : $this->xContext; | |
| 203 | 202 | } | 
| 204 | 203 | return $aCall; | 
| 205 | 204 | } | 
| @@ -210,16 +209,16 @@ discard block | ||
| 210 | 209 | public function toArray(): array | 
| 211 | 210 |      { | 
| 212 | 211 | $aCalls = [$this->getPathAsArray()]; | 
| 213 | - foreach($this->aCalls as $xCall) | |
| 212 | + foreach ($this->aCalls as $xCall) | |
| 214 | 213 |          { | 
| 215 | 214 | $aCalls[] = $xCall->jsonSerialize(); | 
| 216 | 215 | } | 
| 217 | - if($this->bToInt) | |
| 216 | + if ($this->bToInt) | |
| 218 | 217 |          { | 
| 219 | 218 | $aCalls[] = [ | 
| 220 | 219 | '_type' => 'func', | 
| 221 | 220 | '_name' => 'toInt', | 
| 222 | - 'args' => [[ '_type' => '_', '_name' => 'this' ]], | |
| 221 | + 'args' => [['_type' => '_', '_name' => 'this']], | |
| 223 | 222 | ]; | 
| 224 | 223 | } | 
| 225 | 224 | return ['_type' => $this->getType(), 'calls' => $aCalls]; |