@@ -42,4 +42,4 @@ |
||
| 42 | 42 | unlink ('README.md'); |
| 43 | 43 | |
| 44 | 44 | echo ' Configuration completed'. PHP_EOL . |
| 45 | - ' Thank for installing winforms-php/VoidFramework!'. PHP_EOL . PHP_EOL; |
|
| 45 | + ' Thank for installing winforms-php/VoidFramework!'. PHP_EOL . PHP_EOL; |
|
@@ -1,45 +1,45 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -echo ' Configuring VoidFramework...'. PHP_EOL; |
|
| 3 | +echo ' Configuring VoidFramework...'.PHP_EOL; |
|
| 4 | 4 | |
| 5 | -function dir_copy (string $from, string $to): bool |
|
| 5 | +function dir_copy(string $from, string $to): bool |
|
| 6 | 6 | { |
| 7 | - if (!is_dir ($from)) |
|
| 7 | + if (!is_dir($from)) |
|
| 8 | 8 | return false; |
| 9 | 9 | |
| 10 | - if (!is_dir ($to)) |
|
| 11 | - dir_create ($to); |
|
| 10 | + if (!is_dir($to)) |
|
| 11 | + dir_create($to); |
|
| 12 | 12 | |
| 13 | - foreach (array_slice (scandir ($from), 2) as $file) |
|
| 14 | - if (is_dir ($f = $from .'/'. $file)) |
|
| 15 | - dir_copy ($f, $to .'/'. $file); |
|
| 13 | + foreach (array_slice(scandir($from), 2) as $file) |
|
| 14 | + if (is_dir($f = $from.'/'.$file)) |
|
| 15 | + dir_copy($f, $to.'/'.$file); |
|
| 16 | 16 | |
| 17 | - else copy ($f, $to .'/'. $file); |
|
| 17 | + else copy($f, $to.'/'.$file); |
|
| 18 | 18 | |
| 19 | 19 | return true; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | -$info = file_exists (QERO_DIR .'/qero-info.json') ? |
|
| 23 | - json_decode (file_get_contents (QERO_DIR .'/qero-info.json'), true) : array (); |
|
| 22 | +$info = file_exists(QERO_DIR.'/qero-info.json') ? |
|
| 23 | + json_decode (file_get_contents(QERO_DIR.'/qero-info.json'), true) : array(); |
|
| 24 | 24 | |
| 25 | -$info['scripts']['start'] = '"qero-packages'. str_replace (dirname (__DIR__, 3), '', __DIR__) .'/core/VoidCore.exe" "app/start.php"'; |
|
| 25 | +$info['scripts']['start'] = '"qero-packages'.str_replace(dirname(__DIR__, 3), '', __DIR__).'/core/VoidCore.exe" "app/start.php"'; |
|
| 26 | 26 | |
| 27 | -file_put_contents (QERO_DIR .'/qero-info.json', json_encode ($info, defined ('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0)); |
|
| 28 | -file_put_contents (QERO_DIR .'/start.bat', '@echo off |
|
| 27 | +file_put_contents(QERO_DIR.'/qero-info.json', json_encode($info, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0)); |
|
| 28 | +file_put_contents(QERO_DIR.'/start.bat', '@echo off |
|
| 29 | 29 | '. $info['scripts']['start']); |
| 30 | 30 | |
| 31 | -if (!is_dir (QERO_DIR .'/app')) |
|
| 31 | +if (!is_dir(QERO_DIR.'/app')) |
|
| 32 | 32 | { |
| 33 | - echo ' Configuring application...'. PHP_EOL; |
|
| 33 | + echo ' Configuring application...'.PHP_EOL; |
|
| 34 | 34 | |
| 35 | - mkdir (QERO_DIR .'/app'); |
|
| 36 | - dir_copy (__DIR__ .'/app_bundle', QERO_DIR .'/app'); |
|
| 35 | + mkdir(QERO_DIR.'/app'); |
|
| 36 | + dir_copy(__DIR__.'/app_bundle', QERO_DIR.'/app'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | -Qero\dir_delete (__DIR__ .'/app_bundle'); |
|
| 40 | -unlink (__FILE__); |
|
| 41 | -unlink ('.gitignore'); |
|
| 42 | -unlink ('README.md'); |
|
| 39 | +Qero\dir_delete(__DIR__.'/app_bundle'); |
|
| 40 | +unlink(__FILE__); |
|
| 41 | +unlink('.gitignore'); |
|
| 42 | +unlink('README.md'); |
|
| 43 | 43 | |
| 44 | -echo ' Configuration completed'. PHP_EOL . |
|
| 45 | - ' Thank for installing winforms-php/VoidFramework!'. PHP_EOL . PHP_EOL; |
|
| 44 | +echo ' Configuration completed'.PHP_EOL. |
|
| 45 | + ' Thank for installing winforms-php/VoidFramework!'.PHP_EOL.PHP_EOL; |
|