Completed
Pull Request — master (#6172)
by Ingo
16:19
created
Assets/Folder.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 	 * Find the given folder or create it as a database record
57 57
 	 *
58 58
 	 * @param string $folderPath Directory path relative to assets root
59
-	 * @return Folder|null
59
+	 * @return null|\SilverStripe\ORM\DataObject
60 60
 	 */
61 61
 	public static function find_or_make($folderPath) {
62 62
 		// replace leading and trailing slashes
Please login to merge, or discard this patch.
Forms/HiddenField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	}
75 75
 
76 76
 	/**
77
-	 * @return string
77
+	 * @return \SilverStripe\ORM\FieldType\DBHTMLText
78 78
 	 */
79 79
 	public function InternallyLabelledField() {
80 80
 		Deprecation::notice('4.0', 'Please use ->setValue() instead');
Please login to merge, or discard this patch.
Forms/HTMLEditor/HTMLEditorField_Toolbar.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,6 +67,10 @@  discard block
 block discarded – undo
67 67
 	 */
68 68
 	protected $name;
69 69
 
70
+	/**
71
+	 * @param Controller|null $controller
72
+	 * @param string $name
73
+	 */
70 74
 	public function __construct($controller, $name)
71 75
 	{
72 76
 		parent::__construct();
@@ -487,7 +491,7 @@  discard block
 block discarded – undo
487 491
 	/**
488 492
 	 * Find all anchors available on the given page.
489 493
 	 *
490
-	 * @return array
494
+	 * @return string
491 495
 	 * @throws SS_HTTPResponse_Exception
492 496
 	 */
493 497
 	public function getanchors()
Please login to merge, or discard this patch.
Forms/ListboxField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	}
75 75
 
76 76
 	/**
77
-	 * @return string
77
+	 * @return \SilverStripe\ORM\FieldType\DBHTMLText
78 78
 	 */
79 79
 	public function InternallyLabelledField() {
80 80
 		Deprecation::notice('4.0', 'Please use ->setValue() instead');
Please login to merge, or discard this patch.
Forms/LookupField.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 	}
75 75
 
76 76
 	/**
77
-	 * @return string
77
+	 * @return \SilverStripe\ORM\FieldType\DBHTMLText
78 78
 	 */
79 79
 	public function InternallyLabelledField() {
80 80
 		Deprecation::notice('4.0', 'Please use ->setValue() instead');
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/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/Security.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 	 * Combine the given forms into a formset with a tabbed interface
508 508
 	 *
509 509
 	 * @param array $forms List of LoginForm instances
510
-	 * @return string
510
+	 * @return \SilverStripe\ORM\FieldType\DBHTMLText
511 511
 	 */
512 512
 	protected function generateLoginFormSet($forms) {
513 513
 		$viewData = new ArrayData(array(
@@ -1082,7 +1082,7 @@  discard block
 block discarded – undo
1082 1082
 	/**
1083 1083
 	 * Set to true to ignore access to disallowed actions, rather than returning permission failure
1084 1084
 	 * Note that this is just a flag that other code needs to check with Security::ignore_disallowed_actions()
1085
-	 * @param $flag True or false
1085
+	 * @param boolean $flag True or false
1086 1086
 	 */
1087 1087
 	public static function set_ignore_disallowed_actions($flag) {
1088 1088
 		self::$ignore_disallowed_actions = $flag;
Please login to merge, or discard this patch.
View/SSTemplateParser.php 1 patch
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -114,6 +114,8 @@  discard block
 block discarded – undo
114 114
 
115 115
 	/**
116 116
 	 * Override the function that constructs the result arrays to also prepare a 'php' item in the array
117
+	 * @param string $matchrule
118
+	 * @param string $name
117 119
 	 */
118 120
 	function construct($matchrule, $name, $arguments = null) {
119 121
 		$res = parent::construct($matchrule, $name, $arguments);
@@ -175,9 +177,9 @@  discard block
 block discarded – undo
175 177
 
176 178
 	/**
177 179
 	 * Ensures that the arguments to addOpenBlock and addClosedBlock are valid
178
-	 * @param $name
179
-	 * @param $callable
180
-	 * @param $type
180
+	 * @param string $name
181
+	 * @param callable $callable
182
+	 * @param string $type
181 183
 	 * @throws InvalidArgumentException
182 184
 	 */
183 185
 	protected function validateExtensionBlock($name, $callable, $type) {
@@ -262,6 +264,7 @@  discard block
 block discarded – undo
262 264
 	 * The basic generated PHP of LookupStep and LastLookupStep is the same, except that LookupStep calls 'obj' to
263 265
 	 * get the next ViewableData in the sequence, and LastLookupStep calls different methods (XML_val, hasValue, obj)
264 266
 	 * depending on the context the lookup is used in.
267
+	 * @param string $method
265 268
 	 */
266 269
 	function Lookup_AddLookupStep(&$res, $sub, $method) {
267 270
 		$res['LookupSteps'][] = $sub;
@@ -1174,6 +1177,7 @@  discard block
 block discarded – undo
1174 1177
 
1175 1178
 	/**
1176 1179
 	 * @param string $code
1180
+	 * @param string $templateName
1177 1181
 	 * @return string $code
1178 1182
 	 */
1179 1183
 	protected function includeDebuggingComments($code, $templateName) {
Please login to merge, or discard this patch.