@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('settings', function (Blueprint $table) { |
|
| 11 | + Schema::create('settings', function(Blueprint $table) { |
|
| 12 | 12 | $table->increments('id'); |
| 13 | 13 | $table->timestamps(); |
| 14 | 14 | $table->softDeletes(); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $table->string('section')->nullable()->index(); |
| 17 | 17 | }); |
| 18 | 18 | |
| 19 | - Schema::create('setting_translations', function (Blueprint $table) { |
|
| 19 | + Schema::create('setting_translations', function(Blueprint $table) { |
|
| 20 | 20 | createDefaultTranslationsTableFields($table, 'setting'); |
| 21 | 21 | $table->text('value')->nullable(); |
| 22 | 22 | }); |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('medias', function (Blueprint $table) { |
|
| 10 | + Schema::create('medias', function(Blueprint $table) { |
|
| 11 | 11 | $table->increments('id')->unsigned(); |
| 12 | 12 | $table->timestamps(); |
| 13 | 13 | $table->softDeletes(); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | $table->string('filename')->nullable(); |
| 20 | 20 | }); |
| 21 | 21 | |
| 22 | - Schema::create('mediables', function (Blueprint $table) { |
|
| 22 | + Schema::create('mediables', function(Blueprint $table) { |
|
| 23 | 23 | $table->increments('id'); |
| 24 | 24 | $table->timestamps(); |
| 25 | 25 | $table->softDeletes(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('blocks', function (Blueprint $table) { |
|
| 16 | + Schema::create('blocks', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->integer('blockable_id')->nullable()->unsigned(); |
| 19 | 19 | $table->string('blockable_type')->nullable(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('features', function (Blueprint $table) { |
|
| 16 | + Schema::create('features', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('featured_id', 36); |
| 19 | 19 | $table->string('featured_type', 255); |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('files', function (Blueprint $table) { |
|
| 10 | + Schema::create('files', function(Blueprint $table) { |
|
| 11 | 11 | $table->increments('id')->unsigned(); |
| 12 | 12 | $table->timestamps(); |
| 13 | 13 | $table->softDeletes(); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $table->integer('size')->unsigned(); |
| 17 | 17 | }); |
| 18 | 18 | |
| 19 | - Schema::create('fileables', function (Blueprint $table) { |
|
| 19 | + Schema::create('fileables', function(Blueprint $table) { |
|
| 20 | 20 | $table->increments('id'); |
| 21 | 21 | $table->timestamps(); |
| 22 | 22 | $table->softDeletes(); |
@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | { |
| 8 | 8 | public function up() |
| 9 | 9 | { |
| 10 | - Schema::create('users', function (Blueprint $table) { |
|
| 10 | + Schema::create('users', function(Blueprint $table) { |
|
| 11 | 11 | createDefaultTableFields($table); |
| 12 | 12 | $table->string('name'); |
| 13 | 13 | $table->string('email')->unique(); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $table->rememberToken(); |
| 17 | 17 | }); |
| 18 | 18 | |
| 19 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 19 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 20 | 20 | $table->string('email')->index(); |
| 21 | 21 | $table->string('token')->index(); |
| 22 | 22 | $table->timestamp('created_at')->nullable(); |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | { |
| 9 | 9 | public function up() |
| 10 | 10 | { |
| 11 | - Schema::create('tagged', function (Blueprint $table) { |
|
| 11 | + Schema::create('tagged', function(Blueprint $table) { |
|
| 12 | 12 | $table->increments('id'); |
| 13 | 13 | $table->string('taggable_type'); |
| 14 | 14 | $table->integer('taggable_id')->unsigned(); |
@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | $table->index(['taggable_type', 'taggable_id']); |
| 17 | 17 | }); |
| 18 | 18 | |
| 19 | - Schema::create('tags', function (Blueprint $table) { |
|
| 19 | + Schema::create('tags', function(Blueprint $table) { |
|
| 20 | 20 | $table->increments('id'); |
| 21 | 21 | $table->string('namespace'); |
| 22 | 22 | $table->string('slug'); |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | $handler = new \Whoops\Handler\PrettyPageHandler(); |
| 105 | 105 | |
| 106 | 106 | if (app()->environment('local', 'development')) { |
| 107 | - $handler->setEditor(function ($file, $line) { |
|
| 107 | + $handler->setEditor(function($file, $line) { |
|
| 108 | 108 | $translations = array('^' . |
| 109 | 109 | config('twill.debug.whoops_path_guest') => config('twill.debug.whoops_path_host'), |
| 110 | 110 | ); |
@@ -113,7 +113,7 @@ |
||
| 113 | 113 | |
| 114 | 114 | $params = ['fp-x' => $fpX, 'fp-y' => $fpY, 'fp-z' => $fpZ]; |
| 115 | 115 | |
| 116 | - return array_map(function ($param) { |
|
| 116 | + return array_map(function($param) { |
|
| 117 | 117 | return number_format($param, 4, ".", ""); |
| 118 | 118 | }, $params) + ['crop' => 'focalpoint', 'fit' => 'crop']; |
| 119 | 119 | } |