Completed
Pull Request — master (#40)
by Helpful
03:47
created
code/model/MultiForm.php 1 patch
Doc Comments   +6 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * Start the MultiForm instance.
87 87
      *
88
-     * @param Controller instance $controller Controller this form is created on
88
+     * @param Controller MultiFormTest_Controller $controller Controller this form is created on
89 89
      * @param string $name The form name, typically the same as the method name
90 90
      */
91 91
     public function __construct($controller, $name)
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      * Set the step passed in as the current step.
212 212
      *
213 213
      * @param MultiFormStep $step A subclass of MultiFormStep
214
-     * @return boolean The return value of write()
214
+     * @return integer The return value of write()
215 215
      */
216 216
     protected function setCurrentStep($step)
217 217
     {
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      * to the database, use {@link getAllStepsLinear()}.
301 301
      *
302 302
      * @param String $filter SQL WHERE statement
303
-     * @return DataObjectSet|boolean A set of MultiFormStep subclasses
303
+     * @return DataList A set of MultiFormStep subclasses
304 304
      */
305 305
     public function getSavedSteps($filter = null)
306 306
     {
@@ -345,6 +345,7 @@  discard block
 block discarded – undo
345 345
      * have created in this method.
346 346
      *
347 347
      * @param $currentStep Subclass of MultiFormStep
348
+     * @param MultiFormStep $step
348 349
      * @return FieldList of FormAction objects
349 350
      */
350 351
     public function actionsFor($step)
@@ -384,7 +385,7 @@  discard block
 block discarded – undo
384 385
      * any of those don't exist, look for a default Form template to render
385 386
      * with instead.
386 387
      *
387
-     * @return SSViewer object to render the template with
388
+     * @return HTMLText object to render the template with
388 389
      */
389 390
     public function forTemplate()
390 391
     {
@@ -605,7 +606,7 @@  discard block
 block discarded – undo
605 606
      * session, its used - otherwise a singleton of this step is used.
606 607
      * Caution: Doesn't consider branching for steps which aren't in the database yet.
607 608
      *
608
-     * @param $step Subclass of MultiFormStep to find the next step of
609
+     * @param DataObject $step Subclass of MultiFormStep to find the next step of
609 610
      * @param $stepsFound $stepsFound DataObjectSet reference, the steps found to call back on
610 611
      * @return DataObjectSet of MultiFormStep instances
611 612
      */
Please login to merge, or discard this patch.
code/model/MultiFormStep.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * Get a validator specific to this form.
105 105
      * The form is automatically validated in {@link Form->httpSubmission()}.
106 106
      *
107
-     * @return Validator
107
+     * @return boolean
108 108
      */
109 109
     public function getValidator()
110 110
     {
@@ -335,6 +335,7 @@  discard block
 block discarded – undo
335 335
      * Sets the form that this step is directly related to.
336 336
      *
337 337
      * @param MultiForm subclass $form
338
+     * @param MultiForm $form
338 339
      */
339 340
     public function setForm($form)
340 341
     {
Please login to merge, or discard this patch.