Completed
Push — master ( 1cc1aa...91444b )
by Daniel
03:40
created
code/Controllers/CMSPageHistoryController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
 	/**
63 63
 	 * @param SS_HTTPRequest $request
64
-	 * @return array
64
+	 * @return SS_HTTPResponse
65 65
 	 */
66 66
 	public function show($request) {
67 67
 		$form = $this->ShowVersionForm($request->param('VersionID'));
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
 	/**
82 82
 	 * @param SS_HTTPRequest $request
83
-	 * @return array
83
+	 * @return SS_HTTPResponse
84 84
 	 */
85 85
 	public function compare($request) {
86 86
 		$form = $this->CompareVersionsForm(
Please login to merge, or discard this patch.
code/Forms/SiteTreeURLSegmentField.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -118,6 +118,9 @@
 block discarded – undo
118 118
 		return $this->defaultUrl;
119 119
 	}
120 120
 
121
+	/**
122
+	 * @param string $url
123
+	 */
121 124
 	public function setDefaultURL($url) {
122 125
 		$this->defaultUrl = $url;
123 126
 		return $this;
Please login to merge, or discard this patch.
code/Model/ErrorPage.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
 	/**
253 253
 	 * Write out the published version of the page to the filesystem
254 254
 	 *
255
-	 * @return true if the page write was successful
255
+	 * @return boolean if the page write was successful
256 256
 	 */
257 257
 	public function writeStaticPage() {
258 258
 		if(!self::config()->enable_static_file) {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use OptionsetField;
9 9
 use TreeDropdownField;
10 10
 use TextField;
11
-use Page_Controller;
12 11
 
13 12
 /**
14 13
  * A redirector page redirects when the page is visited.
Please login to merge, or discard this patch.
code/Model/VirtualPage.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -341,6 +341,9 @@
 block discarded – undo
341 341
 		}
342 342
 	}
343 343
 
344
+	/**
345
+	 * @param string $field
346
+	 */
344 347
 	public function getField($field) {
345 348
 		if($this->isFieldVirtualised($field)) {
346 349
 			return $this->CopyContentFrom()->getField($field);
Please login to merge, or discard this patch.
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace SilverStripe\CMS\Model;
4 4
 
5
-use Exception;
6
-use SilverStripe\CMS\Controllers\ContentController;
7 5
 use SilverStripe\ORM\DataObject;
8 6
 use SilverStripe\ORM\Versioning\Versioned;
9 7
 use Page;
@@ -12,8 +10,6 @@  discard block
 block discarded – undo
12 10
 use TreeDropdownField;
13 11
 use ReadonlyTransformation;
14 12
 use LiteralField;
15
-use Page_Controller;
16
-use SilverStripe\CMS\Controllers\ModelAsController;
17 13
 
18 14
 
19 15
 /**
Please login to merge, or discard this patch.
code/Reports/EmptyPagesReport.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use SS_Report;
6 6
 use SilverStripe\CMS\Model\SiteTree;
7
-use Deprecation;
8 7
 
9 8
 /**
10 9
  * @package cms
Please login to merge, or discard this patch.
code/Reports/BrokenRedirectorPagesReport.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use SS_Report;
6 6
 use SilverStripe\CMS\Model\SiteTree;
7
-use Deprecation;
8 7
 
9 8
 /**
10 9
  * @package cms
Please login to merge, or discard this patch.
code/Controllers/SilverStripeNavigator.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 use ViewableData;
9 9
 use ClassInfo;
10 10
 use SilverStripe\Admin\CMSPreviewable;
11
-use SiteTreeFutureState;
12 11
 
13 12
 
14 13
 /**
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	protected $record;
33 33
 
34 34
 	/**
35
-	 * @param DataObject|CMSPreviewable $record
35
+	 * @param CMSPreviewable $record
36 36
 	 */
37 37
 	public function __construct(CMSPreviewable $record) {
38 38
 		parent::__construct();
Please login to merge, or discard this patch.
code/Model/RedirectorPage.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 OptionsetField;
9 9
 use TreeDropdownField;
10 10
 use TextField;
11
-use Page_Controller;
12 11
 
13 12
 /**
14 13
  * A redirector page redirects when the page is visited.
Please login to merge, or discard this patch.
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.