@@ -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'); |
@@ -60,7 +60,7 @@ |
||
| 60 | 60 | if (!file_exists($path_in_filesystem) || is_writable($path_in_filesystem)) { |
| 61 | 61 | return (bool)file_put_contents($path_in_filesystem, $data, LOCK_EX | FILE_BINARY); |
| 62 | 62 | } |
| 63 | - trigger_error("File $path_in_filesystem not available for writing", E_USER_WARNING); |
|
| 63 | + trigger_error("file $path_in_filesystem not available for writing", E_USER_WARNING); |
|
| 64 | 64 | return false; |
| 65 | 65 | } |
| 66 | 66 | /** |
@@ -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 | ); |
@@ -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 Cache\Prefix |
| 43 | 43 | */ |