Completed
Push — master ( f728b1...ff8461 )
by Ingo
28s
created
ORM/Hierarchy/Hierarchy.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 	/**
420 420
 	 * Return the IDs of all the marked nodes.
421 421
 	 *
422
-	 * @return array
422
+	 * @return integer[]
423 423
 	 */
424 424
 	public function markedNodeIDs() {
425 425
 		return array_keys($this->markedNodes);
@@ -636,7 +636,7 @@  discard block
 block discarded – undo
636 636
 	/**
637 637
 	 * Return all the children that this page had, including pages that were deleted from both stage & live.
638 638
 	 *
639
-	 * @return DataList
639
+	 * @return \SilverStripe\ORM\DataList
640 640
 	 * @throws Exception
641 641
 	 */
642 642
 	public function AllHistoricalChildren() {
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
 	 * Get the next node in the tree of the type. If there is no instance of the className descended from this node,
827 827
 	 * then search the parents.
828 828
 	 * @param string     $className Class name of the node to find.
829
-	 * @param string|int $root      ID/ClassName of the node to limit the search to
829
+	 * @param integer $root      ID/ClassName of the node to limit the search to
830 830
 	 * @param DataObject $afterNode Used for recursive calls to this function
831 831
 	 * @return DataObject
832 832
 	 */
Please login to merge, or discard this patch.
ORM/Queries/SQLExpression.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
 	/**
103 103
 	 * Execute this query.
104 104
 	 *
105
-	 * @return SS_Query
105
+	 * @return \SilverStripe\ORM\Connect\SS_Query
106 106
 	 */
107 107
 	public function execute() {
108 108
 		$sql = $this->sql($parameters);
Please login to merge, or discard this patch.
ORM/Versioning/ChangeSetItem.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
 	 * Find version of this object in the given stage
139 139
 	 *
140 140
 	 * @param string $stage
141
-	 * @return Versioned|DataObject
141
+	 * @return DataObject|null
142 142
 	 */
143 143
 	protected function getObjectInStage($stage) {
144 144
 		return Versioned::get_by_stage($this->ObjectClass, $stage)->byID($this->ObjectID);
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
 	/**
148 148
 	 * Find latest version of this object
149 149
 	 *
150
-	 * @return Versioned|DataObject
150
+	 * @return DataObject|null
151 151
 	 */
152 152
 	protected function getObjectLatestVersion() {
153 153
 		return Versioned::get_latest_version($this->ObjectClass, $this->ObjectID);
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 	 * Get the ChangeSetItems that reference a passed DataObject
332 332
 	 *
333 333
 	 * @param DataObject $object
334
-	 * @return DataList
334
+	 * @return \SilverStripe\ORM\DataList
335 335
 	 */
336 336
 	public static function get_for_object($object) {
337 337
 		return ChangeSetItem::get()->filter([
@@ -345,7 +345,7 @@  discard block
 block discarded – undo
345 345
 	 *
346 346
 	 * @param int $objectID The ID of the object
347 347
 	 * @param string $objectClass The class of the object (or any parent class)
348
-	 * @return DataList
348
+	 * @return \SilverStripe\ORM\DataList
349 349
 	 */
350 350
 	public static function get_for_object_by_id($objectID, $objectClass) {
351 351
 		return ChangeSetItem::get()->filter([
Please login to merge, or discard this patch.
ORM/Versioning/Versioned.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1069,7 +1069,7 @@  discard block
 block discarded – undo
1069 1069
 	/**
1070 1070
 	 * Find objects in the given relationships, merging them into the given list
1071 1071
 	 *
1072
-	 * @param array $source Config property to extract relationships from
1072
+	 * @param string $source Config property to extract relationships from
1073 1073
 	 * @param bool $recursive True if recursive
1074 1074
 	 * @param ArrayList $list Optional list to add items to
1075 1075
 	 * @return ArrayList The list
@@ -1189,7 +1189,7 @@  discard block
 block discarded – undo
1189 1189
 	/**
1190 1190
 	 * Check if the current user can delete this record from live
1191 1191
 	 *
1192
-	 * @param null $member
1192
+	 * @param null|DataObject $member
1193 1193
 	 * @return mixed
1194 1194
 	 */
1195 1195
 	public function canUnpublish($member = null) {
@@ -1299,7 +1299,7 @@  discard block
 block discarded – undo
1299 1299
 	 * Extend permissions to include additional security for objects that are not published to live.
1300 1300
 	 *
1301 1301
 	 * @param Member $member
1302
-	 * @return bool|null
1302
+	 * @return false|null
1303 1303
 	 */
1304 1304
 	public function canView($member = null) {
1305 1305
 		// Invoke default version-gnostic canView
@@ -1374,7 +1374,7 @@  discard block
 block discarded – undo
1374 1374
 	 *
1375 1375
 	 * @param string $stage
1376 1376
 	 * @param Member $member
1377
-	 * @return bool
1377
+	 * @return boolean|string
1378 1378
 	 */
1379 1379
 	public function canViewStage($stage = 'Live', $member = null) {
1380 1380
 		$oldMode = Versioned::get_reading_mode();
@@ -1439,7 +1439,7 @@  discard block
 block discarded – undo
1439 1439
 	/**
1440 1440
 	 * Get the latest published DataObject.
1441 1441
 	 *
1442
-	 * @return DataObject
1442
+	 * @return string
1443 1443
 	 */
1444 1444
 	public function latestPublished() {
1445 1445
 		// Get the root data object class - this will have the version field
@@ -1918,7 +1918,7 @@  discard block
 block discarded – undo
1918 1918
 	/**
1919 1919
 	 * Determine if the current user is able to set the given site stage / archive
1920 1920
 	 *
1921
-	 * @param SS_HTTPRequest $request
1921
+	 * @param \SS_HTTPRequest $request
1922 1922
 	 * @return bool
1923 1923
 	 */
1924 1924
 	public static function can_choose_site_stage($request) {
@@ -2431,7 +2431,7 @@  discard block
 block discarded – undo
2431 2431
 	/**
2432 2432
 	 * Returns an array of possible stages.
2433 2433
 	 *
2434
-	 * @return array
2434
+	 * @return string[]
2435 2435
 	 */
2436 2436
 	public function getVersionedStages() {
2437 2437
 		if($this->hasStages()) {
Please login to merge, or discard this patch.
ORM/Versioning/VersionedGridFieldItemRequest.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      *
83 83
      * @param array $data
84 84
      * @param Form $form
85
-	 * @return SS_HTTPResponse
85
+	 * @return \SS_HTTPResponse|null
86 86
      */
87 87
 	public function doArchive($data, $form) {
88 88
 		$record = $this->getRecord();
Please login to merge, or discard this patch.
search/SearchContext.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
 	 * @param array $searchParams
180 180
 	 * @param array|bool|string $sort
181 181
 	 * @param array|bool|string $limit
182
-	 * @return SS_List
182
+	 * @return DataList
183 183
 	 * @throws Exception
184 184
 	 */
185 185
 	public function getResults($searchParams, $sort = false, $limit = false) {
Please login to merge, or discard this patch.
security/Member.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
 	/**
827 827
 	 * Returns the current logged in user
828 828
 	 *
829
-	 * @return Member|null
829
+	 * @return DataObject|null
830 830
 	 */
831 831
 	public static function currentUser() {
832 832
 		$id = Member::currentUserID();
@@ -1270,7 +1270,7 @@  discard block
 block discarded – undo
1270 1270
 	 * If no $groups is passed, all members will be returned
1271 1271
 	 *
1272 1272
 	 * @param mixed $groups - takes a SS_List, an array or a single Group.ID
1273
-	 * @return SS_Map Returns an SS_Map that returns all Member data.
1273
+	 * @return SilverStripe\ORM\SS_Map Returns an SS_Map that returns all Member data.
1274 1274
 	 */
1275 1275
 	public static function map_in_groups($groups = null) {
1276 1276
 		$groupIDList = array();
@@ -1308,7 +1308,7 @@  discard block
 block discarded – undo
1308 1308
 	 *
1309 1309
 	 * @param array $groups Groups to consider or NULL to use all groups with
1310 1310
 	 *                      CMS permissions.
1311
-	 * @return SS_Map Returns a map of all members in the groups given that
1311
+	 * @return SilverStripe\ORM\SS_Map Returns a map of all members in the groups given that
1312 1312
 	 *                have CMS permissions.
1313 1313
 	 */
1314 1314
 	public static function mapInCMSGroups($groups = null) {
Please login to merge, or discard this patch.
tests/i18n/i18nTextCollectorTest.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -843,6 +843,10 @@  discard block
 block discarded – undo
843 843
  * Assist with testing of specific protected methods
844 844
  */
845 845
 class i18nTextCollectorTest_Collector extends i18nTextCollector implements TestOnly {
846
+
847
+	/**
848
+	 * @param string $directory
849
+	 */
846 850
 	public function getModules_Test($directory) {
847 851
 		return $this->getModules($directory);
848 852
 	}
@@ -851,6 +855,9 @@  discard block
 block discarded – undo
851 855
 		return $this->resolveDuplicateConflicts($entitiesByModule);
852 856
 	}
853 857
 
858
+	/**
859
+	 * @param string $module
860
+	 */
854 861
 	public function getFileListForModule_Test($module) {
855 862
 		return $this->getFileListForModule($module);
856 863
 	}
@@ -859,6 +866,9 @@  discard block
 block discarded – undo
859 866
 		return $this->getConflicts($entitiesByModule);
860 867
 	}
861 868
 
869
+	/**
870
+	 * @param string $class
871
+	 */
862 872
 	public function findModuleForClass_Test($class) {
863 873
 		return $this->findModuleForClass($class);
864 874
 	}
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
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
 	/**
731 731
 	 * All custom objects with the same number. E.g. 'Page 1' owns 'Custom 1'
732 732
 	 *
733
-	 * @return DataList
733
+	 * @return SilverStripe\ORM\DataList
734 734
 	 */
735 735
 	public function Custom() {
736 736
 		$title = str_replace('Page', 'Custom', $this->Title);
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
 	/**
785 785
 	 * All pages with the same number. E.g. 'Page 1' owns 'Custom 1'
786 786
 	 *
787
-	 * @return DataList
787
+	 * @return SilverStripe\ORM\DataList
788 788
 	 */
789 789
 	public function Pages() {
790 790
 		$title = str_replace('Custom', 'Page', $this->Title);
Please login to merge, or discard this patch.