Completed
Pull Request — master (#4964)
by Damian
31:11 queued 03:44
created
model/Versioned.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -745,7 +745,7 @@  discard block
 block discarded – undo
745 745
 	 * Extend permissions to include additional security for objects that are not published to live.
746 746
 	 *
747 747
 	 * @param Member $member
748
-	 * @return bool|null
748
+	 * @return false|null
749 749
 	 */
750 750
 	public function canView($member = null) {
751 751
 		// Invoke default version-gnostic canView
@@ -814,7 +814,7 @@  discard block
 block discarded – undo
814 814
 	 *
815 815
 	 * @param string $stage
816 816
 	 * @param Member $member
817
-	 * @return bool
817
+	 * @return boolean|string
818 818
 	 */
819 819
 	public function canViewStage($stage = 'Live', $member = null) {
820 820
 		$oldMode = Versioned::get_reading_mode();
@@ -879,7 +879,7 @@  discard block
 block discarded – undo
879 879
 	/**
880 880
 	 * Get the latest published DataObject.
881 881
 	 *
882
-	 * @return DataObject
882
+	 * @return string
883 883
 	 */
884 884
 	public function latestPublished() {
885 885
 		// Get the root data object class - this will have the version field
@@ -1073,6 +1073,7 @@  discard block
 block discarded – undo
1073 1073
 	/**
1074 1074
 	 * Return the base table - the class that directly extends DataObject.
1075 1075
 	 *
1076
+	 * @param string $stage
1076 1077
 	 * @return string
1077 1078
 	 */
1078 1079
 	public function baseTable($stage = null) {
@@ -1239,7 +1240,6 @@  discard block
 block discarded – undo
1239 1240
 	 * @param string $stage The name of the stage.
1240 1241
 	 * @param string $filter A filter to be inserted into the WHERE clause.
1241 1242
 	 * @param boolean $cache Use caching.
1242
-	 * @param string $orderby A sort expression to be inserted into the ORDER BY clause.
1243 1243
 	 *
1244 1244
 	 * @return DataObject
1245 1245
 	 */
Please login to merge, or discard this patch.
view/ViewableData.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 	/**
142 142
 	 * Get the current failover object if set
143 143
 	 *
144
-	 * @return ViewableData|null
144
+	 * @return ViewableData
145 145
 	 */
146 146
 	public function getFailover() {
147 147
 		return $this->failover;
@@ -208,8 +208,6 @@  discard block
 block discarded – undo
208 208
 	/**
209 209
 	 * Method to facilitate deprecation of underscore-prefixed methods automatically being cached.
210 210
 	 * 
211
-	 * @param string $field
212
-	 * @param array $arguments
213 211
 	 * @param string $identifier an optional custom cache identifier
214 212
 	 * @return unknown
215 213
 	 */
@@ -270,7 +268,7 @@  discard block
 block discarded – undo
270 268
 	 *  - castingHelper: the casting helper for casting the field (e.g. "return new Varchar($fieldName)")
271 269
 	 *
272 270
 	 * @param string $field
273
-	 * @return array
271
+	 * @return string
274 272
 	 */
275 273
 	public function castingHelperPair($field) {
276 274
 		Deprecation::notice('2.5', 'use castingHelper() instead');
@@ -520,6 +518,7 @@  discard block
 block discarded – undo
520 518
 	
521 519
 	/**
522 520
 	 * Return the value of a field in an SQL-safe format.
521
+	 * @param string $field
523 522
 	 */
524 523
 	public function SQL_val($field, $arguments = null, $cache = true) {
525 524
 		return Convert::raw2sql($this->RAW_val($field, $arguments, $cache));
@@ -527,6 +526,7 @@  discard block
 block discarded – undo
527 526
 	
528 527
 	/**
529 528
 	 * Return the value of a field in a JavaScript-save format.
529
+	 * @param string $field
530 530
 	 */
531 531
 	public function JS_val($field, $arguments = null, $cache = true) {
532 532
 		return Convert::raw2js($this->RAW_val($field, $arguments, $cache));
@@ -534,6 +534,7 @@  discard block
 block discarded – undo
534 534
 	
535 535
 	/**
536 536
 	 * Return the value of a field escaped suitable to be inserted into an XML node attribute.
537
+	 * @param string $field
537 538
 	 */
538 539
 	public function ATT_val($field, $arguments = null, $cache = true) {
539 540
 		return Convert::raw2att($this->RAW_val($field, $arguments, $cache));
@@ -544,7 +545,6 @@  discard block
 block discarded – undo
544 545
 	/**
545 546
 	 * Get an array of XML-escaped values by field name
546 547
 	 *
547
-	 * @param array $elements an array of field names
548 548
 	 * @return array
549 549
 	 */
550 550
 	public function getXMLValues($fields) {
Please login to merge, or discard this patch.
model/Map.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -41,6 +41,7 @@  discard block
 block discarded – undo
41 41
 	 * Set the key field for this map.
42 42
 	 *
43 43
 	 * @var string $keyField
44
+	 * @param string $keyField
44 45
 	 */
45 46
 	public function setKeyField($keyField) {
46 47
 		$this->keyField = $keyField;
@@ -50,6 +51,7 @@  discard block
 block discarded – undo
50 51
 	 * Set the value field for this map.
51 52
 	 *
52 53
 	 * @var string $valueField
54
+	 * @param string $valueField
53 55
 	 */
54 56
 	public function setValueField($valueField) {
55 57
 		$this->valueField = $valueField;
@@ -95,6 +97,7 @@  discard block
 block discarded – undo
95 97
 	 *
96 98
 	 * @var string $key
97 99
 	 * @var mixed $value
100
+	 * @param string $value
98 101
 	 */
99 102
 	public function unshift($key, $value) {
100 103
 		$oldItems = $this->firstItems;
@@ -114,6 +117,7 @@  discard block
 block discarded – undo
114 117
 	 *
115 118
 	 * @var string $key
116 119
 	 * @var mixed $value
120
+	 * @param string $value
117 121
 	 */
118 122
 	public function push($key, $value) {
119 123
 		$oldItems = $this->lastItems;
Please login to merge, or discard this patch.
security/Member.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -585,6 +585,8 @@  discard block
 block discarded – undo
585 585
 
586 586
 	/**
587 587
 	 * Utility for generating secure password hashes for this member.
588
+	 * @param string $string
589
+	 * @return string
588 590
 	 */
589 591
 	public function encryptWithUserSettings($string) {
590 592
 		if (!$string) return null;
@@ -735,7 +737,7 @@  discard block
 block discarded – undo
735 737
 	/**
736 738
 	 * Returns the current logged in user
737 739
 	 *
738
-	 * @return Member|null
740
+	 * @return DataObject|null
739 741
 	 */
740 742
 	public static function currentUser() {
741 743
 		$id = Member::currentUserID();
@@ -1176,7 +1178,7 @@  discard block
 block discarded – undo
1176 1178
 	 * If no $groups is passed, all members will be returned
1177 1179
 	 *
1178 1180
 	 * @param mixed $groups - takes a SS_List, an array or a single Group.ID
1179
-	 * @return SQLMap Returns an SQLMap that returns all Member data.
1181
+	 * @return SS_Map Returns an SQLMap that returns all Member data.
1180 1182
 	 * @see map()
1181 1183
 	 */
1182 1184
 	public static function map_in_groups($groups = null) {
Please login to merge, or discard this patch.