Completed
Pull Request — master (#5433)
by Sam
14:07 queued 01:48
created
forms/gridfield/GridField.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 	}
193 193
 
194 194
 	/**
195
-	 * @return ArrayList
195
+	 * @return SilverStripe\Model\ArrayList
196 196
 	 */
197 197
 	public function getComponents() {
198 198
 		return $this->config->getComponents();
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 	 *
204 204
 	 * @todo refactor this into GridFieldComponent
205 205
 	 *
206
-	 * @param mixed $value
206
+	 * @param string $value
207 207
 	 * @param string|array $castingDefinition
208 208
 	 *
209 209
 	 * @return mixed
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 	 *
291 291
 	 * @param array $properties
292 292
 	 *
293
-	 * @return HTMLText
293
+	 * @return DBField
294 294
 	 */
295 295
 	public function FieldHolder($properties = array()) {
296 296
 		Requirements::css(THIRDPARTY_DIR . '/jquery-ui-themes/smoothness/jquery-ui.css');
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
 	/**
605 605
 	 * @param array $properties
606 606
 	 *
607
-	 * @return HTMLText
607
+	 * @return DBField
608 608
 	 */
609 609
 	public function Field($properties = array()) {
610 610
 		$this->extend('onBeforeRender', $this);
Please login to merge, or discard this patch.
model/connect/MySQLStatement.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
 
79 79
 	/**
80 80
 	 * Hook the result-set given into a Query class, suitable for use by SilverStripe.
81
-	 * @param mysqli_stmt $statement The related statement, if present
82
-	 * @param mysqli_result $metadata The metadata for this statement
81
+	 * @param \mysqli_stmt $statement The related statement, if present
82
+	 * @param \mysqli_result $metadata The metadata for this statement
83 83
 	 */
84 84
 	public function __construct($statement, $metadata) {
85 85
 		$this->statement = $statement;
Please login to merge, or discard this patch.
model/versioning/ChangeSetItem.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * Find version of this object in the given stage
133 133
 	 *
134 134
 	 * @param string $stage
135
-	 * @return Versioned|DataObject
135
+	 * @return DataObject|null
136 136
 	 */
137 137
 	protected function getObjectInStage($stage) {
138 138
 		return Versioned::get_by_stage($this->ObjectClass, $stage)->byID($this->ObjectID);
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 	/**
142 142
 	 * Find latest version of this object
143 143
 	 *
144
-	 * @return Versioned|DataObject
144
+	 * @return DataObject|null
145 145
 	 */
146 146
 	protected function getObjectLatestVersion() {
147 147
 		return Versioned::get_latest_version($this->ObjectClass, $this->ObjectID);
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
 	 * Get the ChangeSetItems that reference a passed DataObject
326 326
 	 *
327 327
 	 * @param DataObject $object
328
-	 * @return DataList
328
+	 * @return SilverStripe\Model\DataList
329 329
 	 */
330 330
 	public static function get_for_object($object) {
331 331
 		return ChangeSetItem::get()->filter([
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
 	 *
340 340
 	 * @param int $objectID The ID of the object
341 341
 	 * @param string $objectClass The class of the object (or any parent class)
342
-	 * @return DataList
342
+	 * @return SilverStripe\Model\DataList
343 343
 	 */
344 344
 	public static function get_for_object_by_id($objectID, $objectClass) {
345 345
 		return ChangeSetItem::get()->filter([
Please login to merge, or discard this patch.
tests/model/VersionedOwnershipTest.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -728,7 +728,7 @@  discard block
 block discarded – undo
728 728
 	/**
729 729
 	 * All custom objects with the same number. E.g. 'Page 1' owns 'Custom 1'
730 730
 	 *
731
-	 * @return DataList
731
+	 * @return SilverStripe\Model\DataList
732 732
 	 */
733 733
 	public function Custom() {
734 734
 		$title = str_replace('Page', 'Custom', $this->Title);
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
 	/**
783 783
 	 * All pages with the same number. E.g. 'Page 1' owns 'Custom 1'
784 784
 	 *
785
-	 * @return DataList
785
+	 * @return SilverStripe\Model\DataList
786 786
 	 */
787 787
 	public function Pages() {
788 788
 		$title = str_replace('Custom', 'Page', $this->Title);
Please login to merge, or discard this patch.
api/RSSFeed.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
 	 *
192 192
 	 * TODO: Pass $response object to ->outputToBrowser() to loosen dependence on global state for easier testing/prototyping so dev can inject custom SS_HTTPResponse instance.
193 193
 	 *
194
-	 * @return	HTMLText
194
+	 * @return	DBField
195 195
 	 */
196 196
 	public function outputToBrowser() {
197 197
 		$prevState = Config::inst()->get('SSViewer', 'source_file_comments');
@@ -222,6 +222,7 @@  discard block
 block discarded – undo
222 222
 	 * via the standard template inclusion process.
223 223
 	 *
224 224
 	 * @param string
225
+	 * @param string $template
225 226
 	 */
226 227
 	public function setTemplate($template) {
227 228
 		$this->template = $template;
@@ -318,6 +319,7 @@  discard block
 block discarded – undo
318 319
 	/**
319 320
 	 * Return the named field as an obj() call from $this->failover.
320 321
 	 * Default to the given class if there's no casting information.
322
+	 * @param string $fieldName
321 323
 	 */
322 324
 	public function rssField($fieldName, $defaultClass = 'Varchar') {
323 325
 		if($fieldName) {
Please login to merge, or discard this patch.
forms/HTMLEditorSanitiser.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 	/**
42 42
 	 * Given a TinyMCE pattern (close to unix glob style), create a regex that does the match
43 43
 	 *
44
-	 * @param $str - The TinyMCE pattern
44
+	 * @param string|null $str - The TinyMCE pattern
45 45
 	 * @return string - The equivalent regex
46 46
 	 */
47 47
 	protected function patternToRegex($str) {
@@ -182,6 +182,7 @@  discard block
 block discarded – undo
182 182
 	/**
183 183
 	 * Given an attribute name, return the rule structure for that attribute
184 184
 	 * @param string $name - The attribute name
185
+	 * @param stdClass $elementRule
185 186
 	 * @return stdClass - The attribute rule
186 187
 	 */
187 188
 	protected function getRuleForAttribute($elementRule, $name) {
@@ -245,7 +246,7 @@  discard block
 block discarded – undo
245 246
 	 * Given an SS_HTMLValue instance, will remove and elements and attributes that are
246 247
 	 * not explicitly included in the whitelist passed to __construct on instance creation
247 248
 	 *
248
-	 * @param SS_HTMLValue $html - The HTMLValue to remove any non-whitelisted elements & attributes from
249
+	 * @param HTMLValue $html - The HTMLValue to remove any non-whitelisted elements & attributes from
249 250
 	 */
250 251
 	public function sanitise (HTMLValue $html) {
251 252
 		if(!$this->elements && !$this->elementPatterns) return;
Please login to merge, or discard this patch.
model/DataObject.php 1 patch
Doc Comments   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -588,8 +588,8 @@  discard block
 block discarded – undo
588 588
 
589 589
 	/**
590 590
 	 * Helper function to duplicate relations from one object to another
591
-	 * @param $sourceObject the source object to duplicate from
592
-	 * @param $destinationObject the destination object to populate with the duplicated relations
591
+	 * @param DataObject $sourceObject the source object to duplicate from
592
+	 * @param DataObject $destinationObject the destination object to populate with the duplicated relations
593 593
 	 * @param $name the name of the relation to duplicate (e.g. members)
594 594
 	 */
595 595
 	private function duplicateRelations($sourceObject, $destinationObject, $name) {
@@ -987,6 +987,7 @@  discard block
 block discarded – undo
987 987
 	 * @param $includeRelations Boolean Merge any existing relations (optional)
988 988
 	 * @param $overwriteWithEmpty Boolean Overwrite existing left values with empty right values.
989 989
 	 *                            Only applicable with $priority='right'. (optional)
990
+	 * @param DataObject|null $rightObj
990 991
 	 * @return Boolean
991 992
 	 */
992 993
 	public function merge($rightObj, $priority = 'right', $includeRelations = true, $overwriteWithEmpty = false) {
@@ -2273,6 +2274,7 @@  discard block
 block discarded – undo
2273 2274
 	 *
2274 2275
 	 * This is experimental, and is currently only a Postgres-specific enhancement.
2275 2276
 	 *
2277
+	 * @param string $class
2276 2278
 	 * @return array or false
2277 2279
 	 */
2278 2280
 	public function database_extensions($class){
@@ -2751,6 +2753,7 @@  discard block
 block discarded – undo
2751 2753
 
2752 2754
 	/**
2753 2755
 	 * {@inheritdoc}
2756
+	 * @param string $field
2754 2757
 	 */
2755 2758
 	public function castingHelper($field) {
2756 2759
 		if ($fieldSpec = $this->db($field)) {
@@ -3097,7 +3100,7 @@  discard block
 block discarded – undo
3097 3100
 	 * Traverses to a field referenced by relationships between data objects, returning the value
3098 3101
 	 * The path to the related field is specified with dot separated syntax (eg: Parent.Child.Child.FieldName)
3099 3102
 	 *
3100
-	 * @param $fieldName string
3103
+	 * @param string $fieldName string
3101 3104
 	 * @return string | null - will return null on a missing value
3102 3105
 	 */
3103 3106
 	public function relField($fieldName) {
@@ -3376,6 +3379,7 @@  discard block
 block discarded – undo
3376 3379
 	/**
3377 3380
 	 * @see $sourceQueryParams
3378 3381
 	 * @param array
3382
+	 * @param string $key
3379 3383
 	 */
3380 3384
 	public function setSourceQueryParam($key, $value) {
3381 3385
 		$this->sourceQueryParams[$key] = $value;
@@ -3383,6 +3387,7 @@  discard block
 block discarded – undo
3383 3387
 
3384 3388
 	/**
3385 3389
 	 * @see $sourceQueryParams
3390
+	 * @param string $key
3386 3391
 	 * @return Mixed
3387 3392
 	 */
3388 3393
 	public function getSourceQueryParam($key) {
Please login to merge, or discard this patch.