@@ -222,6 +222,9 @@ |
||
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | |
| 225 | + /** |
|
| 226 | + * @param resource $file |
|
| 227 | + */ |
|
| 225 | 228 | protected function getLineCount(&$file) { |
| 226 | 229 | $i = 0; |
| 227 | 230 | while(fgets($file) !== false) $i++; |
@@ -359,7 +359,7 @@ |
||
| 359 | 359 | * Simulates a file upload |
| 360 | 360 | * |
| 361 | 361 | * @param string $fileField Name of the field to mock upload for |
| 362 | - * @param array $tmpFileName Name of temporary file to upload |
|
| 362 | + * @param string $tmpFileName Name of temporary file to upload |
|
| 363 | 363 | * @return SS_HTTPResponse form response |
| 364 | 364 | */ |
| 365 | 365 | protected function mockFileUpload($fileField, $tmpFileName) { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @skipUpgrade |
| 27 | - * @param null $controller |
|
| 27 | + * @param TestController $controller |
|
| 28 | 28 | * @param string $name |
| 29 | 29 | */ |
| 30 | 30 | public function __construct($controller = null, $name = 'Form') |
@@ -343,7 +343,7 @@ |
||
| 343 | 343 | * string of HTML. |
| 344 | 344 | * |
| 345 | 345 | * @param string $html HTML to scan for elements |
| 346 | - * @return SimpleXMLElement |
|
| 346 | + * @return \SimpleXMLElement |
|
| 347 | 347 | */ |
| 348 | 348 | public function findOptionElements($html) { |
| 349 | 349 | $parser = new CSSContentParser($html); |
@@ -111,6 +111,9 @@ |
||
| 111 | 111 | |
| 112 | 112 | protected $id; |
| 113 | 113 | |
| 114 | + /** |
|
| 115 | + * @param string $link |
|
| 116 | + */ |
|
| 114 | 117 | public function __construct($gridField, $id, $link) { |
| 115 | 118 | $this->gridField = $gridField; |
| 116 | 119 | $this->id = $id; |
@@ -21,6 +21,9 @@ |
||
| 21 | 21 | return str_replace(' ', $nbsp, trim($input)); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param string $locale |
|
| 26 | + */ |
|
| 24 | 27 | protected function checkInputValidation($locale, $tests) { |
| 25 | 28 | i18n::set_locale($locale); |
| 26 | 29 | $field = new NumericField('Number'); |
@@ -946,7 +946,7 @@ discard block |
||
| 946 | 946 | * Simulates a file upload |
| 947 | 947 | * |
| 948 | 948 | * @param string $fileField Name of the field to mock upload for |
| 949 | - * @param array $tmpFileName Name of temporary file to upload |
|
| 949 | + * @param string $tmpFileName Name of temporary file to upload |
|
| 950 | 950 | * @return SS_HTTPResponse form response |
| 951 | 951 | */ |
| 952 | 952 | protected function mockFileUpload($fileField, $tmpFileName) { |
@@ -958,6 +958,9 @@ discard block |
||
| 958 | 958 | ); |
| 959 | 959 | } |
| 960 | 960 | |
| 961 | + /** |
|
| 962 | + * @param string $fileField |
|
| 963 | + */ |
|
| 961 | 964 | protected function mockFileExists($fileField, $fileName) { |
| 962 | 965 | return $this->get( |
| 963 | 966 | "UploadFieldTest_Controller/Form/field/{$fileField}/fileexists?filename=".urlencode($fileName) |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | return $this->can(__FUNCTION__, $member, $context); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $perm |
|
| 32 | + */ |
|
| 30 | 33 | public function can($perm, $member = null, $context = array()) { |
| 31 | 34 | $perms = [ |
| 32 | 35 | "PERM_{$perm}", |
@@ -512,7 +512,7 @@ |
||
| 512 | 512 | * Get the HTML class attribute from a node in the sitetree |
| 513 | 513 | * |
| 514 | 514 | * @param $html |
| 515 | - * @param $node |
|
| 515 | + * @param DataObject|null $node |
|
| 516 | 516 | * @return string |
| 517 | 517 | */ |
| 518 | 518 | protected function getNodeClassFromTree($html, $node) { |