Completed
Pull Request — master (#1638)
by Damian
02:33
created
code/Controllers/CMSMain.php 1 patch
Doc Comments   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -272,6 +272,9 @@  discard block
 block discarded – undo
272 272
 		}
273 273
 	}
274 274
 
275
+	/**
276
+	 * @param string $link
277
+	 */
275 278
 	public function LinkWithSearch($link) {
276 279
 		// Whitelist to avoid side effects
277 280
 		$params = array(
@@ -754,7 +757,7 @@  discard block
 block discarded – undo
754 757
 
755 758
 	/**
756 759
 	 * @param HTTPRequest $request
757
-	 * @return string HTML
760
+	 * @return \SilverStripe\ORM\FieldType\DBHTMLText HTML
758 761
 	 */
759 762
 	public function treeview($request) {
760 763
 		return $this->renderWith($this->getTemplatesWithSuffix('_TreeView'));
@@ -762,7 +765,7 @@  discard block
 block discarded – undo
762 765
 
763 766
 	/**
764 767
 	 * @param HTTPRequest $request
765
-	 * @return string HTML
768
+	 * @return \SilverStripe\ORM\FieldType\DBHTMLText HTML
766 769
 	 */
767 770
 	public function listview($request) {
768 771
 		return $this->renderWith($this->getTemplatesWithSuffix('_ListView'));
@@ -1085,7 +1088,7 @@  discard block
 block discarded – undo
1085 1088
 	 * Actually perform the publication step
1086 1089
 	 *
1087 1090
 	 * @param Versioned|DataObject $record
1088
-	 * @return mixed
1091
+	 * @return HTTPResponse|null
1089 1092
 	 */
1090 1093
 	public function performPublish($record) {
1091 1094
 		if($record && !$record->canPublish()) {
Please login to merge, or discard this patch.