@@ -25,7 +25,7 @@ |
||
| 25 | 25 | use |
| 26 | 26 | CRUD, |
| 27 | 27 | Singleton; |
| 28 | - protected $data_model = [ |
|
| 28 | + protected $data_model = [ |
|
| 29 | 29 | 'id' => 'int:0', |
| 30 | 30 | 'user' => 'int:0', |
| 31 | 31 | 'date' => 'int:0', |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | use |
| 23 | 23 | Singleton; |
| 24 | 24 | |
| 25 | - protected $data_model = [ |
|
| 25 | + protected $data_model = [ |
|
| 26 | 26 | 'id' => 'int', |
| 27 | 27 | 'amount' => 'float:0', |
| 28 | 28 | 'currency' => 'text', |
@@ -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 { |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | $verbosity => true |
| 121 | 121 | ] |
| 122 | 122 | ); |
| 123 | - $output = new Output; |
|
| 123 | + $output = new Output; |
|
| 124 | 124 | $output->set_stream(fopen("$storage/last_execution.log", 'w')); |
| 125 | 125 | $application->setAutoExit(false); |
| 126 | 126 | $status_code = $application->run($input, $output); |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | 'repositories' => [], |
| 192 | 192 | 'require' => [] |
| 193 | 193 | ]; |
| 194 | - $Config = Config::instance(); |
|
| 194 | + $Config = Config::instance(); |
|
| 195 | 195 | foreach (array_keys($Config->components['modules']) as $module) { |
| 196 | 196 | if ( |
| 197 | 197 | $module == $component_name && |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | if (!$package['require']) { |
| 267 | 267 | return; |
| 268 | 268 | } |
| 269 | - $composer['repositories'][] = [ |
|
| 269 | + $composer['repositories'][] = [ |
|
| 270 | 270 | 'type' => 'package', |
| 271 | 271 | 'package' => $package |
| 272 | 272 | ]; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | function stream_read ($length) { |
| 53 | 53 | fseek($this->stream, $this->position); |
| 54 | - $bytes = fread($this->stream, $length); |
|
| 54 | + $bytes = fread($this->stream, $length); |
|
| 55 | 55 | $this->position += strlen($bytes); |
| 56 | 56 | return $bytes; |
| 57 | 57 | } |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | 'alias' => $_custom_class, |
| 118 | 118 | 'path' => $custom_class_path |
| 119 | 119 | ]; |
| 120 | - $next_alias = $custom_class; |
|
| 120 | + $next_alias = $custom_class; |
|
| 121 | 121 | } |
| 122 | 122 | $modified_classes[$class] = [ |
| 123 | 123 | 'aliases' => $aliases, |
@@ -67,8 +67,7 @@ |
||
| 67 | 67 | * |
| 68 | 68 | * @throws ExitException |
| 69 | 69 | */ |
| 70 | - public function init ($server, $query, $data, $files, $data_stream, $cookie, $request_started) { |
|
| 71 | - ++static::$id; |
|
| 70 | + public function init ($server, $query, $data, $files, $data_stream, $cookie, $request_started) {++static::$id; |
|
| 72 | 71 | $this->init_server($server); |
| 73 | 72 | $this->init_query($query); |
| 74 | 73 | $this->init_data_and_files($data, $files, $data_stream); |
@@ -18,8 +18,7 @@ |
||
| 18 | 18 | * |
| 19 | 19 | * @throws \cs\ExitException |
| 20 | 20 | */ |
| 21 | - public static function init_from_psr7 ($Psr7_request) { |
|
| 22 | - ++System_request::$id; |
|
| 21 | + public static function init_from_psr7 ($Psr7_request) {++System_request::$id; |
|
| 23 | 22 | $System_request = System_request::instance(); |
| 24 | 23 | self::from_psr7_server($System_request, $Psr7_request); |
| 25 | 24 | self::from_psr7_query($System_request, $Psr7_request); |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | return true; |
| 109 | 109 | } |
| 110 | 110 | ); |
| 111 | - $methods = _strtoupper(_substr($methods, strlen($method_name) + 1)); |
|
| 111 | + $methods = _strtoupper(_substr($methods, strlen($method_name) + 1)); |
|
| 112 | 112 | natcasesort($methods); |
| 113 | 113 | return array_values($methods); |
| 114 | 114 | } |