@@ -253,7 +253,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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) |
@@ -5,7 +5,6 @@ |
||
| 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 | { |