Completed
Pull Request — master (#5433)
by Sam
19:38
created
model/HTMLValue.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -152,8 +152,8 @@
 block discarded – undo
152 152
 	/**
153 153
 	 * Make an xpath query against this HTML
154 154
 	 *
155
-	 * @param $query string - The xpath query string
156
-	 * @return DOMNodeList
155
+	 * @param string $query string - The xpath query string
156
+	 * @return \DOMNodeList
157 157
 	 */
158 158
 	public function query($query) {
159 159
 		$xp = new DOMXPath($this->getDocument());
Please login to merge, or discard this patch.
model/ManyManyList.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 	 * Create a DataObject from the given SQL row.
116 116
 	 *
117 117
 	 * @param array $row
118
-	 * @return DataObject
118
+	 * @return SilverStripe\Model\DataObject
119 119
 	 */
120 120
 	protected function createDataObject($row) {
121 121
 		// remove any composed fields
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 	 * Note that for a ManyManyList, the item is never actually deleted, only
266 266
 	 * the join table is affected.
267 267
 	 *
268
-	 * @param DataObject $item
268
+	 * @param SilverStripe\Model\DataObject $item
269 269
 	 */
270 270
 	public function remove($item) {
271 271
 		if(!($item instanceof $this->dataClass)) {
Please login to merge, or discard this patch.
security/PasswordEncryptor.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,6 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * but is necessary for retain compatibility with password hashed
88 88
 	 * with flawed algorithms - see {@link PasswordEncryptor_LegacyPHPHash} and
89 89
 	 * {@link PasswordEncryptor_Blowfish}
90
+	 * @param string $password
90 91
 	 */
91 92
 	public function check($hash, $password, $salt = null, $member = null) {
92 93
 		return $hash === $this->encrypt($password, $salt, $member);
@@ -129,8 +130,7 @@  discard block
 block discarded – undo
129 130
 	/**
130 131
 	 * Gets the cost that is set for the blowfish algorithm
131 132
 	 *
132
-	 * @param int $cost
133
-	 * @return null
133
+	 * @return integer
134 134
 	 */
135 135
 	public static function get_cost() {
136 136
 		return self::$cost;
@@ -242,6 +242,7 @@  discard block
 block discarded – undo
242 242
 
243 243
 	/**
244 244
 	 * self::$cost param is forced to be two digits with leading zeroes for ints 4-9
245
+	 * @param string $password
245 246
 	 */
246 247
 	public function salt($password, $member = null) {
247 248
 		$generator = new RandomGenerator();
Please login to merge, or discard this patch.
filesystem/FileMigrationHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 	/**
89 89
 	 * Get list of File dataobjects to import
90 90
 	 *
91
-	 * @return DataList
91
+	 * @return SilverStripe\Model\DataList
92 92
 	 */
93 93
 	protected function getFileQuery() {
94 94
 		// Select all records which have a Filename value, but not FileFilename.
Please login to merge, or discard this patch.
filesystem/Folder.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	 * Find the given folder or create it as a database record
46 46
 	 *
47 47
 	 * @param string $folderPath Directory path relative to assets root
48
-	 * @return Folder|null
48
+	 * @return null|SilverStripe\Model\DataObject
49 49
 	 */
50 50
 	public static function find_or_make($folderPath) {
51 51
 		// replace leading and trailing slashes
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	/**
148 148
 	 * Returns all children of this folder
149 149
 	 *
150
-	 * @return DataList
150
+	 * @return SilverStripe\Model\DataList
151 151
 	 */
152 152
 	public function myChildren() {
153 153
 		return File::get()->filter("ParentID", $this->ID);
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
 	/**
199 199
 	 * Get the children of this folder that are also folders.
200 200
 	 *
201
-	 * @return DataList
201
+	 * @return SilverStripe\Model\DataList
202 202
 	 */
203 203
 	public function ChildFolders() {
204 204
 		return Folder::get()->filter('ParentID', $this->ID);
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.
forms/htmleditor/HtmlEditorField.php 1 patch
Doc Comments   +12 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 	/**
58 58
 	 * Assign a new configuration instance or identifier
59 59
 	 *
60
-	 * @param string|HtmlEditorConfig $config
60
+	 * @param string $config
61 61
 	 * @return $this
62 62
 	 */
63 63
 	public function setEditorConfig($config) {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	 *
72 72
 	 * @param string $name The internal field name, passed to forms.
73 73
 	 * @param string $title The human-readable field label.
74
-	 * @param mixed $value The value of the field.
74
+	 * @param integer $value The value of the field.
75 75
 	 * @param string $config HtmlEditorConfig identifier to be used. Default to the active one.
76 76
 	 */
77 77
 	public function __construct($name, $title = null, $value = '', $config = null) {
@@ -112,6 +112,9 @@  discard block
 block discarded – undo
112 112
 		$record->{$this->name} = $htmlValue->getContent();
113 113
 	}
114 114
 
115
+	/**
116
+	 * @param string|null $value
117
+	 */
115 118
 	public function setValue($value) {
116 119
 		// Regenerate links prior to preview, so that the editor can see them.
117 120
 		$value = Image::regenerate_html_links($value);
@@ -179,6 +182,10 @@  discard block
 block discarded – undo
179 182
 
180 183
 	protected $controller, $name;
181 184
 
185
+	/**
186
+	 * @param Controller|null $controller
187
+	 * @param string $name
188
+	 */
182 189
 	public function __construct($controller, $name) {
183 190
 		parent::__construct();
184 191
 
@@ -197,7 +204,7 @@  discard block
 block discarded – undo
197 204
 	/**
198 205
 	 * Searches the SiteTree for display in the dropdown
199 206
 	 *
200
-	 * @return callback
207
+	 * @return DataList
201 208
 	 */
202 209
 	public function siteTreeSearchCallback($sourceObject, $labelField, $search) {
203 210
 		return DataObject::get($sourceObject)->filterAny(array(
@@ -577,7 +584,7 @@  discard block
 block discarded – undo
577 584
 	/**
578 585
 	 * Find all anchors available on the given page.
579 586
 	 *
580
-	 * @return array
587
+	 * @return string
581 588
 	 * @throws SS_HTTPResponse_Exception
582 589
 	 */
583 590
 	public function getanchors() {
@@ -1136,7 +1143,7 @@  discard block
 block discarded – undo
1136 1143
 	/**
1137 1144
 	 * Get OEmbed type
1138 1145
 	 *
1139
-	 * @return string
1146
+	 * @return boolean
1140 1147
 	 */
1141 1148
 	public function getType() {
1142 1149
 		return $this->oembed->type;
Please login to merge, or discard this patch.