@@ -262,7 +262,7 @@ |
||
262 | 262 | "$this->root/license.txt", |
263 | 263 | "$this->root/Storage.php" |
264 | 264 | ]; |
265 | - $files = []; |
|
265 | + $files = []; |
|
266 | 266 | foreach ($files_to_include as $s) { |
267 | 267 | if (is_file($s)) { |
268 | 268 | $files[] = $s; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | use |
23 | 23 | Singleton; |
24 | 24 | |
25 | - protected $data_model = [ |
|
25 | + protected $data_model = [ |
|
26 | 26 | 'id' => 'int', |
27 | 27 | 'amount' => 'float:0', |
28 | 28 | 'currency' => 'text', |
@@ -106,7 +106,7 @@ |
||
106 | 106 | ] |
107 | 107 | ); |
108 | 108 | } |
109 | - $sections = $this->db()->qfa( |
|
109 | + $sections = $this->db()->qfa( |
|
110 | 110 | [ |
111 | 111 | "SELECT |
112 | 112 | `id`, |
@@ -19,7 +19,7 @@ |
||
19 | 19 | Event::instance()->on( |
20 | 20 | 'Comments/instance', |
21 | 21 | function ($data) { |
22 | - $data['Comments'] = Comments::instance(); |
|
22 | + $data['Comments'] = Comments::instance(); |
|
23 | 23 | return false; |
24 | 24 | } |
25 | 25 | ); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | 'content' => null, //Is set in constructor |
32 | 32 | 'type' => 'set:text,html' |
33 | 33 | ]; |
34 | - protected $table = '[prefix]content'; |
|
34 | + protected $table = '[prefix]content'; |
|
35 | 35 | /** |
36 | 36 | * @var Prefix |
37 | 37 | */ |
@@ -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 | */ |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | protected $shortname; |
29 | 29 | |
30 | 30 | protected function construct () { |
31 | - $this->module = current_module(); |
|
32 | - $this->shortname = Config::instance()->module('Disqus')->shortname; |
|
31 | + $this->module = current_module(); |
|
32 | + $this->shortname = Config::instance()->module('Disqus')->shortname; |
|
33 | 33 | } |
34 | 34 | /** |
35 | 35 | * Set module (current module assumed by default) |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | * @param string $module Module name |
38 | 38 | */ |
39 | 39 | function set_module ($module) { |
40 | - $this->module = $module; |
|
40 | + $this->module = $module; |
|
41 | 41 | } |
42 | 42 | /** |
43 | 43 | * Count of comments for specified item |
@@ -74,11 +74,11 @@ discard block |
||
74 | 74 | return '<div id="disqus_thread"></div>'; |
75 | 75 | } |
76 | 76 | protected function count_js () { |
77 | - static $added = false; |
|
77 | + static $added = false; |
|
78 | 78 | if ($added) { |
79 | 79 | return; |
80 | 80 | } |
81 | - $added = true; |
|
81 | + $added = true; |
|
82 | 82 | Page::instance()->js( |
83 | 83 | "var disqus_shortname = '$this->shortname'; |
84 | 84 | if (!window.disqus_count_items) { window.disqus_count_items = []; }", |
@@ -86,11 +86,11 @@ discard block |
||
86 | 86 | ); |
87 | 87 | } |
88 | 88 | protected function block_js ($item) { |
89 | - static $added = false; |
|
89 | + static $added = false; |
|
90 | 90 | if ($added) { |
91 | 91 | return; |
92 | 92 | } |
93 | - $added = true; |
|
93 | + $added = true; |
|
94 | 94 | Page::instance()->js( |
95 | 95 | "var disqus_shortname = '$this->shortname', disqus_identifier = '".str_replace("'", "\'", "$this->module/$item")."';", |
96 | 96 | 'code' |
@@ -19,7 +19,7 @@ |
||
19 | 19 | Event::instance()->on( |
20 | 20 | 'Comments/instance', |
21 | 21 | function ($data) { |
22 | - $data['Comments'] = Disqus::instance(); |
|
22 | + $data['Comments'] = Disqus::instance(); |
|
23 | 23 | return false; |
24 | 24 | } |
25 | 25 | ); |
@@ -11,8 +11,8 @@ |
||
11 | 11 | /** |
12 | 12 | * Time of start of execution, is used as current time |
13 | 13 | */ |
14 | -define('MICROTIME', microtime(true)); //Time in seconds (float) |
|
15 | -define('TIME', floor(MICROTIME)); //Time in seconds (integer) |
|
14 | +define('MICROTIME', microtime(true)); //Time in seconds (float) |
|
15 | +define('TIME', floor(MICROTIME)); //Time in seconds (integer) |
|
16 | 16 | define('DIR', realpath(__DIR__.'/../../..')); //Root directory |
17 | 17 | chdir(DIR); |
18 | 18 | $async = false; |