Completed
Pull Request — master (#6233)
by David
09:20
created
ORM/HasManyList.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
 	 *
63 63
 	 * It does so by setting the relationFilters.
64 64
 	 *
65
-	 * @param DataObject|int $item The DataObject to be added, or its ID
65
+	 * @param DataObject $item The DataObject to be added, or its ID
66 66
 	 */
67 67
 	public function add($item) {
68 68
 		if(is_numeric($item)) {
Please login to merge, or discard this patch.
ORM/Queries/SQLSelect.php 1 patch
Doc Comments   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 	/**
66 66
 	 * Construct a new SQLSelect.
67 67
 	 *
68
-	 * @param array|string $select An array of SELECT fields.
68
+	 * @param string $select An array of SELECT fields.
69 69
 	 * @param array|string $from An array of FROM clauses. The first one should be just the table name.
70 70
 	 * Each should be ANSI quoted.
71 71
 	 * @param array $where An array of WHERE clauses.
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
 	 *
356 356
 	 * @param string $value
357 357
 	 * @param string $defaultDirection
358
-	 * @return array A two element array: array($column, $direction)
358
+	 * @return string[] A two element array: array($column, $direction)
359 359
 	 */
360 360
 	private function getDirectionFromString($value, $defaultDirection = null) {
361 361
 		if(preg_match('/^(.*)(asc|desc)$/i', $value, $matches)) {
@@ -450,7 +450,6 @@  discard block
 block discarded – undo
450 450
 	 * @see SQLSelect::addWhere() for syntax examples
451 451
 	 *
452 452
 	 * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries
453
-	 * @param mixed $having,... Unlimited additional predicates
454 453
 	 * @return $this Self reference
455 454
 	 */
456 455
 	public function setHaving($having) {
@@ -465,7 +464,6 @@  discard block
 block discarded – undo
465 464
 	 * @see SQLSelect::addWhere() for syntax examples
466 465
 	 *
467 466
 	 * @param mixed $having Predicate(s) to set, as escaped SQL statements or paramaterised queries
468
-	 * @param mixed $having,... Unlimited additional predicates
469 467
 	 * @return $this Self reference
470 468
 	 */
471 469
 	public function addHaving($having) {
Please login to merge, or discard this patch.
Security/PasswordValidator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 	 * Eg: $this->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation"))
46 46
 	 *
47 47
 	 * @param int $minScore The minimum number of character tests that must pass
48
-	 * @param array $testNames The names of the tests to perform
48
+	 * @param string[] $testNames The names of the tests to perform
49 49
 	 * @return $this
50 50
 	 */
51 51
 	public function characterStrength($minScore, $testNames) {
Please login to merge, or discard this patch.
Security/Permission.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
 	 *  will be checked for the current user
122 122
 	 * @param bool $strict Use "strict" checking (which means a permission
123 123
 	 *  will be granted if the key does not exist at all)?
124
-	 * @return int|bool The ID of the permission record if the permission
124
+	 * @return boolean|string The ID of the permission record if the permission
125 125
 	 *  exists; FALSE otherwise. If "strict" checking is
126 126
 	 *  disabled, TRUE will be returned if the permission does not exist at all.
127 127
 	 */
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 	 * @param string $arg Optional argument (e.g. a permissions for a specific page)
160 160
 	 * @param bool $strict Use "strict" checking (which means a permission
161 161
 	 *  will be granted if the key does not exist at all)?
162
-	 * @return int|bool The ID of the permission record if the permission
162
+	 * @return boolean|string The ID of the permission record if the permission
163 163
 	 *  exists; FALSE otherwise. If "strict" checking is
164 164
 	 *  disabled, TRUE will be returned if the permission does not exist at all.
165 165
 	 */
Please login to merge, or discard this patch.
Security/Permission_Group.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 	/**
59 59
 	 * Get permissions
60 60
 	 *
61
-	 * @return array Associative array of permissions in this permission
61
+	 * @return string Associative array of permissions in this permission
62 62
 	 *               group. The array indicies are the permission codes as
63 63
 	 *               used in {@link Permission::check()}. The value is
64 64
 	 *               suitable for using in an interface.
Please login to merge, or discard this patch.
tests/forms/GridFieldTest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
 	/**
130 130
 	 *
131 131
 	 * @param GridField $gridField
132
-	 * @return array
132
+	 * @return string[]
133 133
 	 */
134 134
 	public function getActions($gridField) {
135 135
 		return array('addto');
Please login to merge, or discard this patch.
tests/forms/RequirementsTest.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -127,6 +127,10 @@  discard block
 block discarded – undo
127 127
 		);
128 128
 	}
129 129
 
130
+	/**
131
+	 * @param boolean $async
132
+	 * @param boolean $defer
133
+	 */
130 134
 	protected function setupCombinedRequirementsJavascriptAsyncDefer($backend, $async, $defer) {
131 135
         $basePath = $this->getCurrentRelativePath();
132 136
         $this->setupRequirements($backend);
@@ -836,6 +840,9 @@  discard block
 block discarded – undo
836 840
 		}
837 841
 	}
838 842
 
843
+	/**
844
+	 * @param string $type
845
+	 */
839 846
 	public function assertFileNotIncluded($backend, $type, $files) {
840 847
 		$includedFiles = $this->getBackendFiles($backend, $type);
841 848
 		if(is_array($files)) {
Please login to merge, or discard this patch.
tests/forms/uploadfield/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/forms/uploadfield/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.