Completed
Push — simpler-test-run ( 0ad637...b3cd44 )
by Sam
11:48
created
ORM/DataObject.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -2712,6 +2712,7 @@  discard block
 block discarded – undo
2712 2712
 
2713 2713
 	/**
2714 2714
 	 * {@inheritdoc}
2715
+	 * @param string $field
2715 2716
 	 */
2716 2717
 	public function castingHelper($field) {
2717 2718
 		if ($fieldSpec = $this->db($field)) {
@@ -2916,7 +2917,7 @@  discard block
 block discarded – undo
2916 2917
 
2917 2918
 	/**
2918 2919
 	 * @param Member $member
2919
-	 * @return boolean
2920
+	 * @return boolean|string
2920 2921
 	 */
2921 2922
 	public function canView($member = null) {
2922 2923
 		$extended = $this->extendedCan(__FUNCTION__, $member);
@@ -2928,7 +2929,7 @@  discard block
 block discarded – undo
2928 2929
 
2929 2930
 	/**
2930 2931
 	 * @param Member $member
2931
-	 * @return boolean
2932
+	 * @return boolean|string
2932 2933
 	 */
2933 2934
 	public function canEdit($member = null) {
2934 2935
 		$extended = $this->extendedCan(__FUNCTION__, $member);
@@ -2940,7 +2941,7 @@  discard block
 block discarded – undo
2940 2941
 
2941 2942
 	/**
2942 2943
 	 * @param Member $member
2943
-	 * @return boolean
2944
+	 * @return boolean|string
2944 2945
 	 */
2945 2946
 	public function canDelete($member = null) {
2946 2947
 		$extended = $this->extendedCan(__FUNCTION__, $member);
@@ -2954,7 +2955,7 @@  discard block
 block discarded – undo
2954 2955
 	 * @param Member $member
2955 2956
 	 * @param array $context Additional context-specific data which might
2956 2957
 	 * affect whether (or where) this object could be created.
2957
-	 * @return boolean
2958
+	 * @return boolean|string
2958 2959
 	 */
2959 2960
 	public function canCreate($member = null, $context = array()) {
2960 2961
 		$extended = $this->extendedCan(__FUNCTION__, $member, $context);
@@ -3058,7 +3059,7 @@  discard block
 block discarded – undo
3058 3059
 	 * Traverses to a field referenced by relationships between data objects, returning the value
3059 3060
 	 * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
3060 3061
 	 *
3061
-	 * @param $fieldName string
3062
+	 * @param string $fieldName string
3062 3063
 	 * @return string | null - will return null on a missing value
3063 3064
 	 */
3064 3065
 	public function relField($fieldName) {
@@ -3128,7 +3129,7 @@  discard block
 block discarded – undo
3128 3129
 	 * @param string $callerClass The class of objects to be returned
3129 3130
 	 * @param string|array $filter A filter to be inserted into the WHERE clause.
3130 3131
 	 * Supports parameterised queries. See SQLSelect::addWhere() for syntax examples.
3131
-	 * @param string|array $sort A sort expression to be inserted into the ORDER
3132
+	 * @param string $sort A sort expression to be inserted into the ORDER
3132 3133
 	 * BY clause.  If omitted, self::$default_sort will be used.
3133 3134
 	 * @param string $join Deprecated 3.0 Join clause. Use leftJoin($table, $joinClause) instead.
3134 3135
 	 * @param string|array $limit A limit expression to be inserted into the LIMIT clause.
Please login to merge, or discard this patch.
ORM/DataQuery.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	/**
99 99
 	 * Remove a filter from the query
100 100
 	 *
101
-	 * @param string|array $fieldExpression The predicate of the condition to remove
101
+	 * @param string|null $fieldExpression The predicate of the condition to remove
102 102
 	 * (ignoring parameters). The expression will be considered a match if it's
103 103
 	 * contained within any other predicate.
104 104
 	 * @return DataQuery Self reference
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 	/**
178 178
 	 * Ensure that the query is ready to execute.
179 179
 	 *
180
-	 * @param array|null $queriedColumns Any columns to filter the query by
180
+	 * @param string[] $queriedColumns Any columns to filter the query by
181 181
 	 * @return SQLSelect The finalised sql query
182 182
 	 */
183 183
 	public function getFinalisedQuery($queriedColumns = null) {
Please login to merge, or discard this patch.
ORM/Filters/PartialMatchFilter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use SilverStripe\ORM\DataQuery;
6 6
 use SilverStripe\ORM\DB;
7
-use InvalidArgumentException;
8 7
 
9 8
 /**
10 9
  * Matches textual content with a LIKE '%keyword%' construct.
Please login to merge, or discard this patch.
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.
ORM/Versioning/Versioned.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1065,7 +1065,7 @@  discard block
 block discarded – undo
1065 1065
 	/**
1066 1066
 	 * Find objects in the given relationships, merging them into the given list
1067 1067
 	 *
1068
-	 * @param array $source Config property to extract relationships from
1068
+	 * @param string $source Config property to extract relationships from
1069 1069
 	 * @param bool $recursive True if recursive
1070 1070
 	 * @param ArrayList $list Optional list to add items to
1071 1071
 	 * @return ArrayList The list
@@ -1185,7 +1185,7 @@  discard block
 block discarded – undo
1185 1185
 	/**
1186 1186
 	 * Check if the current user can delete this record from live
1187 1187
 	 *
1188
-	 * @param null $member
1188
+	 * @param Member|null $member
1189 1189
 	 * @return mixed
1190 1190
 	 */
1191 1191
 	public function canUnpublish($member = null) {
@@ -1295,7 +1295,7 @@  discard block
 block discarded – undo
1295 1295
 	 * Extend permissions to include additional security for objects that are not published to live.
1296 1296
 	 *
1297 1297
 	 * @param Member $member
1298
-	 * @return bool|null
1298
+	 * @return false|null
1299 1299
 	 */
1300 1300
 	public function canView($member = null) {
1301 1301
 		// Invoke default version-gnostic canView
@@ -1371,7 +1371,7 @@  discard block
 block discarded – undo
1371 1371
 	 *
1372 1372
 	 * @param string $stage
1373 1373
 	 * @param Member $member
1374
-	 * @return bool
1374
+	 * @return boolean|string
1375 1375
 	 */
1376 1376
 	public function canViewStage($stage = 'Live', $member = null) {
1377 1377
 		$oldMode = Versioned::get_reading_mode();
@@ -1436,7 +1436,7 @@  discard block
 block discarded – undo
1436 1436
 	/**
1437 1437
 	 * Determines if the current draft version is the same as live
1438 1438
 	 *
1439
-	 * @return bool
1439
+	 * @return string
1440 1440
 	 */
1441 1441
 	public function latestPublished() {
1442 1442
 		// Get the root data object class - this will have the version field
@@ -2433,7 +2433,7 @@  discard block
 block discarded – undo
2433 2433
 	/**
2434 2434
 	 * Returns an array of possible stages.
2435 2435
 	 *
2436
-	 * @return array
2436
+	 * @return string[]
2437 2437
 	 */
2438 2438
 	public function getVersionedStages() {
2439 2439
 		if($this->hasStages()) {
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.