@@ -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(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | * @param int $amount |
14 | 14 | * @param null $reward |
15 | 15 | * |
16 | - * @return mixed |
|
16 | + * @return \Illuminate\Support\Collection |
|
17 | 17 | */ |
18 | 18 | public function createCode($amount = 1, $reward = null) |
19 | 19 | { |
@@ -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 | */ |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * @param int $amount |
135 | 135 | * @param null $reward |
136 | 136 | * |
137 | - * @return static |
|
137 | + * @return \Illuminate\Support\Collection |
|
138 | 138 | */ |
139 | 139 | public function create($amount = 1, $reward = null) |
140 | 140 | { |
@@ -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 | } |