Passed
Push — main ( 52f302...d14887 )
by Richard
04:30
created
migrations/2016_05_12_063931_create_redeem_codes_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
migrations/2016_05_12_063950_create_redeem_codes_rewards_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
migrations/2016_05_12_062021_create_events_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
migrations/2020_07_17_033611_create_redeem_code_histories_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/RedeemCodeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.