Completed
Pull Request — master (#110)
by Franco
02:00
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.
code/cms/DMSUploadField.php 1 patch
Doc Comments   +2 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
     {
@@ -63,7 +64,7 @@  discard block
 block discarded – undo
63 64
      * Action to handle upload of a single file
64 65
      *
65 66
      * @param SS_HTTPRequest $request
66
-     * @return string json
67
+     * @return SS_HTTPResponse json
67 68
      */
68 69
     public function upload(SS_HTTPRequest $request)
69 70
     {
Please login to merge, or discard this patch.
code/DMS.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
 
140 140
     /**
141 141
      * Creates a storage folder for the given path
142
-     * @param $path Path to create a folder for
142
+     * @param string $path Path to create a folder for
143 143
      */
144 144
     public static function create_storage_folder($path)
145 145
     {
Please login to merge, or discard this patch.
code/model/DMSDocument.php 1 patch
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1409,8 +1409,4 @@
 block discarded – undo
1409 1409
             $valid->error("Selecting 'Only these people' from a editors list needs at least one group selected.");
1410 1410
         }
1411 1411
 
1412
-        return $valid;
1413
-    }
1414
-
1415
-
1416
-}
1412
+        return $valid
1417 1413
\ No newline at end of file
Please login to merge, or discard this patch.
tests/DMSGridFieldAddNewButtonTest.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,6 +48,4 @@
 block discarded – undo
48 48
 
49 49
         $fragments = $this->button->getHTMLFragments($this->gridField);
50 50
         $result = array_pop($fragments)->getValue();
51
-        $this->assertContains('?ID=123', $result);
52
-    }
53
-}
51
+        $this->assertContains('?ID=123', $result
54 52
\ No newline at end of file
Please login to merge, or discard this patch.