Passed
Push — master ( e21443...def3c9 )
by Abdelouahab
13:14
created
migrations/2017_05_10_015415_create_h5p_counters_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
routes/laravel-h5p.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
views/h5p/content/embed.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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       --}}
Please login to merge, or discard this patch.
views/h5p/layouts/h5p.blade.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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 -->
Please login to merge, or discard this patch.
src/LaravelH5p/Storages/LaravelH5pStorage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
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
                             }
Please login to merge, or discard this patch.
src/LaravelH5p/LaravelH5pServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,21 +23,21 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
migrations/2017_05_10_015415_create_h5p_libraries_libraries_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
migrations/2017_05_10_015415_create_h5p_tmpfiles_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
migrations/2017_05_10_015415_create_h5p_contents_user_data_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.