@@ -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 | * |
@@ -162,7 +162,7 @@ |
||
162 | 162 | * @param string $mode clean mode |
163 | 163 | * @param array $tags array of tags |
164 | 164 | * @throws Zend_Cache_Exception |
165 | - * @return boolean true if no problem |
|
165 | + * @return boolean|null true if no problem |
|
166 | 166 | */ |
167 | 167 | public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array()) |
168 | 168 | { |
@@ -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 | { |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | * Check if this file can be modified |
413 | 413 | * |
414 | 414 | * @param Member $member |
415 | - * @return boolean |
|
415 | + * @return boolean|string |
|
416 | 416 | */ |
417 | 417 | public function canEdit($member = null) { |
418 | 418 | if(!$member) { |
@@ -432,7 +432,7 @@ discard block |
||
432 | 432 | * |
433 | 433 | * @param Member $member |
434 | 434 | * @param array $context |
435 | - * @return boolean |
|
435 | + * @return boolean|string |
|
436 | 436 | */ |
437 | 437 | public function canCreate($member = null, $context = array()) { |
438 | 438 | if(!$member) { |
@@ -451,7 +451,7 @@ discard block |
||
451 | 451 | * Check if this file can be deleted |
452 | 452 | * |
453 | 453 | * @param Member $member |
454 | - * @return boolean |
|
454 | + * @return boolean|string |
|
455 | 455 | */ |
456 | 456 | public function canDelete($member = null) { |
457 | 457 | if(!$member) { |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | * |
648 | 648 | * @param string $condition The PHP condition to be evaluated. The page will be called $item |
649 | 649 | * @param array $collator An array, passed by reference, to collect all of the matching descendants. |
650 | - * @return true|null |
|
650 | + * @return boolean|null |
|
651 | 651 | */ |
652 | 652 | public function collateDescendants($condition, &$collator) { |
653 | 653 | if($children = $this->Children()) { |
@@ -1020,6 +1020,7 @@ discard block |
||
1020 | 1020 | * |
1021 | 1021 | * @param String File extension, without dot prefix. Use an asterisk ('*') |
1022 | 1022 | * to specify a generic fallback if no mapping is found for an extension. |
1023 | + * @param string $ext |
|
1023 | 1024 | * @return String Classname for a subclass of {@link File} |
1024 | 1025 | */ |
1025 | 1026 | public static function get_class_for_file_extension($ext) { |
@@ -1163,7 +1164,6 @@ discard block |
||
1163 | 1164 | * Note that the result will not have a leading slash, and should not be used |
1164 | 1165 | * with local file paths. |
1165 | 1166 | * |
1166 | - * @param string $part,... Parts |
|
1167 | 1167 | * @return string |
1168 | 1168 | */ |
1169 | 1169 | public static function join_paths($part = null) { |