Completed
Pull Request — master (#168)
by Franco
02:30
created
code/model/DMSDocument_versions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
      * Creates a new filename for the current Document's file when replacing the
198 198
      * current file with a new file.
199 199
      *
200
-     * @param DMSDocument $filename The original filename
201 200
      *
201
+     * @param integer $versionCounter
202 202
      * @return string The new filename
203 203
      */
204 204
     protected function generateVersionedFilename(DMSDocument $doc, $versionCounter)
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
     /**
243 243
      * Return the size of the file associated with the document.
244 244
      *
245
-     * @return string
245
+     * @return integer
246 246
      */
247 247
     public function getAbsoluteSize()
248 248
     {
Please login to merge, or discard this patch.
code/tools/ShortCodeRelationFinder.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -32,6 +32,9 @@  discard block
 block discarded – undo
32 32
         return $found;
33 33
     }
34 34
 
35
+    /**
36
+     * @param integer $number
37
+     */
35 38
     public function findPageCount($number)
36 39
     {
37 40
         $list = $this->getList($number);
@@ -63,6 +66,7 @@  discard block
 block discarded – undo
63 66
      * Returns a filtered list of fields which could contain shortcodes.
64 67
      *
65 68
      * @param String
69
+     * @param string $class
66 70
      * @return Array Map of class names to an array of field names on these classes.
67 71
      */
68 72
     public function getShortcodeFields($class)
Please login to merge, or discard this patch.
code/cms/DMSDocumentAddExistingField.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -4,6 +4,10 @@
 block discarded – undo
4 4
 {
5 5
     public $useFieldContext = true;
6 6
 
7
+    /**
8
+     * @param string $name
9
+     * @param string $title
10
+     */
7 11
     public function __construct($name, $title = null)
8 12
     {
9 13
         $this->name = $name;
Please login to merge, or discard this patch.
tests/Stub/StubRelatedDocumentExtension.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     /**
18 18
      * For method {@link DMSDocumentSet::getDocuments}
19 19
      *
20
-     * @param  ArrayList $relatedDocuments
20
+     * @param  ArrayList $documents
21 21
      * @return ArrayList
22 22
      */
23 23
     public function updateDocuments($documents)
Please login to merge, or discard this patch.
code/cms/DMSUploadField.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,7 @@  discard block
 block discarded – undo
28 28
      * Override the default behaviour of the UploadField and take the uploaded file (uploaded to assets) and
29 29
      * add it into the DMS storage, deleting the old/uploaded file.
30 30
      * @param File
31
+     * @param File $file
31 32
      */
32 33
     protected function attachFile($file)
33 34
     {
@@ -54,6 +55,9 @@  discard block
 block discarded – undo
54 55
         return $doc;
55 56
     }
56 57
 
58
+    /**
59
+     * @param string $validator
60
+     */
57 61
     public function validate($validator)
58 62
     {
59 63
         return true;
@@ -63,7 +67,7 @@  discard block
 block discarded – undo
63 67
      * Action to handle upload of a single file
64 68
      *
65 69
      * @param SS_HTTPRequest $request
66
-     * @return string json
70
+     * @return SS_HTTPResponse json
67 71
      */
68 72
     public function upload(SS_HTTPRequest $request)
69 73
     {
Please login to merge, or discard this patch.
code/interface/DMSDocumentInterface.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
     /**
16 16
      * Return the extension of the file associated with the document
17
+     * @return string
17 18
      */
18 19
     public function getExtension();
19 20
 
@@ -36,7 +37,7 @@  discard block
 block discarded – undo
36 37
      * Takes a File object or a String (path to a file) and copies it into the DMS, replacing the original document file
37 38
      * but keeping the rest of the document unchanged.
38 39
      * @param $file File object, or String that is path to a file to store
39
-     * @return DMSDocumentInstance Document object that we replaced the file in
40
+     * @return DMSDocument Document object that we replaced the file in
40 41
      */
41 42
     public function replaceDocument($file);
42 43
 
Please login to merge, or discard this patch.
code/DMSShortcodeHandler.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -8,6 +8,10 @@
 block discarded – undo
8 8
  */
9 9
 class DMSShortcodeHandler
10 10
 {
11
+    /**
12
+     * @param string $content
13
+     * @param string $tag
14
+     */
11 15
     public static function handle($arguments, $content, ShortcodeParser $parser, $tag, array $extra = array())
12 16
     {
13 17
         if (!empty($arguments['id'])) {
Please login to merge, or discard this patch.
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.