Completed
Pull Request — master (#72)
by
unknown
01:18
created
tests/ApplyPromocodeToUserTest.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Gabievi\Promocodes\Models\Promocode;
6 6
 use Gabievi\Promocodes\Tests\Models\User;
7 7
 use Gabievi\Promocodes\Facades\Promocodes;
8
-use Gabievi\Promocodes\Exceptions\AlreadyUsedException;
9 8
 use Gabievi\Promocodes\Exceptions\UnauthenticatedException;
10 9
 
11 10
 class ApplyPromocodeToUserTest extends TestCase
Please login to merge, or discard this patch.
src/Promocodes.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
      * Fail will return empty collection.
130 130
      *
131 131
      * @param int $amount
132
-     * @param null $reward
132
+     * @param double|null $reward
133 133
      * @param array $data
134 134
      * @param Carbon|null $expires_in
135 135
      * @param int|null $quantity
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
      * Your code will be validated to be unique for one request.
258 258
      *
259 259
      * @param $collection
260
-     * @param $new
260
+     * @param string $new
261 261
      *
262 262
      * @return bool
263 263
      */
@@ -292,7 +292,6 @@  discard block
 block discarded – undo
292 292
     /**
293 293
      * Get custom set data value
294 294
      *
295
-     * @param null|array $data
296 295
      * @return null|array
297 296
      */
298 297
     public function getData($request)
@@ -437,7 +436,7 @@  discard block
 block discarded – undo
437 436
      *
438 437
      * @param string $code
439 438
      *
440
-     * @return bool|Promocode
439
+     * @return Promocode
441 440
      */
442 441
     public function check($code)
443 442
     {
Please login to merge, or discard this patch.