Completed
Push — 3.1 ( 13f212...2ac0a5 )
by Damian
03:18
created
code/controllers/ContentController.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -212,6 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
 	/**
214 214
 	 * @uses ErrorPage::response_for()
215
+	 * @param integer $code
215 216
 	 */
216 217
 	public function httpError($code, $message = null) {
217 218
 		// Don't use the HTML response for media requests
@@ -232,6 +233,7 @@  discard block
 block discarded – undo
232 233
 
233 234
 	/**
234 235
 	 * Returns the associated database record
236
+	 * @return SiteTree
235 237
 	 */
236 238
 	public function data() {
237 239
 		return $this->dataRecord;
Please login to merge, or discard this patch.
code/model/VirtualPage.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -374,6 +374,7 @@
 block discarded – undo
374 374
 	
375 375
 	/**
376 376
 	 * Ensure we have an up-to-date version of everything.
377
+	 * @param DataObject $source
377 378
 	 */
378 379
 	public function copyFrom($source, $updateImageTracking = true) {
379 380
 		if($source) {
Please login to merge, or discard this patch.
code/controllers/AssetAdmin.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -48,6 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
 	/**
50 50
 	 * Return fake-ID "root" if no ID is found (needed to upload files into the root-folder)
51
+	 * @return integer
51 52
 	 */
52 53
 	public function currentPageID() {
53 54
 		if(is_numeric($this->getRequest()->requestVar('ID')))	{
@@ -528,6 +529,10 @@  discard block
 block discarded – undo
528 529
 		return new Folder();
529 530
 	}
530 531
 
532
+	/**
533
+	 * @param string $childrenMethod
534
+	 * @param string $numChildrenMethod
535
+	 */
531 536
 	public function getSiteTreeFor($className, $rootID = null, $childrenMethod = null, $numChildrenMethod = null, $filterFunction = null, $minNodeCount = 30) {
532 537
 		if (!$childrenMethod) $childrenMethod = 'ChildFolders';
533 538
 		if (!$numChildrenMethod) $numChildrenMethod = 'numChildFolders';
Please login to merge, or discard this patch.
code/controllers/CMSMain.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -669,7 +669,7 @@  discard block
 block discarded – undo
669 669
 
670 670
 	/**
671 671
 	 * @param SS_HTTPRequest $request
672
-	 * @return String HTML
672
+	 * @return HTMLText HTML
673 673
 	 */
674 674
 	public function treeview($request) {
675 675
 		return $this->renderWith($this->getTemplatesWithSuffix('_TreeView'));
@@ -677,7 +677,7 @@  discard block
 block discarded – undo
677 677
 
678 678
 	/**
679 679
 	 * @param SS_HTTPRequest $request
680
-	 * @return String HTML
680
+	 * @return HTMLText HTML
681 681
 	 */
682 682
 	public function listview($request) {
683 683
 		return $this->renderWith($this->getTemplatesWithSuffix('_ListView'));
Please login to merge, or discard this patch.
code/controllers/CMSPageHistoryController.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 	
41 41
 	/**
42 42
 	 * @param SS_HTTPRequest $request
43
-	 * @return array
43
+	 * @return SS_HTTPResponse
44 44
 	 */
45 45
 	public function show($request) {
46 46
 		$form = $this->ShowVersionForm($request->param('VersionID'));
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 	
60 60
 	/**
61 61
 	 * @param SS_HTTPRequest $request
62
-	 * @return array
62
+	 * @return SS_HTTPResponse
63 63
 	 */
64 64
 	public function compare($request) {
65 65
 		$form = $this->CompareVersionsForm(
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 	 * @param array
279 279
 	 * @param Form
280 280
 	 *
281
-	 * @return html
281
+	 * @return null|HTMLText
282 282
 	 */
283 283
 	public function doCompare($data, $form) {
284 284
 		$versions = $data['Versions'];
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 	 * @param array
316 316
 	 * @param Form
317 317
 	 *
318
-	 * @return html
318
+	 * @return null|HTMLText
319 319
 	 */	
320 320
 	public function doShowVersion($data, $form) {
321 321
 		$versionID = null;
Please login to merge, or discard this patch.
code/controllers/CMSSettingsController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	/**
64 64
 	 * Used for preview controls, mainly links which switch between different states of the page.
65 65
 	 *
66
-	 * @return ArrayData
66
+	 * @return HTMLText
67 67
 	 */
68 68
 	public function getSilverStripeNavigator() {
69 69
 		return $this->renderWith('CMSSettingsController_SilverStripeNavigator');
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 	 *
75 75
 	 * @param array $data 
76 76
 	 * @param Form $form 
77
-	 * @return String
77
+	 * @return SS_HTTPResponse
78 78
 	 */
79 79
 	public function save_siteconfig($data, $form) {
80 80
 		$siteConfig = SiteConfig::current_site_config();
Please login to merge, or discard this patch.
code/controllers/ReportAdmin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
 	 * Return a SS_List of SS_Report subclasses
81 81
 	 * that are available for use.
82 82
 	 *
83
-	 * @return SS_List
83
+	 * @return null|SS_List
84 84
 	 */
85 85
 	public function Reports() {
86 86
  		$output = new ArrayList();
Please login to merge, or discard this patch.
code/forms/SiteTreeURLSegmentField.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,13 +87,14 @@
 block discarded – undo
87 87
 	
88 88
 	/**
89 89
 	 * @param the url that prefixes the page url segment field
90
+	 * @param string $url
90 91
 	 */
91 92
 	public function setURLPrefix($url){
92 93
 		$this->urlPrefix = $url;
93 94
 	}
94 95
 	
95 96
 	/**
96
-	 * @return the url prefixes the page url segment field to show in template
97
+	 * @return string url prefixes the page url segment field to show in template
97 98
 	 */
98 99
 	public function getURLPrefix(){
99 100
 		return $this->urlPrefix;
Please login to merge, or discard this patch.
code/model/SiteTree.php 1 patch
Doc Comments   +4 added lines, -7 removed lines patch added patch discarded remove patch
@@ -932,7 +932,7 @@  discard block
 block discarded – undo
932 932
 	 * 
933 933
 	 * @param string $stage
934 934
 	 * @param Member $member
935
-	 * @return bool
935
+	 * @return boolean|string
936 936
 	 */
937 937
 	public function canViewStage($stage = 'Live', $member = null) {
938 938
 		$oldMode = Versioned::get_reading_mode();
@@ -994,9 +994,6 @@  discard block
 block discarded – undo
994 994
 	 * @uses DataExtension->canCreate()
995 995
 	 *
996 996
 	 * @param Member $member
997
-	 * @param array $context Optional array which may contain array('Parent' => $parentObj)
998
-	 *                       If a parent page is known, it will be checked for validity.
999
-	 *                       If omitted, it will be assumed this is to be created as a top level page.
1000 997
 	 * @return bool True if the current user can create pages on this class.
1001 998
 	 */
1002 999
 	public function canCreate($member = null) {
@@ -1291,7 +1288,7 @@  discard block
 block discarded – undo
1291 1288
 	/**
1292 1289
 	 * Get the 'can edit' information for a number of SiteTree pages.
1293 1290
 	 *
1294
-	 * @param array $ids       An array of IDs of the SiteTree pages to look up
1291
+	 * @param integer[] $ids       An array of IDs of the SiteTree pages to look up
1295 1292
 	 * @param int   $memberID  ID of member
1296 1293
 	 * @param bool  $useCached Return values from the permission cache if they exist
1297 1294
 	 * @return array
@@ -1362,7 +1359,7 @@  discard block
 block discarded – undo
1362 1359
 	 *
1363 1360
 	 * @param string $condition The PHP condition to be evaluated. The page will be called $item
1364 1361
 	 * @param array  $collator  An array, passed by reference, to collect all of the matching descendants.
1365
-	 * @return bool
1362
+	 * @return boolean|null
1366 1363
 	 */
1367 1364
 	public function collateDescendants($condition, &$collator) {
1368 1365
 		if($children = $this->Children()) {
@@ -1813,7 +1810,7 @@  discard block
 block discarded – undo
1813 1810
 	 * @deprecated 3.1 Use DependentPages()->Count() instead.
1814 1811
 	 *
1815 1812
 	 * @param bool $includeVirtuals Set to false to exlcude virtual pages.
1816
-	 * @return ArrayList
1813
+	 * @return integer
1817 1814
 	 */
1818 1815
 	public function DependentPagesCount($includeVirtuals = true) {
1819 1816
 		Deprecation::notice('3.1', 'Use SiteTree->DependentPages()->Count() instead.');
Please login to merge, or discard this patch.