Completed
Push — master ( 5d3719...f231a9 )
by Zura
01:23
created
src/Promocodes.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
      * Your code will be validated to be unique for one request.
254 254
      *
255 255
      * @param $collection
256
-     * @param $new
256
+     * @param string $new
257 257
      *
258 258
      * @return bool
259 259
      */
@@ -288,7 +288,6 @@  discard block
 block discarded – undo
288 288
     /**
289 289
      * Get custom set data value
290 290
      *
291
-     * @param null|array $data
292 291
      * @return null|array
293 292
      */
294 293
     public function getData($request)
@@ -456,7 +455,7 @@  discard block
 block discarded – undo
456 455
      *
457 456
      * @param string $code
458 457
      *
459
-     * @return bool|Promocode
458
+     * @return Promocode
460 459
      * @throws InvalidPromocodeException
461 460
      */
462 461
     public function check($code)
Please login to merge, or discard this patch.
tests/CheckPromocodeValidationTest.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 Promocodes;
6 6
 use Gabievi\Promocodes\Models\Promocode;
7 7
 use Gabievi\Promocodes\Tests\Models\User;
8
-use Gabievi\Promocodes\Exceptions\InvalidPromocodeException;
9 8
 
10 9
 class CheckPromocodeValidationTest extends TestCase
11 10
 {
Please login to merge, or discard this patch.