@@ -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 | { |
@@ -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; |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | /** |
| 146 | 146 | * Reads the raw content and send events |
| 147 | 147 | * into the page to be built. |
| 148 | - * @param $response SimpleHttpResponse Fetched response. |
|
| 148 | + * @param SilverStripe\Dev\TestSession_STResponseWrapper $response SimpleHttpResponse Fetched response. |
|
| 149 | 149 | * @return SimplePage Newly parsed page. |
| 150 | 150 | * @access public |
| 151 | 151 | */ |
@@ -170,8 +170,8 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | /** |
| 172 | 172 | * Creates the parser used with the builder. |
| 173 | - * @param $listener SimpleSaxListener Target of parser. |
|
| 174 | - * @return SimpleSaxParser Parser to generate |
|
| 173 | + * @param SimplePageBuilder $listener SimpleSaxListener Target of parser. |
|
| 174 | + * @return SimpleHtmlSaxParser Parser to generate |
|
| 175 | 175 | * events for the builder. |
| 176 | 176 | * @access protected |
| 177 | 177 | */ |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | |
| 407 | 407 | /** |
| 408 | 408 | * Original request as bytes sent down the wire. |
| 409 | - * @return mixed Sent content. |
|
| 409 | + * @return string|false Sent content. |
|
| 410 | 410 | * @access public |
| 411 | 411 | */ |
| 412 | 412 | function getRequest() { |
@@ -415,7 +415,7 @@ discard block |
||
| 415 | 415 | |
| 416 | 416 | /** |
| 417 | 417 | * Accessor for raw text of page. |
| 418 | - * @return string Raw unparsed content. |
|
| 418 | + * @return boolean Raw unparsed content. |
|
| 419 | 419 | * @access public |
| 420 | 420 | */ |
| 421 | 421 | function getRaw() { |
@@ -467,7 +467,7 @@ discard block |
||
| 467 | 467 | |
| 468 | 468 | /** |
| 469 | 469 | * Base URL if set via BASE tag page url otherwise |
| 470 | - * @return SimpleUrl Base url. |
|
| 470 | + * @return boolean Base url. |
|
| 471 | 471 | * @access public |
| 472 | 472 | */ |
| 473 | 473 | function getBaseUrl() { |
@@ -658,7 +658,7 @@ discard block |
||
| 658 | 658 | /** |
| 659 | 659 | * Opens a frameset. A frameset may contain nested |
| 660 | 660 | * frameset tags. |
| 661 | - * @param SimpleFramesetTag $tag Tag to accept. |
|
| 661 | + * @param SimpleTag $tag Tag to accept. |
|
| 662 | 662 | * @access public |
| 663 | 663 | */ |
| 664 | 664 | function acceptFramesetStart(&$tag) { |