@@ -27,7 +27,7 @@ |
||
27 | 27 | * |
28 | 28 | * @param string $sName The command name |
29 | 29 | * @param array $aAttributes Associative array of attributes that will describe the command |
30 | - * @param mixed $mData The data to be associated with this command |
|
30 | + * @param string $mData The data to be associated with this command |
|
31 | 31 | * @param boolean $bRemoveEmpty If true, remove empty attributes |
32 | 32 | * |
33 | 33 | * @return Response |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | /** |
272 | 272 | * Get a class instance |
273 | 273 | * |
274 | - * @return object The class instance |
|
274 | + * @return \Jaxon\Plugin\Plugin The class instance |
|
275 | 275 | */ |
276 | 276 | public function get($sClass) |
277 | 277 | { |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | /** |
316 | 316 | * Set an alias |
317 | 317 | * |
318 | - * @param string|ReflectionClass $xClass The class name or the reflection class |
|
318 | + * @param ReflectionClass $xClass The class name or the reflection class |
|
319 | 319 | * |
320 | 320 | * @return null|object |
321 | 321 | */ |
@@ -255,6 +255,7 @@ |
||
255 | 255 | /** |
256 | 256 | * Write javascript files and return the corresponding URI |
257 | 257 | * |
258 | + * @param string $sJsDirectory |
|
258 | 259 | * @return string |
259 | 260 | */ |
260 | 261 | public function createFiles($sJsDirectory, $sJsFileName) |
@@ -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 | /** |