@@ -1028,6 +1028,10 @@ discard block |
||
| 1028 | 1028 | |
| 1029 | 1029 | var $list_level = 0; |
| 1030 | 1030 | |
| 1031 | + /** |
|
| 1032 | + * @param string $list_str |
|
| 1033 | + * @param string $marker_any_re |
|
| 1034 | + */ |
|
| 1031 | 1035 | function processListItems($list_str, $marker_any_re) { |
| 1032 | 1036 | # |
| 1033 | 1037 | # Process the contents of a single ordered or unordered list, splitting it |
@@ -1131,6 +1135,9 @@ discard block |
||
| 1131 | 1135 | } |
| 1132 | 1136 | |
| 1133 | 1137 | |
| 1138 | + /** |
|
| 1139 | + * @param string $code |
|
| 1140 | + */ |
|
| 1134 | 1141 | function makeCodeSpan($code) { |
| 1135 | 1142 | # |
| 1136 | 1143 | # Create a code span markup for $code. Called from handleSpanToken. |
@@ -1612,6 +1619,9 @@ discard block |
||
| 1612 | 1619 | # hanlde UTF-8 if the default function does not exist. |
| 1613 | 1620 | var $utf8_strlen = 'mb_strlen'; |
| 1614 | 1621 | |
| 1622 | + /** |
|
| 1623 | + * @param string $text |
|
| 1624 | + */ |
|
| 1615 | 1625 | function detab($text) { |
| 1616 | 1626 | # |
| 1617 | 1627 | # Replace tabs with the appropriate amount of space. |
@@ -2035,6 +2045,12 @@ discard block |
||
| 2035 | 2045 | |
| 2036 | 2046 | return array($parsed, $text); |
| 2037 | 2047 | } |
| 2048 | + |
|
| 2049 | + /** |
|
| 2050 | + * @param string $text |
|
| 2051 | + * @param string $hash_method |
|
| 2052 | + * @param boolean $md_attr |
|
| 2053 | + */ |
|
| 2038 | 2054 | function _hashHTMLBlocks_inHTML($text, $hash_method, $md_attr) { |
| 2039 | 2055 | # |
| 2040 | 2056 | # Parse HTML, calling _HashHTMLBlocks_InMarkdown for block tags. |
@@ -2464,6 +2480,9 @@ discard block |
||
| 2464 | 2480 | } |
| 2465 | 2481 | |
| 2466 | 2482 | |
| 2483 | + /** |
|
| 2484 | + * @return string |
|
| 2485 | + */ |
|
| 2467 | 2486 | function processDefListItems($list_str) { |
| 2468 | 2487 | # |
| 2469 | 2488 | # Process the contents of a single definition list, splitting it |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | * @param Model $Model |
| 136 | 136 | * @param string $type Type of find operation (all / first / count / neighbors / list / threaded) |
| 137 | 137 | * @param array $query Option fields (conditions / fields / joins / limit / offset / order / page / group / callbacks) |
| 138 | - * @return array Array of records |
|
| 138 | + * @return string Array of records |
|
| 139 | 139 | * @link http://book.cakephp.org/view/1018/find |
| 140 | 140 | */ |
| 141 | 141 | public function getQuery(Model $Model, $type = 'first', $query = array()) { |
@@ -762,6 +762,7 @@ |
||
| 762 | 762 | /** |
| 763 | 763 | * replace the base64encoded values that could harm the url (/ and =) with harmless characters |
| 764 | 764 | * |
| 765 | + * @param string $str |
|
| 765 | 766 | * @return string |
| 766 | 767 | */ |
| 767 | 768 | protected function _urlEncode($str) { |
@@ -119,7 +119,7 @@ |
||
| 119 | 119 | * |
| 120 | 120 | * @param $data |
| 121 | 121 | * @param null $field |
| 122 | - * @return array |
|
| 122 | + * @return integer[] |
|
| 123 | 123 | */ |
| 124 | 124 | public function makeRangeCondition($data, $field = null) { |
| 125 | 125 | if (is_string($data)) { |
@@ -181,6 +181,9 @@ |
||
| 181 | 181 | ); |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | + /** |
|
| 185 | + * @param string[] $methods |
|
| 186 | + */ |
|
| 184 | 187 | public function mock($methods = null) { |
| 185 | 188 | $Collection = new ComponentCollection(); |
| 186 | 189 | $this->CurrentUser = new CurrentUserComponent($Collection); |
@@ -26,6 +26,9 @@ discard block |
||
| 26 | 26 | $this->_testSingleLine($this->nextId - 1); |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param integer $id |
|
| 31 | + */ |
|
| 29 | 32 | protected function _testSingleLine($id) { |
| 30 | 33 | $this->_testInlineCloseButtons($id); |
| 31 | 34 | $this->_testInlineAnswerCloseButton($id); |
@@ -57,6 +60,9 @@ discard block |
||
| 57 | 60 | $this->assertFalse($this->_isPostingVisible($id)); |
| 58 | 61 | } |
| 59 | 62 | |
| 63 | + /** |
|
| 64 | + * @param integer $parentId |
|
| 65 | + */ |
|
| 60 | 66 | protected function _createNewInlineAnswer($parentId) { |
| 61 | 67 | |
| 62 | 68 | $this->_openThreadline($parentId); |
@@ -81,6 +81,9 @@ |
||
| 81 | 81 | endif; |
| 82 | 82 | } |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $css |
|
| 86 | + */ |
|
| 84 | 87 | protected function _buildSmilies(array &$bbcode, &$css) { |
| 85 | 88 | $smilies = $this->_View->get('smiliesData')->get(); |
| 86 | 89 | $_smiliesPacked = []; |