@@ -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 | /** |
@@ -27,7 +27,7 @@ discard block |
||
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 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * Merge the response commands from the specified <Response> object with |
39 | 39 | * the response commands in this <Response> object |
40 | 40 | * |
41 | - * @param Response|array $mCommands The <Response> object |
|
41 | + * @param \Jaxon\Response\Response $mCommands The <Response> object |
|
42 | 42 | * @param boolean $bBefore Add the new commands to the beginning of the list |
43 | 43 | * |
44 | 44 | * @return void |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * @param string $sMessage The message to display to the user |
72 | 72 | * @param callable $xCallable The function |
73 | 73 | * |
74 | - * @return Response |
|
74 | + * @return JsCommands |
|
75 | 75 | */ |
76 | 76 | public function confirm($sMessage, $xCallable) |
77 | 77 | { |