Completed
Pull Request — master (#5433)
by Sam
19:38
created
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.
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.
admin/code/CampaignAdmin.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -194,9 +194,9 @@  discard block
 block discarded – undo
194 194
 	/**
195 195
 	 * REST endpoint to get a list of campaigns.
196 196
 	 *
197
-	 * @param SS_HTTPRequest $request
197
+	 * @param HTTPRequest $request
198 198
 	 *
199
-	 * @return SS_HTTPResponse
199
+	 * @return HTTPResponse
200 200
 	 */
201 201
 	public function readCampaigns(HTTPRequest $request) {
202 202
 		$response = new HTTPResponse();
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
 	/**
336 336
 	 * Gets viewable list of campaigns
337 337
 	 *
338
-	 * @return SS_List
338
+	 * @return SilverStripe\Model\ArrayList
339 339
 	 */
340 340
 	protected function getListItems() {
341 341
 		return ChangeSet::get()
@@ -349,7 +349,7 @@  discard block
 block discarded – undo
349 349
 	/**
350 350
 	 * REST endpoint to get a campaign.
351 351
 	 *
352
-	 * @param SS_HTTPRequest $request
352
+	 * @param HTTPRequest $request
353 353
 	 *
354 354
 	 * @return SS_HTTPResponse
355 355
 	 */
@@ -382,9 +382,9 @@  discard block
 block discarded – undo
382 382
 	/**
383 383
 	 * REST endpoint to delete a campaign.
384 384
 	 *
385
-	 * @param SS_HTTPRequest $request
385
+	 * @param HTTPRequest $request
386 386
 	 *
387
-	 * @return SS_HTTPResponse
387
+	 * @return HTTPResponse
388 388
 	 */
389 389
 	public function deleteCampaign(HTTPRequest $request) {
390 390
 		$id = $request->param('ID');
@@ -409,9 +409,9 @@  discard block
 block discarded – undo
409 409
 	/**
410 410
 	 * REST endpoint to publish a {@link ChangeSet} and all of its items.
411 411
 	 *
412
-	 * @param SS_HTTPRequest $request
412
+	 * @param HTTPRequest $request
413 413
 	 *
414
-	 * @return SS_HTTPResponse
414
+	 * @return HTTPResponse
415 415
 	 */
416 416
 	public function publishCampaign(HTTPRequest $request) {
417 417
 		// Protect against CSRF on destructive action
Please login to merge, or discard this patch.
admin/code/CMSBatchActionHandler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 	 * Respond with the list of applicable pages for a given filter
128 128
 	 *
129 129
 	 * @param SS_HTTPRequest $request
130
-	 * @return SS_HTTPResponse
130
+	 * @return HTTPResponse
131 131
 	 */
132 132
 	public function handleApplicablePages($request) {
133 133
 		// Find the action handler
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
 	 * Check if this action has a confirmation step
155 155
 	 *
156 156
 	 * @param SS_HTTPRequest $request
157
-	 * @return SS_HTTPResponse
157
+	 * @return HTTPResponse
158 158
 	 */
159 159
 	public function handleConfirmation($request) {
160 160
 		// Find the action handler
Please login to merge, or discard this patch.
admin/code/LeftAndMain.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 	/**
200 200
 	 * Gets the combined configuration of all LeafAndMain subclasses required by the client app.
201 201
 	 *
202
-	 * @return array
202
+	 * @return string
203 203
 	 *
204 204
 	 * WARNING: Experimental API
205 205
 	 */
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
 	 * schema if X-Formschema-Request header is set.
284 284
 	 *
285 285
 	 * @param Form $form
286
-	 * @return SS_HTTPResponse
286
+	 * @return HTTPResponse|null
287 287
 	 */
288 288
 	protected function getSchemaResponse($form) {
289 289
 		$request = $this->getRequest();
@@ -889,6 +889,7 @@  discard block
 block discarded – undo
889 889
 	 * Return a list of appropriate templates for this class, with the given suffix using
890 890
 	 * {@link SSViewer::get_templates_by_class()}
891 891
 	 *
892
+	 * @param string $suffix
892 893
 	 * @return array
893 894
 	 */
894 895
 	public function getTemplatesWithSuffix($suffix) {
@@ -1758,7 +1759,7 @@  discard block
 block discarded – undo
1758 1759
 	 * The controller might not have any previewable content, in which case
1759 1760
 	 * this method returns FALSE.
1760 1761
 	 *
1761
-	 * @return String|boolean
1762
+	 * @return boolean
1762 1763
 	 */
1763 1764
 	public function LinkPreview() {
1764 1765
 		return false;
@@ -1945,7 +1946,7 @@  discard block
 block discarded – undo
1945 1946
 	}
1946 1947
 
1947 1948
 	/**
1948
-	 * @return String
1949
+	 * @return DBField
1949 1950
 	 */
1950 1951
 	public function Locale() {
1951 1952
 		return DBField::create_field('Locale', i18n::get_locale());
@@ -2111,6 +2112,9 @@  discard block
 block discarded – undo
2111 2112
 		return (parent::isFinished() || $this->isFinished);
2112 2113
 	}
2113 2114
 
2115
+	/**
2116
+	 * @param boolean $bool
2117
+	 */
2114 2118
 	public function setIsFinished($bool) {
2115 2119
 		$this->isFinished = $bool;
2116 2120
 	}
Please login to merge, or discard this patch.
admin/code/ModelAdmin.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -117,6 +117,9 @@
 block discarded – undo
117 117
 		Requirements::javascript(FRAMEWORK_ADMIN_DIR . '/client/dist/js/ModelAdmin.js');
118 118
 	}
119 119
 
120
+	/**
121
+	 * @param string $action
122
+	 */
120 123
 	public function Link($action = null) {
121 124
 		if(!$action) $action = $this->sanitiseClassName($this->modelClass);
122 125
 		return parent::Link($action);
Please login to merge, or discard this patch.
control/ContentNegotiator.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -119,6 +119,7 @@  discard block
 block discarded – undo
119 119
 	/**
120 120
 	 * Returns true if negotiation is enabled for the given response. By default, negotiation is only
121 121
 	 * enabled for pages that have the xml header.
122
+	 * @param HTTPResponse $response
122 123
 	 */
123 124
 	public static function enabled_for($response) {
124 125
 		$contentType = $response->getHeader("Content-Type");
@@ -134,7 +135,7 @@  discard block
 block discarded – undo
134 135
 	}
135 136
 
136 137
 	/**
137
-	 * @param SS_HTTPResponse $response
138
+	 * @param HTTPResponse $response
138 139
 	 */
139 140
 	public static function process(HTTPResponse $response) {
140 141
 		if(!self::enabled_for($response)) return;
@@ -184,7 +185,7 @@  discard block
 block discarded – undo
184 185
 	 * Replaces a few common tags and entities with their XHTML representations (<br>, <img>, &nbsp;
185 186
 	 * <input>, checked, selected).
186 187
 	 *
187
-	 * @param SS_HTTPResponse $response
188
+	 * @param HTTPResponse $response
188 189
 	 *
189 190
 	 * @todo Search for more xhtml replacement
190 191
 	 */
@@ -224,7 +225,7 @@  discard block
 block discarded – undo
224 225
 	 * - Replaces all occurrences of "application/xhtml+xml" with "text/html" in the template.
225 226
 	 * - Removes "xmlns" attributes and any <?xml> Pragmas.
226 227
 	 *
227
-	 * @param SS_HTTPResponse $response
228
+	 * @param HTTPResponse $response
228 229
 	 */
229 230
 	public function html(HTTPResponse $response) {
230 231
 		$encoding = Config::inst()->get('SilverStripe\Control\ContentNegotiator', 'encoding');
Please login to merge, or discard this patch.