Completed
Pull Request — master (#168)
by Franco
02:30
created
code/model/DMSDocument.php 1 patch
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,6 +98,9 @@  discard block
 block discarded – undo
98 98
         'permissions' => 'Permissions'
99 99
     );
100 100
 
101
+    /**
102
+     * @param DataObject $member
103
+     */
101 104
     public function canView($member = null)
102 105
     {
103 106
         if (!$member || !(is_a($member, 'Member')) || is_numeric($member)) {
@@ -667,7 +670,7 @@  discard block
 block discarded – undo
667 670
      * DMS, replacing the original document file but keeping the rest of the
668 671
      * document unchanged.
669 672
      *
670
-     * @param File|string $file path to a file to store
673
+     * @param File $file path to a file to store
671 674
      *
672 675
      * @return DMSDocument object that we replaced the file in
673 676
      */
@@ -1059,7 +1062,7 @@  discard block
 block discarded – undo
1059 1062
     /**
1060 1063
      * Return the size of the file associated with the document.
1061 1064
      *
1062
-     * @return string
1065
+     * @return integer|null
1063 1066
      */
1064 1067
     public function getAbsoluteSize()
1065 1068
     {
@@ -1078,6 +1081,7 @@  discard block
 block discarded – undo
1078 1081
 
1079 1082
 
1080 1083
     /**
1084
+     * @param integer $relationListCount
1081 1085
      * @return FieldList
1082 1086
      */
1083 1087
     protected function getFieldsForFile($relationListCount)
@@ -1343,7 +1347,7 @@  discard block
 block discarded – undo
1343 1347
     /**
1344 1348
      * Removes a single or multiple "action panel" tasks
1345 1349
      *
1346
-     * @param  string|array $panelKey
1350
+     * @param  string[] $panelKey
1347 1351
      * @return $this
1348 1352
      */
1349 1353
     public function removeActionPanelTask($panelKey)
Please login to merge, or discard this patch.