Completed
Pull Request — master (#12)
by Simon
01:19
created
tests/unit/PartialFieldSubmissionTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 use Firesphere\PartialUserforms\Models\PartialFormSubmission;
7 7
 use SilverStripe\Dev\SapphireTest;
8 8
 use SilverStripe\Security\DefaultAdminService;
9
-use SilverStripe\Security\Member;
10 9
 use SilverStripe\Security\Security;
11 10
 use SilverStripe\UserForms\Model\UserDefinedForm;
12 11
 
Please login to merge, or discard this patch.
src/models/PartialFormSubmission.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,6 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
     /**
177 177
      * @param Member
178
+     * @param Member $member
178 179
      *
179 180
      * @return boolean|string
180 181
      */
@@ -189,6 +190,7 @@  discard block
 block discarded – undo
189 190
 
190 191
     /**
191 192
      * @param Member
193
+     * @param Member $member
192 194
      *
193 195
      * @return boolean|string
194 196
      */
@@ -203,6 +205,7 @@  discard block
 block discarded – undo
203 205
 
204 206
     /**
205 207
      * @param Member
208
+     * @param Member $member
206 209
      *
207 210
      * @return boolean|string
208 211
      */
@@ -240,7 +243,7 @@  discard block
 block discarded – undo
240 243
     /**
241 244
      * Get the unique token for the share link
242 245
      *
243
-     * @return bool|string|null
246
+     * @return boolean|string
244 247
      * @throws \Exception
245 248
      */
246 249
     protected function getPartialToken()
Please login to merge, or discard this patch.
src/controllers/PartialUserFormVerifyController.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     }
90 90
 
91 91
     /**
92
-     * @return mixed
92
+     * @return PartialFormSubmission
93 93
      */
94 94
     public function getPartialFormSubmission()
95 95
     {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     }
98 98
 
99 99
     /**
100
-     * @param mixed $partialFormSubmission
100
+     * @param PartialFormSubmission $partialFormSubmission
101 101
      */
102 102
     public function setPartialFormSubmission($partialFormSubmission): void
103 103
     {
Please login to merge, or discard this patch.
tests/unit/PartialUserFormVerifyControllerTest.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -8,10 +8,7 @@
 block discarded – undo
8 8
 use Firesphere\PartialUserforms\Models\PartialFormSubmission;
9 9
 use SilverStripe\Control\NullHTTPRequest;
10 10
 use SilverStripe\Control\Session;
11
-use SilverStripe\Dev\Debug;
12 11
 use SilverStripe\Dev\SapphireTest;
13
-use SilverStripe\Forms\Form;
14
-use SilverStripe\UserForms\Model\UserDefinedForm;
15 12
 
16 13
 class PartialUserFormVerifyControllerTest extends SapphireTest
17 14
 {
Please login to merge, or discard this patch.