@@ -30,8 +30,7 @@ |
||
| 30 | 30 | 'value' => $gallery['title'] |
| 31 | 31 | ] |
| 32 | 32 | ). |
| 33 | - ($Config->core['simple_admin_mode'] ? '' : |
|
| 34 | - h::label(h::info('photo_gallery_gallery_path')). |
|
| 33 | + ($Config->core['simple_admin_mode'] ? '' : h::label(h::info('photo_gallery_gallery_path')). |
|
| 35 | 34 | h::{'cs-input-text input[name=edit[path]]'}( |
| 36 | 35 | [ |
| 37 | 36 | 'value' => $gallery['path'] |
@@ -78,10 +78,10 @@ discard block |
||
| 78 | 78 | * Try to load classes from different places. If not found in one place - try in another. |
| 79 | 79 | */ |
| 80 | 80 | if ( |
| 81 | - file_exists($file = CORE."/classes/$namespace/$class_name.php") || //Core classes |
|
| 81 | + file_exists($file = CORE."/classes/$namespace/$class_name.php") || //Core classes |
|
| 82 | 82 | file_exists($file = CORE."/thirdparty/$namespace/$class_name.php") || //Third party classes |
| 83 | - file_exists($file = CORE."/traits/$namespace/$class_name.php") || //Core traits |
|
| 84 | - file_exists($file = CORE."/drivers/$namespace/$class_name.php") || //Core drivers |
|
| 83 | + file_exists($file = CORE."/traits/$namespace/$class_name.php") || //Core traits |
|
| 84 | + file_exists($file = CORE."/drivers/$namespace/$class_name.php") || //Core drivers |
|
| 85 | 85 | file_exists($file = MODULES."/../$namespace/$class_name.php") //Classes in modules |
| 86 | 86 | ) { |
| 87 | 87 | $cache[$class] = realpath($file); |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | foreach ($units as $time_frame => $key) { |
| 198 | 198 | if ($time >= $time_frame) { |
| 199 | 199 | $time_full = floor($time / $time_frame); |
| 200 | - $time -= $time_full * $time_frame; |
|
| 200 | + $time -= $time_full * $time_frame; |
|
| 201 | 201 | $res[] = $L->time($time_full, $key); |
| 202 | 202 | } |
| 203 | 203 | } |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | if (!$vulcanization) { |
| 317 | 317 | $filename = static::file_put_contents_with_hash($target_directory_path, 'js', $scripts_content); |
| 318 | 318 | // Add script with combined content file to the end |
| 319 | - $data .= "<script src=\"./$filename\"></script>"; |
|
| 319 | + $data .= "<script src=\"./$filename\"></script>"; |
|
| 320 | 320 | $not_embedded_resources[] = str_replace(getcwd(), '', "$target_directory_path/$filename"); |
| 321 | 321 | } else { |
| 322 | 322 | // Add combined content inline script to the end |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | /** |
| 366 | 366 | * If content is link to CSS file |
| 367 | 367 | */ |
| 368 | - $css = static::css( |
|
| 368 | + $css = static::css( |
|
| 369 | 369 | file_get_contents("$dir/$url"), |
| 370 | 370 | "$dir/$url", |
| 371 | 371 | $target_directory_path, |
@@ -318,7 +318,7 @@ discard block |
||
| 318 | 318 | /** |
| 319 | 319 | * Narrow the dependencies to current module only |
| 320 | 320 | */ |
| 321 | - $dependencies = array_unique( |
|
| 321 | + $dependencies = array_unique( |
|
| 322 | 322 | array_merge( |
| 323 | 323 | ['System'], |
| 324 | 324 | $dependencies['System'], |
@@ -385,7 +385,7 @@ discard block |
||
| 385 | 385 | * @return string[][] |
| 386 | 386 | */ |
| 387 | 387 | protected function add_versions_hash ($assets) { |
| 388 | - $content = array_reduce( |
|
| 388 | + $content = array_reduce( |
|
| 389 | 389 | get_files_list(DIR.'/components', '/^meta\.json$/', 'f', true, true), |
| 390 | 390 | function ($content, $file) { |
| 391 | 391 | return $content.file_get_contents($file); |
@@ -439,7 +439,7 @@ discard block |
||
| 439 | 439 | return "$content<link href=\"$href\" rel=\"import\">\n"; |
| 440 | 440 | } |
| 441 | 441 | ); |
| 442 | - $this->Head .= $configs; |
|
| 442 | + $this->Head .= $configs; |
|
| 443 | 443 | $this->add_script_imports_to_document($Config, $scripts.$html_imports); |
| 444 | 444 | } |
| 445 | 445 | /** |