@@ -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;  | 
                                                        
@@ -159,7 +159,7 @@ discard block  | 
                                                    ||
| 159 | 159 | Phar::webPhar(null, 'install.php');  | 
                                                        
| 160 | 160 | }  | 
                                                        
| 161 | 161 | __HALT_COMPILER();  | 
                                                        
| 162 | -STUB  | 
                                                        |
| 162 | +stub  | 
                                                        |
| 163 | 163 | );  | 
                                                        
| 164 | 164 | $phar->stopBuffering();  | 
                                                        
| 165 | 165 | return "Done! CleverStyle CMS $version";  | 
                                                        
@@ -299,7 +299,7 @@ discard block  | 
                                                    ||
| 299 | 299 | #</Files>  | 
                                                        
| 300 | 300 | |
| 301 | 301 | RewriteRule .* index.php  | 
                                                        
| 302 | -HTACCESS;  | 
                                                        |
| 302 | +htaccess;  | 
                                                        |
| 303 | 303 | }  | 
                                                        
| 304 | 304 | /**  | 
                                                        
| 305 | 305 | * @param string $module  | 
                                                        
@@ -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'); | 
                                                        
@@ -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`  | 
                                                        
@@ -9,8 +9,8 @@  | 
                                                    ||
| 9 | 9 | use  | 
                                                        
| 10 | 10 | cs\Config;  | 
                                                        
| 11 | 11 | /**  | 
                                                        
| 12 | - * Class for getting of db and storage configuration of module  | 
                                                        |
| 13 | - */  | 
                                                        |
| 12 | + * Class for getting of db and storage configuration of module  | 
                                                        |
| 13 | + */  | 
                                                        |
| 14 | 14 |  class Module_Properties { | 
                                                        
| 15 | 15 | const ENABLED = 1;  | 
                                                        
| 16 | 16 | const DISABLED = 0;  | 
                                                        
@@ -75,7 +75,7 @@  | 
                                                    ||
| 75 | 75 | php build.php -M core -m Plupload,Static_pages  | 
                                                        
| 76 | 76 | php build.php -M core -p TinyMCE -t DarkEnergy -s custom  | 
                                                        
| 77 | 77 | php build.php -M module -m Plupload,Static_pages  | 
                                                        
| 78 | -HELP;  | 
                                                        |
| 78 | +help;  | 
                                                        |
| 79 | 79 |  	} elseif ($mode == 'core') { | 
                                                        
| 80 | 80 | echo $Builder->core($modules, $plugins, $themes, $suffix)."\n";  | 
                                                        
| 81 | 81 |  	} else { | 
                                                        
@@ -9,8 +9,8 @@  | 
                                                    ||
| 9 | 9 | use  | 
                                                        
| 10 | 10 | cs\Singleton\Base;  | 
                                                        
| 11 | 11 | /**  | 
                                                        
| 12 | - * @inheritdoc  | 
                                                        |
| 13 | - */  | 
                                                        |
| 12 | + * @inheritdoc  | 
                                                        |
| 13 | + */  | 
                                                        |
| 14 | 14 |  trait Singleton { | 
                                                        
| 15 | 15 | use Base;  | 
                                                        
| 16 | 16 | }  | 
                                                        
@@ -164,7 +164,7 @@ discard block  | 
                                                    ||
| 164 | 164 |  		$columns      = "`".implode("`,`", array_keys($columns))."`"; | 
                                                        
| 165 | 165 | $first_column = array_keys($data_model)[0];  | 
                                                        
| 166 | 166 | $data = $this->db()->qf(  | 
                                                        
| 167 | - "SELECT $columns  | 
                                                        |
| 167 | + "select $columns  | 
                                                        |
| 168 | 168 | FROM `$table`  | 
                                                        
| 169 | 169 | WHERE `$first_column` = '%s'  | 
                                                        
| 170 | 170 | LIMIT 1",  | 
                                                        
@@ -212,7 +212,7 @@ discard block  | 
                                                    ||
| 212 | 212 | : '';  | 
                                                        
| 213 | 213 |  		$fields                   = '`'.implode('`,`', array_keys($model['data_model'])).'`'; | 
                                                        
| 214 | 214 | $rows = $this->db_prime()->qfa(  | 
                                                        
| 215 | - "SELECT $fields  | 
                                                        |
| 215 | + "select $fields  | 
                                                        |
| 216 | 216 |  			FROM `{$this->table}_$table` | 
                                                        
| 217 | 217 | WHERE  | 
                                                        
| 218 | 218 | `$id_field` = '%s'  | 
                                                        
@@ -67,7 +67,7 @@ discard block  | 
                                                    ||
| 67 | 67 | )",  | 
                                                        
| 68 | 68 | $prepared_arguments  | 
                                                        
| 69 | 69 | );  | 
                                                        
| 70 | - $id = $insert_id !== false ? $insert_id : $this->db_prime()->id();  | 
                                                        |
| 70 | + $id = $insert_id !== false ? $insert_id : $this->db_prime()->id();  | 
                                                        |
| 71 | 71 | /**  | 
                                                        
| 72 | 72 | * Id might be 0 if insertion failed or if we insert duplicate entry (which is fine since we use 'INSERT IGNORE'  | 
                                                        
| 73 | 73 | */  | 
                                                        
@@ -274,7 +274,7 @@ discard block  | 
                                                    ||
| 274 | 274 | $language_field_condition",  | 
                                                        
| 275 | 275 | $id  | 
                                                        
| 276 | 276 | ) ?: [];  | 
                                                        
| 277 | - $language_field = isset($model['language_field']) ? $model['language_field'] : null;  | 
                                                        |
| 277 | + $language_field = isset($model['language_field']) ? $model['language_field'] : null;  | 
                                                        |
| 278 | 278 | /**  | 
                                                        
| 279 | 279 | * If no rows found for current language - find another language that should contain some rows  | 
                                                        
| 280 | 280 | */  | 
                                                        
@@ -349,7 +349,7 @@ discard block  | 
                                                    ||
| 349 | 349 | return false;  | 
                                                        
| 350 | 350 | }  | 
                                                        
| 351 | 351 | list($prepared_arguments, $joined_tables) = $this->crud_arguments_preparation(array_slice($data_model, 1), $prepared_arguments, $id);  | 
                                                        
| 352 | - $columns = implode(  | 
                                                        |
| 352 | + $columns = implode(  | 
                                                        |
| 353 | 353 | ',',  | 
                                                        
| 354 | 354 | array_map(  | 
                                                        
| 355 | 355 |  				function ($column) { |