@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_counters', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_counters', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('type', 63); |
| 18 | 18 | $table->string('library_name', 127); |
| 19 | 19 | $table->string('library_version', 31); |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -Route::group(['middleware' => ['web']], function () { |
|
| 3 | +Route::group(['middleware' => ['web']], function() { |
|
| 4 | 4 | if (config('laravel-h5p.use_router') == 'EDITOR' || config('laravel-h5p.use_router') == 'ALL') { |
| 5 | 5 | Route::resource('h5p', "Djoudi\LaravelH5p\Http\Controllers\H5pController"); |
| 6 | - Route::group(['middleware' => ['auth']], function () { |
|
| 6 | + Route::group(['middleware' => ['auth']], function() { |
|
| 7 | 7 | // Route::get('h5p/export', 'Djoudi\LaravelH5p\Http\Controllers\H5pController@export')->name("h5p.export"); |
| 8 | 8 | |
| 9 | 9 | Route::get('library', "Djoudi\LaravelH5p\Http\Controllers\LibraryController@index")->name('h5p.library.index'); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | <title>{{ config('app.name', 'Laravel') }}</title>
|
| 12 | 12 | |
| 13 | 13 | <script> |
| 14 | - window.Laravel = <?php echo json_encode([ 'csrfToken' => csrf_token()]); ?> |
|
| 14 | + window.Laravel = <?php echo json_encode(['csrfToken' => csrf_token()]); ?> |
|
| 15 | 15 | </script> |
| 16 | 16 | |
| 17 | 17 | {{-- core styles --}}
|
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | <title>{{ config('app.name', 'Laravel') }}</title>
|
| 12 | 12 | |
| 13 | 13 | <script> |
| 14 | - window.Laravel = <?php echo json_encode([ 'csrfToken' => csrf_token()]); ?> |
|
| 14 | + window.Laravel = <?php echo json_encode(['csrfToken' => csrf_token()]); ?> |
|
| 15 | 15 | </script> |
| 16 | 16 | |
| 17 | 17 | <!-- Fonts --> |
@@ -23,21 +23,21 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function register() |
| 25 | 25 | { |
| 26 | - $this->app->singleton('LaravelH5p', function ($app) { |
|
| 26 | + $this->app->singleton('LaravelH5p', function($app) { |
|
| 27 | 27 | $LaravelH5p = new LaravelH5p($app); |
| 28 | 28 | |
| 29 | 29 | return $LaravelH5p; |
| 30 | 30 | }); |
| 31 | 31 | |
| 32 | - $this->app->bind('H5pHelper', function () { |
|
| 32 | + $this->app->bind('H5pHelper', function() { |
|
| 33 | 33 | return new H5pHelper(); |
| 34 | 34 | }); |
| 35 | 35 | |
| 36 | - $this->app->singleton('command.laravel-h5p.migration', function ($app) { |
|
| 36 | + $this->app->singleton('command.laravel-h5p.migration', function($app) { |
|
| 37 | 37 | return new MigrationCommand(); |
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | - $this->app->singleton('command.laravel-h5p.reset', function ($app) { |
|
| 40 | + $this->app->singleton('command.laravel-h5p.reset', function($app) { |
|
| 41 | 41 | return new ResetCommand(); |
| 42 | 42 | }); |
| 43 | 43 | |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_libraries_libraries', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_libraries_libraries', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigInteger('library_id')->unsigned(); |
| 18 | 18 | $table->bigInteger('required_library_id')->unsigned(); |
| 19 | 19 | $table->string('dependency_type', 31); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_tmpfiles', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_tmpfiles', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->string('path'); |
| 19 | 19 | $table->timestamps(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_contents_user_data', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_contents_user_data', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigInteger('content_id')->unsigned(); |
| 18 | 18 | $table->bigInteger('user_id')->unsigned(); |
| 19 | 19 | $table->bigInteger('sub_content_id')->unsigned(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('h5p_results', function (Blueprint $table) { |
|
| 16 | + Schema::create('h5p_results', function(Blueprint $table) { |
|
| 17 | 17 | $table->bigIncrements('id'); |
| 18 | 18 | $table->bigInteger('content_id')->unsigned(); |
| 19 | 19 | $table->bigInteger('user_id')->unsigned(); |