@@ -18,8 +18,8 @@ |
||
18 | 18 | ->header('cache-control', 'no-store') |
19 | 19 | ->header('pragma', 'no-cache'); |
20 | 20 | /** |
21 | - * Errors processing |
|
22 | - */ |
|
21 | + * Errors processing |
|
22 | + */ |
|
23 | 23 | if (!isset($_POST['grant_type'])) { |
24 | 24 | $e = new ExitException( |
25 | 25 | [ |
@@ -27,7 +27,7 @@ |
||
27 | 27 | public function onOpen (ConnectionInterface $conn, RequestInterface $request = null) { |
28 | 28 | $L = Language::instance(); |
29 | 29 | /** @noinspection PhpUndefinedFieldInspection */ |
30 | - $ip = $this->ip( |
|
30 | + $ip = $this->ip( |
|
31 | 31 | [ |
32 | 32 | $conn->remoteAddress, |
33 | 33 | $request->getHeader('X-Forwarded-For'), |
@@ -13,8 +13,8 @@ |
||
13 | 13 | React\EventLoop\Factory as Loop_factory, |
14 | 14 | cs\Config; |
15 | 15 | /** |
16 | - * @return bool |
|
17 | - */ |
|
16 | + * @return bool |
|
17 | + */ |
|
18 | 18 | function is_server_running () { |
19 | 19 | $connected = false; |
20 | 20 | $servers = Pool::instance()->get_all(); |
@@ -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 |
@@ -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', |
@@ -67,7 +67,7 @@ |
||
67 | 67 | |
68 | 68 | const PAYMENT_METHOD_CASH = 'shop:cash'; |
69 | 69 | |
70 | - protected $data_model = [ |
|
70 | + protected $data_model = [ |
|
71 | 71 | 'id' => 'int', |
72 | 72 | 'user' => 'int', |
73 | 73 | 'date' => 'int', |
@@ -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', |
@@ -23,7 +23,7 @@ |
||
23 | 23 | ':', |
24 | 24 | array_slice(Route::instance()->path, -1)[0] |
25 | 25 | ); |
26 | -$item = $Items->get_for_user(array_pop($item)); |
|
26 | +$item = $Items->get_for_user(array_pop($item)); |
|
27 | 27 | $Page->title($item['title']); |
28 | 28 | $Page->Description = description($item['description']); |
29 | 29 | $Page->canonical_url( |