| @@ -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 --> | 
| @@ -228,7 +228,7 @@ | ||
| 228 | 228 |                  } else { | 
| 229 | 229 | // Rewrite relative URLs used inside stylesheets | 
| 230 | 230 | $content .= preg_replace_callback( | 
| 231 | -                        '/url\([\'"]?([^"\')]+)[\'"]?\)/i', function ($matches) use ($cssRelPath) { | |
| 231 | +                        '/url\([\'"]?([^"\')]+)[\'"]?\)/i', function($matches) use ($cssRelPath) { | |
| 232 | 232 |                              if (preg_match("/^(data:|([a-z0-9]+:)?\/)/i", $matches[1]) === 1) { | 
| 233 | 233 | return $matches[0]; // Not relative, skip | 
| 234 | 234 | } | 
| @@ -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 | |
| @@ -99,8 +99,8 @@ | ||
| 99 | 99 |                      throw new H5PException('No such library'); | 
| 100 | 100 | } | 
| 101 | 101 | //old | 
| 102 | -               // $content['params'] = $request->get('parameters'); | |
| 103 | - // $params = json_decode($content['params']); | |
| 102 | +                // $content['params'] = $request->get('parameters'); | |
| 103 | + // $params = json_decode($content['params']); | |
| 104 | 104 | |
| 105 | 105 | |
| 106 | 106 | //new | 
| @@ -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(); |