Completed
Pull Request — master (#6394)
by Ed
10:36
created
tests/php/Dev/CsvBulkLoaderTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -222,6 +222,9 @@
 block discarded – undo
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++;
Please login to merge, or discard this patch.
tests/php/Forms/AssetFieldTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
tests/php/Forms/AssetFieldTest/TestForm.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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')
Please login to merge, or discard this patch.
tests/php/Forms/DropdownFieldTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
php/Forms/GridField/GridField_URLHandlerTest/TestComponent_ItemRequest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -111,6 +111,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
tests/php/Forms/NumericFieldTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -21,6 +21,9 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
tests/php/Forms/UploadFieldTest.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -946,7 +946,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
tests/php/ORM/ChangeSetTest/Permissions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@
 block discarded – undo
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}",
Please login to merge, or discard this patch.
tests/php/ORM/HierarchyTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -512,7 +512,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.