Completed
Push — master ( 99fe23...c01d37 )
by Abdelouahab
04:24
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->bigInteger('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_contents_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_contents_libraries', function (Blueprint $table) {
16
+        Schema::create('h5p_contents_libraries', function(Blueprint $table) {
17 17
             $table->bigInteger('content_id')->unsigned();
18 18
             $table->bigInteger('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_contents_tags_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_tags', function (Blueprint $table) {
16
+        Schema::create('h5p_contents_tags', function(Blueprint $table) {
17 17
             $table->bigInteger('content_id')->unsigned();
18 18
             $table->bigInteger('tag_id')->unsigned();
19 19
             $table->primary(['content_id', 'tag_id']);
Please login to merge, or discard this patch.
migrations/2017_05_10_015415_create_h5p_libraries_hub_cache_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_hub_cache', function (Blueprint $table) {
16
+        Schema::create('h5p_libraries_hub_cache', function(Blueprint $table) {
17 17
             $table->bigIncrements('id');
18 18
             $table->string('machine_name', 127);
19 19
             $table->bigInteger('major_version')->unsigned();
Please login to merge, or discard this patch.
migrations/2017_05_10_015415_create_h5p_event_logs_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_event_logs', function (Blueprint $table) {
16
+        Schema::create('h5p_event_logs', function(Blueprint $table) {
17 17
             $table->bigIncrements('id');
18 18
             $table->string('type');
19 19
             $table->string('sub_type');
Please login to merge, or discard this patch.
migrations/2017_05_10_015415_create_h5p_libraries_cachedassets_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_cachedassets', function (Blueprint $table) {
16
+        Schema::create('h5p_libraries_cachedassets', function(Blueprint $table) {
17 17
             $table->bigInteger('library_id')->unsigned();
18 18
             $table->string('hash', 64);
19 19
             $table->primary(['library_id', 'hash'], 'fk_primary');
Please login to merge, or discard this patch.
migrations/2017_05_10_015415_create_h5p_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', function (Blueprint $table) {
16
+        Schema::create('h5p_libraries', function(Blueprint $table) {
17 17
             $table->bigIncrements('id');
18 18
             $table->timestamps();
19 19
             $table->string('name', 127);
Please login to merge, or discard this patch.
src/LaravelH5p/Repositories/LaravelH5pRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@
 block discarded – undo
41 41
 
42 42
 
43 43
 
44
-     public function loadAddons(){}
45
-     public function getLibraryConfig($libraries = NULL){}
46
-     public function libraryHasUpgrade($library){}
44
+     public function loadAddons() {}
45
+     public function getLibraryConfig($libraries = NULL) {}
46
+     public function libraryHasUpgrade($library) {}
47 47
 
48 48
     /**
49 49
      * Implements setErrorMessage.
Please login to merge, or discard this patch.
src/LaravelH5p/Storages/LaravelH5pStorage.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
 
41
- public function hasPresave($libraryName, $developmentPath = null){
41
+ public function hasPresave($libraryName, $developmentPath = null) {
42 42
 
43 43
  }
44 44
 
45
-   public function getUpgradeScript($machineName, $majorVersion, $minorVersion){}
45
+   public function getUpgradeScript($machineName, $majorVersion, $minorVersion) {}
46 46
 
47 47
     /**
48 48
      * Store the library folder.
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
                 } else {
236 236
                     // Rewrite relative URLs used inside stylesheets
237 237
                     $content .= preg_replace_callback(
238
-                        '/url\([\'"]?([^"\')]+)[\'"]?\)/i', function ($matches) use ($cssRelPath) {
238
+                        '/url\([\'"]?([^"\')]+)[\'"]?\)/i', function($matches) use ($cssRelPath) {
239 239
                             if (preg_match("/^(data:|([a-z0-9]+:)?\/)/i", $matches[1]) === 1) {
240 240
                                 return $matches[0]; // Not relative, skip
241 241
                             }
Please login to merge, or discard this patch.