@@ -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 = []; |