@@ -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); |
@@ -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', |
@@ -31,7 +31,7 @@ |
||
31 | 31 | 'module' => 'text', |
32 | 32 | 'data' => null //Is set in constructor |
33 | 33 | ]; |
34 | - protected $table = '[prefix]deferred_tasks_tasks'; |
|
34 | + protected $table = '[prefix]deferred_tasks_tasks'; |
|
35 | 35 | /** |
36 | 36 | * @var int |
37 | 37 | */ |
@@ -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', |
@@ -27,7 +27,7 @@ |
||
27 | 27 | 'option' => 'int', |
28 | 28 | 'user' => 'int' |
29 | 29 | ]; |
30 | - protected $table = '[prefix]polls_options_answers'; |
|
30 | + protected $table = '[prefix]polls_options_answers'; |
|
31 | 31 | |
32 | 32 | protected function cdb () { |
33 | 33 | return Config::instance()->module('Polls')->db('polls'); |