@@ -13,7 +13,7 @@ |
||
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); |
@@ -13,7 +13,7 @@ |
||
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); |
@@ -13,7 +13,7 @@ |
||
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']); |
@@ -13,7 +13,7 @@ |
||
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(); |
@@ -13,7 +13,7 @@ |
||
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'); |
@@ -13,7 +13,7 @@ |
||
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'); |
@@ -13,7 +13,7 @@ |
||
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); |
@@ -41,9 +41,9 @@ |
||
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. |
@@ -38,11 +38,11 @@ discard block |
||
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 |
||
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 | } |