@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | * Set the default autoloader implementation |
| 139 | 139 | * |
| 140 | 140 | * @param string|array $callback PHP callback |
| 141 | - * @return void |
|
| 141 | + * @return Zend_Loader_Autoloader |
|
| 142 | 142 | */ |
| 143 | 143 | public function setDefaultAutoloader($callback) |
| 144 | 144 | { |
@@ -371,8 +371,8 @@ discard block |
||
| 371 | 371 | /** |
| 372 | 372 | * Add an autoloader to the beginning of the stack |
| 373 | 373 | * |
| 374 | - * @param object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
| 375 | - * @param string|array $namespace Specific namespace(s) under which to register callback |
|
| 374 | + * @param Zend_Loader_Autoloader_Resource $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
| 375 | + * @param string $namespace Specific namespace(s) under which to register callback |
|
| 376 | 376 | * @return Zend_Loader_Autoloader |
| 377 | 377 | */ |
| 378 | 378 | public function unshiftAutoloader($callback, $namespace = '') |
@@ -394,7 +394,7 @@ discard block |
||
| 394 | 394 | /** |
| 395 | 395 | * Append an autoloader to the autoloader stack |
| 396 | 396 | * |
| 397 | - * @param object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
| 397 | + * @param string[] $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
| 398 | 398 | * @param string|array $namespace Specific namespace(s) under which to register callback |
| 399 | 399 | * @return Zend_Loader_Autoloader |
| 400 | 400 | */ |
@@ -417,7 +417,7 @@ discard block |
||
| 417 | 417 | /** |
| 418 | 418 | * Remove an autoloader from the autoloader stack |
| 419 | 419 | * |
| 420 | - * @param object|array|string $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
| 420 | + * @param string[] $callback PHP callback or Zend_Loader_Autoloader_Interface implementation |
|
| 421 | 421 | * @param null|string|array $namespace Specific namespace(s) from which to remove autoloader |
| 422 | 422 | * @return Zend_Loader_Autoloader |
| 423 | 423 | */ |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | * Internal autoloader implementation |
| 468 | 468 | * |
| 469 | 469 | * @param string $class |
| 470 | - * @return bool |
|
| 470 | + * @return string|false |
|
| 471 | 471 | */ |
| 472 | 472 | protected function _autoload($class) |
| 473 | 473 | { |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | /** |
| 18 | 18 | * Generates the adapter |
| 19 | 19 | * |
| 20 | - * @param array|Zend_Config $options Translation content |
|
| 20 | + * @param string $options Translation content |
|
| 21 | 21 | */ |
| 22 | 22 | public function __construct($options = array()) { |
| 23 | 23 | $this->_options['keyDelimiter'] = "."; |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @param string|array $data Filename and full path to the translation source |
| 32 | 32 | * @param string $locale Locale/Language to add data for, identical with locale identifier, |
| 33 | 33 | * see Zend_Locale for more information |
| 34 | - * @param array $option OPTIONAL Options to use |
|
| 34 | + * @param array $options OPTIONAL Options to use |
|
| 35 | 35 | */ |
| 36 | 36 | protected function _loadTranslationData($data, $locale, array $options = array()) |
| 37 | 37 | { |
@@ -159,9 +159,9 @@ |
||
| 159 | 159 | /** |
| 160 | 160 | * Parses a scalar to a YAML string. |
| 161 | 161 | * |
| 162 | - * @param scalar $scalar |
|
| 162 | + * @param string $scalar |
|
| 163 | 163 | * @param string $delimiters |
| 164 | - * @param array $stringDelimiter |
|
| 164 | + * @param array $stringDelimiters |
|
| 165 | 165 | * @param integer $i |
| 166 | 166 | * @param boolean $evaluate |
| 167 | 167 | * |
@@ -732,6 +732,9 @@ discard block |
||
| 732 | 732 | return $result; |
| 733 | 733 | } |
| 734 | 734 | |
| 735 | + /** |
|
| 736 | + * @param string $mode |
|
| 737 | + */ |
|
| 735 | 738 | protected function _get($dir, $mode, $tags = array()) |
| 736 | 739 | { |
| 737 | 740 | if (!is_dir($dir)) { |
@@ -819,6 +822,7 @@ discard block |
||
| 819 | 822 | /** |
| 820 | 823 | * Compute & return the expire time |
| 821 | 824 | * |
| 825 | + * @param integer $lifetime |
|
| 822 | 826 | * @return int expire time (unix timestamp) |
| 823 | 827 | */ |
| 824 | 828 | protected function _expireTime($lifetime) |
@@ -59,6 +59,9 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | // -- Public Static Methods -------------------------------------------------- |
| 61 | 61 | |
| 62 | + /** |
|
| 63 | + * @param string $js |
|
| 64 | + */ |
|
| 62 | 65 | public static function minify($js) {
|
| 63 | 66 | $jsmin = new JSMin($js); |
| 64 | 67 | return $jsmin->min(); |
@@ -82,6 +85,10 @@ discard block |
||
| 82 | 85 | action treats a string as a single character. Wow! |
| 83 | 86 | action recognizes a regular expression if it is preceded by ( or , or =. |
| 84 | 87 | */ |
| 88 | + |
|
| 89 | + /** |
|
| 90 | + * @param integer $d |
|
| 91 | + */ |
|
| 85 | 92 | protected function action($d) {
|
| 86 | 93 | switch($d) {
|
| 87 | 94 | case 1: |
@@ -160,6 +167,9 @@ discard block |
||
| 160 | 167 | } |
| 161 | 168 | } |
| 162 | 169 | |
| 170 | + /** |
|
| 171 | + * @return string |
|
| 172 | + */ |
|
| 163 | 173 | protected function get() {
|
| 164 | 174 | $c = $this->lookAhead; |
| 165 | 175 | $this->lookAhead = null; |
@@ -187,6 +197,10 @@ discard block |
||
| 187 | 197 | /* isAlphanum -- return true if the character is a letter, digit, underscore, |
| 188 | 198 | dollar sign, or non-ASCII character. |
| 189 | 199 | */ |
| 200 | + |
|
| 201 | + /** |
|
| 202 | + * @param string $c |
|
| 203 | + */ |
|
| 190 | 204 | protected function isAlphaNum($c) {
|
| 191 | 205 | return ord($c) > 126 || $c === '\\' || preg_match('/^[\w\$]$/', $c) === 1;
|
| 192 | 206 | } |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * Test if a cache is available or not (for the given id) |
| 57 | 57 | * |
| 58 | 58 | * @param string $id cache id |
| 59 | - * @return mixed false (a cache is not available) or "last modified" timestamp (int) of the available cache record |
|
| 59 | + * @return boolean false (a cache is not available) or "last modified" timestamp (int) of the available cache record |
|
| 60 | 60 | */ |
| 61 | 61 | public function test($id) |
| 62 | 62 | { |
@@ -192,7 +192,7 @@ discard block |
||
| 192 | 192 | * - mtime : timestamp of last modification time |
| 193 | 193 | * |
| 194 | 194 | * @param string $id cache id |
| 195 | - * @return array array of metadatas (false if the cache id is not found) |
|
| 195 | + * @return boolean array of metadatas (false if the cache id is not found) |
|
| 196 | 196 | */ |
| 197 | 197 | public function getMetadatas($id) |
| 198 | 198 | { |
@@ -136,7 +136,7 @@ |
||
| 136 | 136 | * Helper method to calculate the correct class path |
| 137 | 137 | * |
| 138 | 138 | * @param string $class |
| 139 | - * @return False if not matched other wise the correct path |
|
| 139 | + * @return false|string if not matched other wise the correct path |
|
| 140 | 140 | */ |
| 141 | 141 | public function getClassPath($class) |
| 142 | 142 | { |
@@ -283,7 +283,7 @@ |
||
| 283 | 283 | * Whether or not a Plugin by a specific name is loaded |
| 284 | 284 | * |
| 285 | 285 | * @param string $name |
| 286 | - * @return Zend_Loader_PluginLoader |
|
| 286 | + * @return boolean |
|
| 287 | 287 | */ |
| 288 | 288 | public function isLoaded($name) |
| 289 | 289 | { |
@@ -191,7 +191,7 @@ |
||
| 191 | 191 | /** |
| 192 | 192 | * Returns the backend |
| 193 | 193 | * |
| 194 | - * @return Zend_Cache_Backend backend object |
|
| 194 | + * @return Zend_Cache_Backend_Interface backend object |
|
| 195 | 195 | */ |
| 196 | 196 | public function getBackend() |
| 197 | 197 | { |