@@ -45,4 +45,4 @@ |
||
45 | 45 | unlink (__FILE__); |
46 | 46 | |
47 | 47 | echo PHP_EOL . color (' [green]Configuration completed[reset]'. PHP_EOL . |
48 | - ' Thank for installing [yellow]winforms-php/VoidFramework[reset]!') . PHP_EOL . PHP_EOL; |
|
48 | + ' Thank for installing [yellow]winforms-php/VoidFramework[reset]!') . PHP_EOL . PHP_EOL; |
@@ -9,40 +9,40 @@ |
||
9 | 9 | |
10 | 10 | global $package; |
11 | 11 | |
12 | -echo color (' Configuring [yellow]VoidFramework[reset]...') . PHP_EOL; |
|
12 | +echo color(' Configuring [yellow]VoidFramework[reset]...').PHP_EOL; |
|
13 | 13 | |
14 | -function dir_copy (string $from, string $to): bool |
|
14 | +function dir_copy(string $from, string $to): bool |
|
15 | 15 | { |
16 | - if (!is_dir ($from)) |
|
16 | + if (!is_dir($from)) |
|
17 | 17 | return false; |
18 | 18 | |
19 | - if (!is_dir ($to)) |
|
20 | - mkdir ($to); |
|
19 | + if (!is_dir($to)) |
|
20 | + mkdir($to); |
|
21 | 21 | |
22 | - foreach (array_slice (scandir ($from), 2) as $file) |
|
23 | - if (is_dir ($f = $from .'/'. $file)) |
|
24 | - dir_copy ($f, $to .'/'. $file); |
|
22 | + foreach (array_slice(scandir($from), 2) as $file) |
|
23 | + if (is_dir($f = $from.'/'.$file)) |
|
24 | + dir_copy($f, $to.'/'.$file); |
|
25 | 25 | |
26 | - else copy ($f, $to .'/'. $file); |
|
26 | + else copy($f, $to.'/'.$file); |
|
27 | 27 | |
28 | 28 | return true; |
29 | 29 | } |
30 | 30 | |
31 | 31 | $package->scripts['start'] = '"qero-packages/winforms-php/VoidFramework/core/VoidCore.exe" "app/start.php"'; |
32 | 32 | |
33 | -file_put_contents (QERO_DIR .'/start.bat', '@echo off |
|
33 | +file_put_contents(QERO_DIR.'/start.bat', '@echo off |
|
34 | 34 | '. $package->scripts['start']); |
35 | 35 | |
36 | -if (!file_exists (QERO_DIR .'/app')) |
|
36 | +if (!file_exists(QERO_DIR.'/app')) |
|
37 | 37 | { |
38 | - echo ' Configuring application...'. PHP_EOL; |
|
38 | + echo ' Configuring application...'.PHP_EOL; |
|
39 | 39 | |
40 | - mkdir (QERO_DIR .'/app'); |
|
41 | - dir_copy (__DIR__ .'/app_bundle', QERO_DIR .'/app'); |
|
40 | + mkdir(QERO_DIR.'/app'); |
|
41 | + dir_copy(__DIR__.'/app_bundle', QERO_DIR.'/app'); |
|
42 | 42 | } |
43 | 43 | |
44 | -dir_delete (__DIR__ .'/app_bundle'); |
|
45 | -unlink (__FILE__); |
|
44 | +dir_delete(__DIR__.'/app_bundle'); |
|
45 | +unlink(__FILE__); |
|
46 | 46 | |
47 | -echo PHP_EOL . color (' [green]Configuration completed[reset]'. PHP_EOL . |
|
48 | - ' Thank for installing [yellow]winforms-php/VoidFramework[reset]!') . PHP_EOL . PHP_EOL; |
|
47 | +echo PHP_EOL.color(' [green]Configuration completed[reset]'.PHP_EOL. |
|
48 | + ' Thank for installing [yellow]winforms-php/VoidFramework[reset]!').PHP_EOL.PHP_EOL; |