@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param string $locale Locale/Language to add data for, identical with locale identifier, |
49 | 49 | * see Zend_Locale for more information |
50 | 50 | * @param string $filename XMLTM file to add, full path must be given for access |
51 | - * @param array $option OPTIONAL Options to use |
|
51 | + * @param array $options OPTIONAL Options to use |
|
52 | 52 | * @throws Zend_Translation_Exception |
53 | 53 | * @return array |
54 | 54 | */ |
@@ -116,6 +116,9 @@ discard block |
||
116 | 116 | } |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $filename |
|
121 | + */ |
|
119 | 122 | private function _findEncoding($filename) |
120 | 123 | { |
121 | 124 | $file = file_get_contents($filename, null, null, 0, 100); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * @param string $locale Locale/Language to add data for, identical with locale identifier, |
49 | 49 | * see Zend_Locale for more information |
50 | 50 | * @param string $filename XMLTM file to add, full path must be given for access |
51 | - * @param array $option OPTIONAL Options to use |
|
51 | + * @param array $options OPTIONAL Options to use |
|
52 | 52 | * @throws Zend_Translation_Exception |
53 | 53 | * @return array |
54 | 54 | */ |
@@ -116,6 +116,9 @@ discard block |
||
116 | 116 | } |
117 | 117 | } |
118 | 118 | |
119 | + /** |
|
120 | + * @param string $filename |
|
121 | + */ |
|
119 | 122 | private function _findEncoding($filename) |
120 | 123 | { |
121 | 124 | $file = file_get_contents($filename, null, null, 0, 100); |
@@ -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 | { |
@@ -245,6 +245,10 @@ discard block |
||
245 | 245 | * match. The caller must trim matching lines from the beginning and end |
246 | 246 | * of the portions it is going to specify. |
247 | 247 | */ |
248 | + |
|
249 | + /** |
|
250 | + * @param double $nchunks |
|
251 | + */ |
|
248 | 252 | private function diag($xoff, $xlim, $yoff, $ylim, $nchunks) |
249 | 253 | { |
250 | 254 | $flip = false; |
@@ -356,6 +360,11 @@ discard block |
||
356 | 360 | * Note that XLIM, YLIM are exclusive bounds. |
357 | 361 | * All line numbers are origin-0 and discarded lines are not counted. |
358 | 362 | */ |
363 | + |
|
364 | + /** |
|
365 | + * @param integer $xoff |
|
366 | + * @param integer $yoff |
|
367 | + */ |
|
359 | 368 | private function compareseq($xoff, $xlim, $yoff, $ylim) |
360 | 369 | { |
361 | 370 | // Slide down the bottom initial diagonal. |
@@ -779,6 +788,9 @@ discard block |
||
779 | 788 | return $xbeg . ($xlen ? ($ylen ? 'c' : 'd') : 'a') . $ybeg; |
780 | 789 | } |
781 | 790 | |
791 | + /** |
|
792 | + * @param string $header |
|
793 | + */ |
|
782 | 794 | protected function start_block($header) |
783 | 795 | { |
784 | 796 | echo $header; |