Completed
Push — master ( 2bfb1b...c78d97 )
by Abdelouahab
07:55 queued 04:56
created
migrations/2017_05_10_015415_create_h5p_libraries_languages_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_languages', function (Blueprint $table) {
16
+        Schema::create('h5p_libraries_languages', function(Blueprint $table) {
17 17
             $table->integer('library_id')->unsigned();
18 18
             $table->string('language_code', 31);
19 19
             $table->text('translation', 65535);
Please login to merge, or discard this patch.
migrations/2017_05_10_015415_create_h5p_results_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_results', function (Blueprint $table) {
16
+        Schema::create('h5p_results', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->integer('content_id')->unsigned();
19 19
             $table->integer('user_id')->unsigned();
Please login to merge, or discard this patch.
migrations/2017_05_10_015415_create_h5p_contents_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', function (Blueprint $table) {
16
+        Schema::create('h5p_contents', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->timestamps();
19 19
             $table->integer('user_id')->unsigned();
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.
src/LaravelH5p/Http/Controllers/H5pController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,8 @@
 block discarded – undo
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
Please login to merge, or discard this patch.