@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | /** |
| 408 | 408 | * Narrow the dependencies to current module only |
| 409 | 409 | */ |
| 410 | - $dependencies = array_unique( |
|
| 410 | + $dependencies = array_unique( |
|
| 411 | 411 | array_merge( |
| 412 | 412 | ['System'], |
| 413 | 413 | $dependencies['System'], |
@@ -481,7 +481,7 @@ discard block |
||
| 481 | 481 | * @return string[][] |
| 482 | 482 | */ |
| 483 | 483 | protected function add_versions_hash ($includes) { |
| 484 | - $content = array_reduce( |
|
| 484 | + $content = array_reduce( |
|
| 485 | 485 | get_files_list(DIR.'/components', '/^meta\.json$/', 'f', true, true), |
| 486 | 486 | function ($content, $file) { |
| 487 | 487 | return $content.file_get_contents($file); |
@@ -327,7 +327,7 @@ |
||
| 327 | 327 | /** |
| 328 | 328 | * If content is link to CSS file |
| 329 | 329 | */ |
| 330 | - $css = static::css( |
|
| 330 | + $css = static::css( |
|
| 331 | 331 | file_get_contents("$dir/$url"), |
| 332 | 332 | "$dir/$url", |
| 333 | 333 | $not_embedded_resources |
@@ -12,6 +12,6 @@ |
||
| 12 | 12 | Phar::mapPhar('php-code-coverage.phar'); |
| 13 | 13 | require_once 'phar://php-code-coverage.phar/autoload.php'; |
| 14 | 14 | __HALT_COMPILER(); |
| 15 | -STUB |
|
| 15 | +stub |
|
| 16 | 16 | ); |
| 17 | 17 | $phar->stopBuffering(); |
@@ -9,7 +9,7 @@ |
||
| 9 | 9 | * Time of start of execution, is used as current time |
| 10 | 10 | */ |
| 11 | 11 | define('MICROTIME', microtime(true)); //In seconds (float) |
| 12 | -define('TIME', floor(MICROTIME)); //In seconds (integer) |
|
| 12 | +define('TIME', floor(MICROTIME)); //In seconds (integer) |
|
| 13 | 13 | //Root directory |
| 14 | 14 | defined('DIR') || define('DIR', realpath(__DIR__.'/..')); |
| 15 | 15 | chdir(DIR); |
@@ -55,10 +55,10 @@ |
||
| 55 | 55 | * Try to load classes from different places. If not found in one place - try in another. |
| 56 | 56 | */ |
| 57 | 57 | if ( |
| 58 | - file_exists($file = __DIR__."/classes/$namespace/$class_name.php") || //Core classes |
|
| 58 | + file_exists($file = __DIR__."/classes/$namespace/$class_name.php") || //Core classes |
|
| 59 | 59 | file_exists($file = __DIR__."/thirdparty/$namespace/$class_name.php") || //Third party classes |
| 60 | - file_exists($file = __DIR__."/traits/$namespace/$class_name.php") || //Core traits |
|
| 61 | - file_exists($file = __DIR__."/engines/$namespace/$class_name.php") || //Core engines |
|
| 60 | + file_exists($file = __DIR__."/traits/$namespace/$class_name.php") || //Core traits |
|
| 61 | + file_exists($file = __DIR__."/engines/$namespace/$class_name.php") || //Core engines |
|
| 62 | 62 | file_exists($file = MODULES."/../$namespace/$class_name.php") //Classes in modules |
| 63 | 63 | ) { |
| 64 | 64 | $cache[$class] = realpath($file); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | ) |
| 55 | 55 | ); |
| 56 | -$themes = array_values( |
|
| 56 | +$themes = array_values( |
|
| 57 | 57 | array_filter( |
| 58 | 58 | get_files_list(ROOT.'/themes', false, 'd'), |
| 59 | 59 | function ($theme) { |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | use |
| 21 | 21 | CRUD, |
| 22 | 22 | Singleton; |
| 23 | - protected $data_model = [ |
|
| 23 | + protected $data_model = [ |
|
| 24 | 24 | 'id' => 'int', |
| 25 | 25 | 'title' => 'ml:text', |
| 26 | 26 | 'path' => 'ml:text', |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | use |
| 22 | 22 | CRUD, |
| 23 | 23 | Singleton; |
| 24 | - protected $data_model = [ |
|
| 24 | + protected $data_model = [ |
|
| 25 | 25 | 'id' => 'int', |
| 26 | 26 | 'category' => 'int', |
| 27 | 27 | 'title' => 'ml:text', |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | $Categories->get($parent) |
| 165 | 165 | ); |
| 166 | 166 | } |
| 167 | - $pages = $this->db()->qfas( |
|
| 167 | + $pages = $this->db()->qfas( |
|
| 168 | 168 | [ |
| 169 | 169 | "SELECT `id` |
| 170 | 170 | FROM `[prefix]static_pages` |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $structure['pages'][$this->get($id)['path']] = $id; |
| 178 | 178 | } |
| 179 | 179 | unset($pages); |
| 180 | - $categories = $this->db()->qfa( |
|
| 180 | + $categories = $this->db()->qfa( |
|
| 181 | 181 | [ |
| 182 | 182 | "SELECT |
| 183 | 183 | `id`, |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | use |
| 26 | 26 | CRUD, |
| 27 | 27 | Singleton; |
| 28 | - protected $data_model = [ |
|
| 28 | + protected $data_model = [ |
|
| 29 | 29 | 'id' => 'int:0', |
| 30 | 30 | 'user' => 'int:0', |
| 31 | 31 | 'date' => 'int:0', |