@@ -111,7 +111,7 @@ |
||
111 | 111 | 'value', |
112 | 112 | 'id' |
113 | 113 | ); |
114 | - $data['users'] = array_column( |
|
114 | + $data['users'] = array_column( |
|
115 | 115 | $User->db()->qfa( |
116 | 116 | [ |
117 | 117 | "SELECT |
@@ -140,7 +140,7 @@ |
||
140 | 140 | // Disable all versions except RFC6455, which is supported by all modern browsers |
141 | 141 | $ws_server->disableVersion(0); |
142 | 142 | $ws_server->disableVersion(6); |
143 | - $this->io_server = IoServer::factory( |
|
143 | + $this->io_server = IoServer::factory( |
|
144 | 144 | new HttpServer($ws_server), |
145 | 145 | $this->listen_port, |
146 | 146 | $this->listen_locally |
@@ -37,7 +37,7 @@ |
||
37 | 37 | 'title' => 'html', |
38 | 38 | 'description' => 'html' |
39 | 39 | ]; |
40 | - protected $table = '[prefix]groups'; |
|
40 | + protected $table = '[prefix]groups'; |
|
41 | 41 | /** |
42 | 42 | * @var Prefix |
43 | 43 | */ |
@@ -74,7 +74,7 @@ |
||
74 | 74 | 'ip' => 'text', |
75 | 75 | 'data' => 'json' |
76 | 76 | ]; |
77 | - protected $table = '[prefix]sessions'; |
|
77 | + protected $table = '[prefix]sessions'; |
|
78 | 78 | protected function construct () { |
79 | 79 | $this->cache = new Prefix('sessions'); |
80 | 80 | $this->users_cache = new Prefix('users'); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | if (!file_exists($path_in_filesystem) || is_writable($path_in_filesystem)) { |
72 | 72 | return file_put_contents($path_in_filesystem, $data, LOCK_EX | FILE_BINARY); |
73 | 73 | } |
74 | - trigger_error("File $path_in_filesystem not available for writing", E_USER_WARNING); |
|
74 | + trigger_error("file $path_in_filesystem not available for writing", E_USER_WARNING); |
|
75 | 75 | return false; |
76 | 76 | } |
77 | 77 | /** |
@@ -439,7 +439,7 @@ |
||
439 | 439 | if (!$user || !$item || $user == User::GUEST_ID) { |
440 | 440 | return false; |
441 | 441 | } |
442 | - $item = implode( |
|
442 | + $item = implode( |
|
443 | 443 | ',', |
444 | 444 | $this->db_prime()->s((array)$item) |
445 | 445 | ); |
@@ -269,7 +269,7 @@ |
||
269 | 269 | * Checks for unconfirmed registrations and deletes expired |
270 | 270 | */ |
271 | 271 | protected function delete_unconfirmed_users () { |
272 | - $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
272 | + $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
273 | 273 | $ids = $this->db_prime()->qfas( |
274 | 274 | [ |
275 | 275 | "SELECT `id` |
@@ -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', |
@@ -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', |