@@ -24,7 +24,7 @@ |
||
| 24 | 24 | ':', |
| 25 | 25 | array_slice(Request::instance()->route_path, -1)[0] |
| 26 | 26 | ); |
| 27 | -$item = $Items->get_for_user(array_pop($item)); |
|
| 27 | +$item = $Items->get_for_user(array_pop($item)); |
|
| 28 | 28 | $Page->title($item['title']); |
| 29 | 29 | $Page->Description = description($item['description']); |
| 30 | 30 | $Page->canonical_url( |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | Singleton, |
| 31 | 31 | Common_actions; |
| 32 | 32 | |
| 33 | - protected $data_model = [ |
|
| 33 | + protected $data_model = [ |
|
| 34 | 34 | 'id' => 'int', |
| 35 | 35 | 'price' => 'float', |
| 36 | 36 | 'phone_needed' => 'int:0..1', |
@@ -13,12 +13,12 @@ |
||
| 13 | 13 | cs\modules\Tags\Tags as Tags_trait, |
| 14 | 14 | cs\Singleton; |
| 15 | 15 | /** |
| 16 | - * Tags trait |
|
| 17 | - * |
|
| 18 | - * Provides methods for working with tags for faster development |
|
| 19 | - * |
|
| 20 | - * @method static $this instance($check = false) |
|
| 21 | - */ |
|
| 16 | + * Tags trait |
|
| 17 | + * |
|
| 18 | + * Provides methods for working with tags for faster development |
|
| 19 | + * |
|
| 20 | + * @method static $this instance($check = false) |
|
| 21 | + */ |
|
| 22 | 22 | class Tags { |
| 23 | 23 | use |
| 24 | 24 | Tags_trait, |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | use |
| 25 | 25 | CRUD_helpers, |
| 26 | 26 | Singleton; |
| 27 | - protected $data_model = [ |
|
| 27 | + protected $data_model = [ |
|
| 28 | 28 | 'id' => 'int:0', |
| 29 | 29 | 'user' => 'int:0', |
| 30 | 30 | 'date' => 'int:0', |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | Run pool of HTTP servers on ports 8080, 8081 and range of ports 8082-8087: |
| 32 | 32 | <g>./cli run_pool:Http_server ports=8080,8081,8082-8087</g> |
| 33 | 33 | |
| 34 | -HELP; |
|
| 34 | +help; |
|
| 35 | 35 | } |
| 36 | 36 | /** |
| 37 | 37 | * @param \cs\Request $Request |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | CRUD_helpers, |
| 24 | 24 | Singleton; |
| 25 | 25 | |
| 26 | - protected $data_model = [ |
|
| 26 | + protected $data_model = [ |
|
| 27 | 27 | 'key' => 'text', |
| 28 | 28 | 'title' => 'ml:text', |
| 29 | 29 | 'content' => 'ml:', |
@@ -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 | defined('CORE') || define('CORE', DIR.'/core'); |
@@ -282,7 +282,7 @@ |
||
| 282 | 282 | * Checks for unconfirmed registrations and deletes expired |
| 283 | 283 | */ |
| 284 | 284 | protected function delete_unconfirmed_users () { |
| 285 | - $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
| 285 | + $reg_date = time() - Config::instance()->core['registration_confirmation_time'] * 86400; //1 day = 86400 seconds |
|
| 286 | 286 | $ids = $this->db_prime()->qfas( |
| 287 | 287 | "SELECT `id` |
| 288 | 288 | FROM `[prefix]users` |
@@ -131,7 +131,7 @@ |
||
| 131 | 131 | if (!$item || $user == User::GUEST_ID) { |
| 132 | 132 | return false; |
| 133 | 133 | } |
| 134 | - $item = implode( |
|
| 134 | + $item = implode( |
|
| 135 | 135 | ',', |
| 136 | 136 | $this->db_prime()->s((array)$item) |
| 137 | 137 | ); |