@@ -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 | /** |
@@ -62,7 +62,7 @@ |
||
62 | 62 | (bool)file_put_contents($random, _json_encode($data), LOCK_EX | FILE_BINARY) && |
63 | 63 | rename($random, $path_in_filesystem); |
64 | 64 | } |
65 | - trigger_error("File $path_in_filesystem not available for writing", E_USER_WARNING); |
|
65 | + trigger_error("file $path_in_filesystem not available for writing", E_USER_WARNING); |
|
66 | 66 | return false; |
67 | 67 | } |
68 | 68 | /** |