Completed
Pull Request — master (#1638)
by
unknown
19:28
created
code/Model/SiteTree.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -753,7 +753,7 @@
 block discarded – undo
753 753
 	 * @param boolean $unlinked Whether to link page titles.
754 754
 	 * @param boolean|string $stopAtPageType ClassName of a page to stop the upwards traversal.
755 755
 	 * @param boolean $showHidden Include pages marked with the attribute ShowInMenus = 0
756
-	 * @return string The breadcrumb trail.
756
+	 * @return \SilverStripe\ORM\FieldType\DBHTMLText The breadcrumb trail.
757 757
 	 */
758 758
 	public function Breadcrumbs($maxDepth = 20, $unlinked = false, $stopAtPageType = false, $showHidden = false) {
759 759
 		$pages = $this->getBreadcrumbItems($maxDepth, $stopAtPageType, $showHidden);
Please login to merge, or discard this patch.
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.
code/Controllers/CMSSiteTreeFilter.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use SilverStripe\Core\Object;
9 9
 use SilverStripe\Forms\DateField;
10 10
 use SilverStripe\ORM\DataList;
11
-use SilverStripe\ORM\DataObject;
12 11
 use SilverStripe\ORM\SS_List;
13 12
 use SilverStripe\ORM\Versioning\Versioned;
14 13
 
Please login to merge, or discard this patch.