@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create(config('promocodes.table', 'promocodes'), function (Blueprint $table) { |
|
| 15 | + Schema::create(config('promocodes.table', 'promocodes'), function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | |
| 18 | 18 | $table->integer('user_id')->unsigned()->nullable(); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | __DIR__.'/config/promocodes.php', 'promocodes' |
| 34 | 34 | ); |
| 35 | 35 | |
| 36 | - $this->app->singleton('promocodes', function ($app) { |
|
| 36 | + $this->app->singleton('promocodes', function($app) { |
|
| 37 | 37 | return new Promocodes(); |
| 38 | 38 | }); |
| 39 | 39 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | * @param null $reward |
| 15 | 15 | * @param array $data |
| 16 | 16 | * |
| 17 | - * @return mixed |
|
| 17 | + * @return \Illuminate\Support\Collection |
|
| 18 | 18 | */ |
| 19 | 19 | public function createCode($amount = 1, $reward = null, array $data = []) |
| 20 | 20 | { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | * Your code will be validated to be unique for one request. |
| 94 | 94 | * |
| 95 | 95 | * @param $collection |
| 96 | - * @param $new |
|
| 96 | + * @param string $new |
|
| 97 | 97 | * |
| 98 | 98 | * @return bool |
| 99 | 99 | */ |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | * @param null $reward |
| 136 | 136 | * @param array $data |
| 137 | 137 | * |
| 138 | - * @return static |
|
| 138 | + * @return \Illuminate\Support\Collection |
|
| 139 | 139 | */ |
| 140 | 140 | public function create($amount = 1, $reward = null, array $data = []) |
| 141 | 141 | { |