@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('redeem_codes', function (Blueprint $table) { |
|
15 | + Schema::create('redeem_codes', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | |
18 | 18 | $table->integer('event_id')->unsigned()->nullable(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('redeem_code_rewards', function (Blueprint $table) { |
|
15 | + Schema::create('redeem_code_rewards', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | |
18 | 18 | $table->integer('redeem_code_id')->unsigned(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('events', function (Blueprint $table) { |
|
15 | + Schema::create('events', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | |
18 | 18 | $table->tinyInteger('type')->unsigned(); |
@@ -12,7 +12,7 @@ |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('redeem_code_histories', function (Blueprint $table) { |
|
15 | + Schema::create('redeem_code_histories', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->integer('redeem_code_id')->unsigned()->index(); |
18 | 18 | $table->string('ip', 15); |
@@ -66,7 +66,7 @@ |
||
66 | 66 | if (empty($request->prefix)) { |
67 | 67 | $redeemCode->code = $this->generateRandomString(12); |
68 | 68 | } else { |
69 | - $redeemCode->code = strtoupper($request->prefix) . $this->generateRandomString(12 - strlen($request->prefix)); |
|
69 | + $redeemCode->code = strtoupper($request->prefix).$this->generateRandomString(12 - strlen($request->prefix)); |
|
70 | 70 | } |
71 | 71 | array_push($codes, $redeemCode->code); |
72 | 72 | $redeemCode->save(); |