@@ -427,9 +427,9 @@ |
||
| 427 | 427 | * it's only advisable to send small files through this method. |
| 428 | 428 | * |
| 429 | 429 | * @static |
| 430 | - * @param $fileData |
|
| 430 | + * @param string $fileData |
|
| 431 | 431 | * @param $fileName |
| 432 | - * @param null $mimeType |
|
| 432 | + * @param string $mimeType |
|
| 433 | 433 | * @return SS_HTTPResponse |
| 434 | 434 | */ |
| 435 | 435 | public static function send_file($fileData, $fileName, $mimeType = null) { |
@@ -289,7 +289,7 @@ |
||
| 289 | 289 | * |
| 290 | 290 | * Must not raise HTTPResponse_Exceptions - instead it should return |
| 291 | 291 | * |
| 292 | - * @param $request |
|
| 292 | + * @param HTTPRequest $request |
|
| 293 | 293 | * @param $action |
| 294 | 294 | * @return HTTPResponse |
| 295 | 295 | */ |
@@ -139,6 +139,7 @@ |
||
| 139 | 139 | /** |
| 140 | 140 | * Get the body element, or false if there isn't one (we haven't loaded any content |
| 141 | 141 | * or this instance is in an invalid state) |
| 142 | + * @return \DOMElement |
|
| 142 | 143 | */ |
| 143 | 144 | public function getBody() { |
| 144 | 145 | $doc = $this->getDocument(); |
@@ -54,9 +54,9 @@ discard block |
||
| 54 | 54 | * |
| 55 | 55 | * @see http://www.w3.org/TR/REC-html40/types.html#type-cdata |
| 56 | 56 | * |
| 57 | - * @param array|string $val String to escape, or array of strings |
|
| 57 | + * @param string $val String to escape, or array of strings |
|
| 58 | 58 | * |
| 59 | - * @return array|string |
|
| 59 | + * @return string |
|
| 60 | 60 | */ |
| 61 | 61 | public static function raw2htmlname($val) { |
| 62 | 62 | if(is_array($val)) { |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | * table, or column name. Supports encoding of multi identfiers separated by |
| 183 | 183 | * a delimiter (e.g. ".") |
| 184 | 184 | * |
| 185 | - * @param string|array $identifier The identifier to escape. E.g. 'SiteTree.Title' or list of identifiers |
|
| 185 | + * @param string $identifier The identifier to escape. E.g. 'SiteTree.Title' or list of identifiers |
|
| 186 | 186 | * to be joined via the separator. |
| 187 | 187 | * @param string $separator The string that delimits subsequent identifiers |
| 188 | 188 | * @return string The escaped identifier. E.g. '"SiteTree"."Title"' |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | * @uses html2raw() |
| 197 | 197 | * @todo Currently &#xxx; entries are stripped; they should be converted |
| 198 | 198 | * @param mixed $val |
| 199 | - * @return array|string |
|
| 199 | + * @return string |
|
| 200 | 200 | */ |
| 201 | 201 | public static function xml2raw($val) { |
| 202 | 202 | if(is_array($val)) { |
@@ -267,6 +267,7 @@ discard block |
||
| 267 | 267 | * call this function directly, Please use {@link Convert::xml2array()} |
| 268 | 268 | * |
| 269 | 269 | * @param SimpleXMLElement |
| 270 | + * @param SimpleXMLElement $xml |
|
| 270 | 271 | * |
| 271 | 272 | * @return mixed |
| 272 | 273 | */ |
@@ -469,7 +470,7 @@ discard block |
||
| 469 | 470 | * - IDField => idField |
| 470 | 471 | * - iDField => iDField |
| 471 | 472 | * |
| 472 | - * @param $str |
|
| 473 | + * @param string $str |
|
| 473 | 474 | * @return string |
| 474 | 475 | */ |
| 475 | 476 | public static function upperCamelToLowerCamel($str) { |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | /** |
| 219 | 219 | * Returns a lowercase array of all the class names in the manifest. |
| 220 | 220 | * |
| 221 | - * @return array |
|
| 221 | + * @return string[] |
|
| 222 | 222 | */ |
| 223 | 223 | public function getClassNames() { |
| 224 | 224 | return array_keys($this->classes); |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | * Returns an array containing all the descendants (direct and indirect) |
| 247 | 247 | * of a class. |
| 248 | 248 | * |
| 249 | - * @param string|object $class |
|
| 249 | + * @param string $class |
|
| 250 | 250 | * @return array |
| 251 | 251 | */ |
| 252 | 252 | public function getDescendantsOf($class) { |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | 135 | * @param $obj DataObject |
| 136 | - * @param $message string |
|
| 136 | + * @param string $message string |
|
| 137 | 137 | */ |
| 138 | 138 | public function addCreated($obj, $message = null) |
| 139 | 139 | { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | 149 | * @param $obj DataObject |
| 150 | - * @param $message string |
|
| 150 | + * @param string $message string |
|
| 151 | 151 | */ |
| 152 | 152 | public function addUpdated($obj, $message = null) |
| 153 | 153 | { |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | /** |
| 201 | 201 | * Determine if the target folder for new uploads in is visible the field UI. |
| 202 | 202 | * |
| 203 | - * @return boolean |
|
| 203 | + * @return boolean|string |
|
| 204 | 204 | */ |
| 205 | 205 | public function canPreviewFolder() { |
| 206 | 206 | if(!$this->isActive()) { |
@@ -375,7 +375,7 @@ discard block |
||
| 375 | 375 | /** |
| 376 | 376 | * Determine if the user has permission to upload. |
| 377 | 377 | * |
| 378 | - * @return boolean |
|
| 378 | + * @return boolean|string |
|
| 379 | 379 | */ |
| 380 | 380 | public function canUpload() { |
| 381 | 381 | if(!$this->isActive()) { |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | * Load a value into this MultiSelectField |
| 58 | 58 | * |
| 59 | 59 | * @param mixed $val |
| 60 | - * @param null|array|DataObject $obj {@see Form::loadDataFrom} |
|
| 60 | + * @param DataObject|null $obj {@see Form::loadDataFrom} |
|
| 61 | 61 | * @return $this |
| 62 | 62 | */ |
| 63 | 63 | public function setValue($val, $obj = null) { |