@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | /** |
| 107 | 107 | * Get value of display_errors ini value |
| 108 | 108 | * |
| 109 | - * @return mixed |
|
| 109 | + * @return string |
|
| 110 | 110 | */ |
| 111 | 111 | protected function getDisplayErrors() |
| 112 | 112 | { |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | * Add this callback to the chain of callbacks to call along with the state |
| 118 | 118 | * that $error must be in this point in the chain for the callback to be called |
| 119 | 119 | * |
| 120 | - * @param $callback - The callback to call |
|
| 120 | + * @param callable $callback - The callback to call |
|
| 121 | 121 | * @param $onErrorState - false if only call if no errors yet, true if only call if already errors, null for either |
| 122 | 122 | * @return $this |
| 123 | 123 | */ |
@@ -38,6 +38,9 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | protected $token = null; |
| 40 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $token |
|
| 43 | + */ |
|
| 41 | 44 | protected function pathForToken($token) |
| 42 | 45 | { |
| 43 | 46 | return TEMP_FOLDER.'/token_'.preg_replace('/[^a-z0-9]+/', '', $token); |
@@ -247,7 +250,7 @@ discard block |
||
| 247 | 250 | * Given a list of token names, suppress all tokens that have not been validated, and |
| 248 | 251 | * return the non-validated token with the highest priority |
| 249 | 252 | * |
| 250 | - * @param array $keys List of token keys in ascending priority (low to high) |
|
| 253 | + * @param string[] $keys List of token keys in ascending priority (low to high) |
|
| 251 | 254 | * @return ParameterConfirmationToken The token container for the unvalidated $key given with the highest priority |
| 252 | 255 | */ |
| 253 | 256 | public static function prepare_tokens($keys) |
@@ -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 | { |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | * greater than or equal to this version, a message will be raised |
| 76 | 76 | * |
| 77 | 77 | * @static |
| 78 | - * @param $ver string - |
|
| 78 | + * @param string $ver string - |
|
| 79 | 79 | * A php standard version string, see http://php.net/manual/en/function.version-compare.php for details. |
| 80 | 80 | * @param null $forModule string - |
| 81 | 81 | * The name of a module. The passed version will be used as the check value for |
@@ -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 | { |
@@ -487,6 +487,9 @@ discard block |
||
| 487 | 487 | echo "</div>"; |
| 488 | 488 | } |
| 489 | 489 | |
| 490 | + /** |
|
| 491 | + * @param string $name |
|
| 492 | + */ |
|
| 490 | 493 | protected function testNameToPhrase($name) |
| 491 | 494 | { |
| 492 | 495 | return ucfirst(preg_replace("/([a-z])([A-Z])/", "$1 $2", $name)); |