@@ -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 | /** |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @param string $sName The command name |
| 31 | 31 | * @param array $aAttributes Associative array of attributes that will describe the command |
| 32 | - * @param mixed $mData The data to be associated with this command |
|
| 32 | + * @param string $mData The data to be associated with this command |
|
| 33 | 33 | * @param boolean $bRemoveEmpty If true, remove empty attributes |
| 34 | 34 | * |
| 35 | 35 | * @return Response |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | * Merge the response commands from the specified <Response> object with |
| 41 | 41 | * the response commands in this <Response> object |
| 42 | 42 | * |
| 43 | - * @param Response|array $mCommands The <Response> object |
|
| 43 | + * @param Response $mCommands The <Response> object |
|
| 44 | 44 | * @param boolean $bBefore Add the new commands to the beginning of the list |
| 45 | 45 | * |
| 46 | 46 | * @return void |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | * @param string $sMessage The message to display to the user |
| 74 | 74 | * @param callable $xCallable The function |
| 75 | 75 | * |
| 76 | - * @return Response |
|
| 76 | + * @return JsCommands |
|
| 77 | 77 | */ |
| 78 | 78 | public function confirm($sMessage, $xCallable) |
| 79 | 79 | { |