@@ -132,7 +132,7 @@ |
||
| 132 | 132 | * @param mixed $returnVal |
| 133 | 133 | * @param bool $ignoreAjax |
| 134 | 134 | * @param array $ignoredFunctions |
| 135 | - * @return mixed |
|
| 135 | + * @return string|null |
|
| 136 | 136 | */ |
| 137 | 137 | public static function backtrace($returnVal = false, $ignoreAjax = false, $ignoredFunctions = null) |
| 138 | 138 | { |
@@ -217,7 +217,7 @@ |
||
| 217 | 217 | * |
| 218 | 218 | * @todo Mix in custom column mappings |
| 219 | 219 | * |
| 220 | - * @return array |
|
| 220 | + * @return string |
|
| 221 | 221 | **/ |
| 222 | 222 | public function getImportSpec() |
| 223 | 223 | { |
@@ -132,8 +132,8 @@ discard block |
||
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | /** |
| 135 | - * @param $obj DataObject |
|
| 136 | - * @param $message string |
|
| 135 | + * @param DataObject $obj DataObject |
|
| 136 | + * @param string $message string |
|
| 137 | 137 | */ |
| 138 | 138 | public function addCreated($obj, $message = null) |
| 139 | 139 | { |
@@ -146,8 +146,8 @@ discard block |
||
| 146 | 146 | } |
| 147 | 147 | |
| 148 | 148 | /** |
| 149 | - * @param $obj DataObject |
|
| 150 | - * @param $message string |
|
| 149 | + * @param DataObject $obj DataObject |
|
| 150 | + * @param string $message string |
|
| 151 | 151 | */ |
| 152 | 152 | public function addUpdated($obj, $message = null) |
| 153 | 153 | { |
@@ -160,8 +160,8 @@ discard block |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | /** |
| 163 | - * @param $obj DataObject |
|
| 164 | - * @param $message string |
|
| 163 | + * @param DataObject|null $obj DataObject |
|
| 164 | + * @param string $message string |
|
| 165 | 165 | */ |
| 166 | 166 | public function addDeleted($obj, $message = null) |
| 167 | 167 | { |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * @param string $path Path to large file to split |
| 101 | 101 | * @param int $lines Number of lines per file |
| 102 | 102 | * |
| 103 | - * @return array List of file paths |
|
| 103 | + * @return string[] List of file paths |
|
| 104 | 104 | */ |
| 105 | 105 | protected function splitFile($path, $lines = null) |
| 106 | 106 | { |
@@ -304,6 +304,9 @@ discard block |
||
| 304 | 304 | return $this; |
| 305 | 305 | } |
| 306 | 306 | |
| 307 | + /** |
|
| 308 | + * @param string $type |
|
| 309 | + */ |
|
| 307 | 310 | protected function invokeCallbacks($type, $args = array()) |
| 308 | 311 | { |
| 309 | 312 | foreach ($this->callbacks[$type] as $callback) { |
@@ -346,6 +349,9 @@ discard block |
||
| 346 | 349 | $obj->$name = $this->parseValue($value, $fixtures); |
| 347 | 350 | } |
| 348 | 351 | |
| 352 | + /** |
|
| 353 | + * @param string $fieldName |
|
| 354 | + */ |
|
| 349 | 355 | protected function overrideField($obj, $fieldName, $value, $fixtures = null) |
| 350 | 356 | { |
| 351 | 357 | $class = get_class($obj); |
@@ -632,10 +632,10 @@ discard block |
||
| 632 | 632 | /** |
| 633 | 633 | * Assert that the matching email was sent since the last call to clearEmails() |
| 634 | 634 | * All of the parameters can either be a string, or, if they start with "/", a PREG-compatible regular expression. |
| 635 | - * @param $to |
|
| 635 | + * @param string $to |
|
| 636 | 636 | * @param $from |
| 637 | - * @param $subject |
|
| 638 | - * @param $content |
|
| 637 | + * @param string $subject |
|
| 638 | + * @param string $content |
|
| 639 | 639 | * @return array Contains the keys: 'type', 'to', 'from', 'subject', 'content', 'plainContent', 'attachedFiles', |
| 640 | 640 | * 'customHeaders', 'htmlContent', inlineImages' |
| 641 | 641 | */ |
@@ -868,7 +868,7 @@ discard block |
||
| 868 | 868 | * @param string $expectedSQL |
| 869 | 869 | * @param string $actualSQL |
| 870 | 870 | * @param string $message |
| 871 | - * @param float|int $delta |
|
| 871 | + * @param integer $delta |
|
| 872 | 872 | * @param integer $maxDepth |
| 873 | 873 | * @param boolean $canonicalize |
| 874 | 874 | * @param boolean $ignoreCase |
@@ -368,7 +368,7 @@ discard block |
||
| 368 | 368 | * |
| 369 | 369 | * @param PHPUnit_Framework_Test $test current test that is being run |
| 370 | 370 | * @param Exception $e PHPUnit error |
| 371 | - * @return array |
|
| 371 | + * @return string |
|
| 372 | 372 | */ |
| 373 | 373 | private function getTestException(PHPUnit_Framework_Test $test, Exception $e) |
| 374 | 374 | { |
@@ -483,6 +483,9 @@ discard block |
||
| 483 | 483 | echo "</div>"; |
| 484 | 484 | } |
| 485 | 485 | |
| 486 | + /** |
|
| 487 | + * @param string $name |
|
| 488 | + */ |
|
| 486 | 489 | protected function testNameToPhrase($name) |
| 487 | 490 | { |
| 488 | 491 | return ucfirst(preg_replace("/([a-z])([A-Z])/", "$1 $2", $name)); |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | /** |
| 205 | 205 | * Determine if the target folder for new uploads in is visible the field UI. |
| 206 | 206 | * |
| 207 | - * @return boolean |
|
| 207 | + * @return boolean|string |
|
| 208 | 208 | */ |
| 209 | 209 | public function canPreviewFolder() |
| 210 | 210 | { |
@@ -279,6 +279,10 @@ discard block |
||
| 279 | 279 | return $this->record; |
| 280 | 280 | } |
| 281 | 281 | |
| 282 | + /** |
|
| 283 | + * @param null|DataObject $value |
|
| 284 | + * @param DataObject $record |
|
| 285 | + */ |
|
| 282 | 286 | public function setValue($value, $record = null) |
| 283 | 287 | { |
| 284 | 288 | // Extract value from underlying record |
@@ -392,7 +396,7 @@ discard block |
||
| 392 | 396 | /** |
| 393 | 397 | * Determine if the user has permission to upload. |
| 394 | 398 | * |
| 395 | - * @return boolean |
|
| 399 | + * @return boolean|string |
|
| 396 | 400 | */ |
| 397 | 401 | public function canUpload() |
| 398 | 402 | { |
@@ -261,6 +261,9 @@ discard block |
||
| 261 | 261 | |
| 262 | 262 | |
| 263 | 263 | |
| 264 | + /** |
|
| 265 | + * @param boolean $disabled |
|
| 266 | + */ |
|
| 264 | 267 | public function setDisabled($disabled) |
| 265 | 268 | { |
| 266 | 269 | parent::setDisabled($disabled); |
@@ -270,6 +273,9 @@ discard block |
||
| 270 | 273 | return $this; |
| 271 | 274 | } |
| 272 | 275 | |
| 276 | + /** |
|
| 277 | + * @param boolean $readonly |
|
| 278 | + */ |
|
| 273 | 279 | public function setReadonly($readonly) |
| 274 | 280 | { |
| 275 | 281 | parent::setReadonly($readonly); |
@@ -362,6 +368,10 @@ discard block |
||
| 362 | 368 | $this->children->removeByName($fieldName, $dataFieldOnly); |
| 363 | 369 | } |
| 364 | 370 | |
| 371 | + /** |
|
| 372 | + * @param string $fieldName |
|
| 373 | + * @param FormField $newField |
|
| 374 | + */ |
|
| 365 | 375 | public function replaceField($fieldName, $newField) |
| 366 | 376 | { |
| 367 | 377 | return $this->children->replaceField($fieldName, $newField); |
@@ -437,6 +447,9 @@ discard block |
||
| 437 | 447 | return $clone; |
| 438 | 448 | } |
| 439 | 449 | |
| 450 | + /** |
|
| 451 | + * @return boolean |
|
| 452 | + */ |
|
| 440 | 453 | public function IsReadonly() |
| 441 | 454 | { |
| 442 | 455 | return $this->readonly; |
@@ -447,6 +460,7 @@ discard block |
||
| 447 | 460 | * the children collection. Doesn't work recursively. |
| 448 | 461 | * |
| 449 | 462 | * @param string|FormField |
| 463 | + * @param string $field |
|
| 450 | 464 | * @return int Position in children collection (first position starts with 0). Returns FALSE if the field can't |
| 451 | 465 | * be found. |
| 452 | 466 | */ |