Completed
Pull Request — master (#110)
by Franco
02:25
created
code/model/DMSDocument.php 1 patch
Doc Comments   +7 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,6 +84,9 @@  discard block
 block discarded – undo
84 84
      */
85 85
     private static $default_download_behaviour = 'download';
86 86
 
87
+    /**
88
+     * @param DataObject $member
89
+     */
87 90
     public function canView($member = null)
88 91
     {
89 92
         if (! $member || ! (is_a($member, 'Member')) || is_numeric($member)) {
@@ -868,7 +871,7 @@  discard block
 block discarded – undo
868 871
      * DMS, replacing the original document file but keeping the rest of the
869 872
      * document unchanged.
870 873
      *
871
-     * @param File|string $file path to a file to store
874
+     * @param File $file path to a file to store
872 875
      *
873 876
      * @return DMSDocument object that we replaced the file in
874 877
      */
@@ -1238,7 +1241,7 @@  discard block
 block discarded – undo
1238 1241
     /**
1239 1242
      * Return the size of the file associated with the document.
1240 1243
      *
1241
-     * @return string
1244
+     * @return integer|null
1242 1245
      */
1243 1246
     public function getAbsoluteSize()
1244 1247
     {
@@ -1257,7 +1260,8 @@  discard block
 block discarded – undo
1257 1260
 
1258 1261
 
1259 1262
     /**
1260
-     * @return FieldList
1263
+     * @param integer $relationListCount
1264
+     * @return FieldGroup
1261 1265
      */
1262 1266
     protected function getFieldsForFile($relationListCount)
1263 1267
     {
Please login to merge, or discard this patch.