Completed
Push — master ( ab3d1c...0fa647 )
by Zura
01:10 queued 01:09
created
migrations/2016_05_17_221000_create_promocodes_table.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
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->string('code', 32)->unique();
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
         });
27 27
 
28 28
         //to match all laravel versions
29
-        $type = (Schema::getColumnType('users','id') == 'bigint') ? 'unsignedBigInteger' : 'unsignedInteger';
29
+        $type = (Schema::getColumnType('users', 'id') == 'bigint') ? 'unsignedBigInteger' : 'unsignedInteger';
30 30
 
31
-        Schema::create(config('promocodes.relation_table', 'promocode_user'), function (Blueprint $table) use ($type) {
31
+        Schema::create(config('promocodes.relation_table', 'promocode_user'), function(Blueprint $table) use ($type) {
32 32
 
33 33
             $table->$type('user_id');
34 34
 
Please login to merge, or discard this patch.