@@ -17,9 +17,10 @@ |
||
17 | 17 | |
18 | 18 | spl_autoload_register (function ($class) use ($classes) |
19 | 19 | { |
20 | - if (isset ($classes[$class])) |
|
21 | - include __DIR__ .'/'. $classes[$class]; |
|
22 | -}); |
|
20 | + if (isset ($classes[$class])) { |
|
21 | + include __DIR__ .'/'. $classes[$class]; |
|
22 | + } |
|
23 | + }); |
|
23 | 24 | |
24 | 25 | $required_packages = array |
25 | 26 | ( |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | $required_packages = array |
25 | 25 | ( |
26 | - array ('github:winforms-php/VoidFramework', '3.5.8'), |
|
27 | - array ('github:KRypt0nn/ConsoleArgs', '1.6'), |
|
28 | - array ('github:winforms-php/VoidBuilder', '1.4.2') |
|
26 | + array ('github:winforms-php/VoidFramework', '3.5.8'), |
|
27 | + array ('github:KRypt0nn/ConsoleArgs', '1.6'), |
|
28 | + array ('github:winforms-php/VoidBuilder', '1.4.2') |
|
29 | 29 | ); |
@@ -10,20 +10,18 @@ |
||
10 | 10 | require 'winforms-php/VoidBuilder/VoidBuilder.php'; |
11 | 11 | |
12 | 12 | |
13 | -$classes = array |
|
14 | -( |
|
13 | +$classes = array( |
|
15 | 14 | |
16 | 15 | ); |
17 | 16 | |
18 | -spl_autoload_register (function ($class) use ($classes) |
|
17 | +spl_autoload_register(function($class) use ($classes) |
|
19 | 18 | { |
20 | 19 | if (isset ($classes[$class])) |
21 | - include __DIR__ .'/'. $classes[$class]; |
|
20 | + include __DIR__.'/'.$classes[$class]; |
|
22 | 21 | }); |
23 | 22 | |
24 | -$required_packages = array |
|
25 | -( |
|
26 | - array ('github:winforms-php/VoidFramework', '3.5.8'), |
|
27 | - array ('github:KRypt0nn/ConsoleArgs', '1.6'), |
|
28 | - array ('github:winforms-php/VoidBuilder', '1.4.2') |
|
23 | +$required_packages = array( |
|
24 | + array('github:winforms-php/VoidFramework', '3.5.8'), |
|
25 | + array('github:KRypt0nn/ConsoleArgs', '1.6'), |
|
26 | + array('github:winforms-php/VoidBuilder', '1.4.2') |
|
29 | 27 | ); |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace VoidEngine; |
4 | 4 | |
5 | -$name = basenameNoExt (__FILE__); |
|
5 | +$name = basenameNoExt(__FILE__); |
|
6 | 6 | |
7 | -$parser = new VLFParser (__DIR__. '/'. $name .'.vlf', [ |
|
7 | +$parser = new VLFParser(__DIR__.'/'.$name.'.vlf', [ |
|
8 | 8 | 'strong_line_parser' => false, |
9 | 9 | 'ignore_postobject_info' => true, |
10 | 10 | 'ignore_unexpected_method_args' => true, |
@@ -15,4 +15,4 @@ discard block |
||
15 | 15 | |
16 | 16 | // file_put_contents ('SyntaxTree__'. $name .'.json', json_encode ($parser->tree, JSON_PRETTY_PRINT)); |
17 | 17 | |
18 | -VoidStudioAPI::addObjects ($name, VLFInterpreter::run ($parser)); |
|
18 | +VoidStudioAPI::addObjects($name, VLFInterpreter::run($parser)); |
@@ -7,23 +7,23 @@ |
||
7 | 7 | $source = VoidStudioAPI::getObjects ('addPackage')['Package__Source']; |
8 | 8 | $version = VoidStudioAPI::getObjects ('addPackage')['Package__Version']; |
9 | 9 | |
10 | - $source = $source->selectedItem != 'github' ? |
|
10 | + $source = $source->selectedItem != 'github' ? |
|
11 | 11 | $source->selectedItem .':' : ''; |
12 | 12 | |
13 | - $version = $version->text != 'latest' && $version->text ? |
|
14 | - '@'. $version->text : ''; |
|
13 | + $version = $version->text != 'latest' && $version->text ? |
|
14 | + '@'. $version->text : ''; |
|
15 | 15 | |
16 | 16 | VoidStudioAPI::getObjects ('addPackage')['Package__Path']->caption = ($package = $source . VoidStudioAPI::getObjects ('addPackage')['Package__Author']->text .'/'. VoidStudioAPI::getObjects ('addPackage')['Package__Name']->text) . $version; |
17 | 17 | |
18 | - VoidStudioAPI::getObjects ('addPackage')['Package__Add']->enabled = true; |
|
18 | + VoidStudioAPI::getObjects ('addPackage')['Package__Add']->enabled = true; |
|
19 | 19 | |
20 | - foreach (VoidStudioAPI::getObjects ('modules')['ModulesList__QeroPackages']->items->list as $line) |
|
21 | - if ((($pos = strrpos ($line, '@')) !== false && substr ($line, 0, $pos) == $package) || ($pos === false && $line == $package)) |
|
22 | - { |
|
23 | - VoidStudioAPI::getObjects ('addPackage')['Package__Add']->enabled = false; |
|
20 | + foreach (VoidStudioAPI::getObjects ('modules')['ModulesList__QeroPackages']->items->list as $line) |
|
21 | + if ((($pos = strrpos ($line, '@')) !== false && substr ($line, 0, $pos) == $package) || ($pos === false && $line == $package)) |
|
22 | + { |
|
23 | + VoidStudioAPI::getObjects ('addPackage')['Package__Add']->enabled = false; |
|
24 | 24 | |
25 | - break; |
|
26 | - } |
|
25 | + break; |
|
26 | + } |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | function packages__update () |
@@ -2,57 +2,57 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace VoidEngine; |
4 | 4 | |
5 | -function packages__updateCaption () |
|
5 | +function packages__updateCaption() |
|
6 | 6 | { |
7 | - $source = VoidStudioAPI::getObjects ('addPackage')['Package__Source']; |
|
8 | - $version = VoidStudioAPI::getObjects ('addPackage')['Package__Version']; |
|
7 | + $source = VoidStudioAPI::getObjects('addPackage')['Package__Source']; |
|
8 | + $version = VoidStudioAPI::getObjects('addPackage')['Package__Version']; |
|
9 | 9 | |
10 | 10 | $source = $source->selectedItem != 'github' ? |
11 | - $source->selectedItem .':' : ''; |
|
11 | + $source->selectedItem.':' : ''; |
|
12 | 12 | |
13 | 13 | $version = $version->text != 'latest' && $version->text ? |
14 | - '@'. $version->text : ''; |
|
14 | + '@'.$version->text : ''; |
|
15 | 15 | |
16 | - VoidStudioAPI::getObjects ('addPackage')['Package__Path']->caption = ($package = $source . VoidStudioAPI::getObjects ('addPackage')['Package__Author']->text .'/'. VoidStudioAPI::getObjects ('addPackage')['Package__Name']->text) . $version; |
|
16 | + VoidStudioAPI::getObjects('addPackage')['Package__Path']->caption = ($package = $source.VoidStudioAPI::getObjects('addPackage')['Package__Author']->text.'/'.VoidStudioAPI::getObjects('addPackage')['Package__Name']->text).$version; |
|
17 | 17 | |
18 | - VoidStudioAPI::getObjects ('addPackage')['Package__Add']->enabled = true; |
|
18 | + VoidStudioAPI::getObjects('addPackage')['Package__Add']->enabled = true; |
|
19 | 19 | |
20 | - foreach (VoidStudioAPI::getObjects ('modules')['ModulesList__QeroPackages']->items->list as $line) |
|
21 | - if ((($pos = strrpos ($line, '@')) !== false && substr ($line, 0, $pos) == $package) || ($pos === false && $line == $package)) |
|
20 | + foreach (VoidStudioAPI::getObjects('modules')['ModulesList__QeroPackages']->items->list as $line) |
|
21 | + if ((($pos = strrpos($line, '@')) !== false && substr($line, 0, $pos) == $package) || ($pos === false && $line == $package)) |
|
22 | 22 | { |
23 | - VoidStudioAPI::getObjects ('addPackage')['Package__Add']->enabled = false; |
|
23 | + VoidStudioAPI::getObjects('addPackage')['Package__Add']->enabled = false; |
|
24 | 24 | |
25 | 25 | break; |
26 | 26 | } |
27 | 27 | } |
28 | 28 | |
29 | -function packages__update () |
|
29 | +function packages__update() |
|
30 | 30 | { |
31 | 31 | global $controller; |
32 | 32 | |
33 | - $controller->manager->updateManager (); |
|
33 | + $controller->manager->updateManager(); |
|
34 | 34 | |
35 | - $modulesList = VoidStudioAPI::getObjects ('modules')['ModulesList']; |
|
36 | - $modulesList->items->clear (); |
|
35 | + $modulesList = VoidStudioAPI::getObjects('modules')['ModulesList']; |
|
36 | + $modulesList->items->clear(); |
|
37 | 37 | |
38 | 38 | $imageList = new ImageList; |
39 | - $qeroGroup = VoidStudioAPI::getObjects ('modules')['ModulesListGroup__QeroPackage']; |
|
39 | + $qeroGroup = VoidStudioAPI::getObjects('modules')['ModulesListGroup__QeroPackage']; |
|
40 | 40 | $index = 0; |
41 | 41 | |
42 | 42 | foreach ($controller->manager->packages as $package) |
43 | 43 | { |
44 | - $item = new ListViewItem (' '. $package->name); |
|
44 | + $item = new ListViewItem(' '.$package->name); |
|
45 | 45 | $item->group = $qeroGroup; |
46 | 46 | $item->imageIndex = $index++; |
47 | 47 | |
48 | - $imageList->images->add ((new Image)->loadFromFile (APP_DIR .'/components/icons/Library_16x.png')); |
|
49 | - $modulesList->items->add ($item); |
|
48 | + $imageList->images->add((new Image)->loadFromFile(APP_DIR.'/components/icons/Library_16x.png')); |
|
49 | + $modulesList->items->add($item); |
|
50 | 50 | } |
51 | 51 | } |
52 | 52 | |
53 | -$name = basenameNoExt (__FILE__); |
|
53 | +$name = basenameNoExt(__FILE__); |
|
54 | 54 | |
55 | -$parser = new VLFParser (__DIR__. '/'. $name .'.vlf', [ |
|
55 | +$parser = new VLFParser(__DIR__.'/'.$name.'.vlf', [ |
|
56 | 56 | 'strong_line_parser' => false, |
57 | 57 | 'ignore_postobject_info' => true, |
58 | 58 | 'ignore_unexpected_method_args' => true, |
@@ -63,4 +63,4 @@ discard block |
||
63 | 63 | |
64 | 64 | // file_put_contents ('SyntaxTree__'. $name .'.json', json_encode ($parser->tree, JSON_PRETTY_PRINT)); |
65 | 65 | |
66 | -VoidStudioAPI::addObjects ($name, VLFInterpreter::run ($parser)); |
|
66 | +VoidStudioAPI::addObjects($name, VLFInterpreter::run($parser)); |
@@ -17,10 +17,11 @@ |
||
17 | 17 | |
18 | 18 | VoidStudioAPI::getObjects ('addPackage')['Package__Add']->enabled = true; |
19 | 19 | |
20 | - foreach (VoidStudioAPI::getObjects ('modules')['ModulesList__QeroPackages']->items->list as $line) |
|
21 | - if ((($pos = strrpos ($line, '@')) !== false && substr ($line, 0, $pos) == $package) || ($pos === false && $line == $package)) |
|
20 | + foreach (VoidStudioAPI::getObjects ('modules')['ModulesList__QeroPackages']->items->list as $line) { |
|
21 | + if ((($pos = strrpos ($line, '@')) !== false && substr ($line, 0, $pos) == $package) || ($pos === false && $line == $package)) |
|
22 | 22 | { |
23 | 23 | VoidStudioAPI::getObjects ('addPackage')['Package__Add']->enabled = false; |
24 | + } |
|
24 | 25 | |
25 | 26 | break; |
26 | 27 | } |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace VoidEngine; |
4 | 4 | |
5 | -$name = basenameNoExt (__FILE__); |
|
5 | +$name = basenameNoExt(__FILE__); |
|
6 | 6 | |
7 | -$parser = new VLFParser (__DIR__. '/'. $name .'.vlf', [ |
|
7 | +$parser = new VLFParser(__DIR__.'/'.$name.'.vlf', [ |
|
8 | 8 | 'strong_line_parser' => false, |
9 | 9 | 'ignore_postobject_info' => true, |
10 | 10 | 'ignore_unexpected_method_args' => true, |
@@ -15,52 +15,52 @@ discard block |
||
15 | 15 | |
16 | 16 | // file_put_contents ('SyntaxTree__'. $name .'.json', json_encode ($parser->tree, JSON_PRETTY_PRINT)); |
17 | 17 | |
18 | -VoidStudioAPI::addObjects ($name, VLFInterpreter::run ($parser)); |
|
18 | +VoidStudioAPI::addObjects($name, VLFInterpreter::run($parser)); |
|
19 | 19 | |
20 | -$componentsList = VoidStudioAPI::getObjects ('main')['ComponentsList']; |
|
20 | +$componentsList = VoidStudioAPI::getObjects('main')['ComponentsList']; |
|
21 | 21 | $imageList = new ImageList; |
22 | -$components = json_decode (file_get_contents ('components/components.json'), true); |
|
22 | +$components = json_decode(file_get_contents('components/components.json'), true); |
|
23 | 23 | $index = 0; |
24 | 24 | |
25 | -$controlGroup = new ListViewGroup ('Управление'); |
|
26 | -$componentsList->groups->add ($controlGroup); |
|
25 | +$controlGroup = new ListViewGroup('Управление'); |
|
26 | +$componentsList->groups->add($controlGroup); |
|
27 | 27 | |
28 | 28 | foreach ($components as $groupName => $comps) |
29 | 29 | { |
30 | 30 | if ($groupName[0] != '-') |
31 | 31 | { |
32 | - $group = new ListViewGroup ($groupName); |
|
33 | - $componentsList->groups->add ($group); |
|
32 | + $group = new ListViewGroup($groupName); |
|
33 | + $componentsList->groups->add($group); |
|
34 | 34 | |
35 | 35 | foreach ($comps as $component) |
36 | 36 | { |
37 | - $item = new ListViewItem (' '. $component); |
|
37 | + $item = new ListViewItem(' '.$component); |
|
38 | 38 | $item->group = $group; |
39 | 39 | $item->imageIndex = $index++; |
40 | 40 | |
41 | - $path = APP_DIR .'/components/icons/'. $component .'_16x.png'; |
|
41 | + $path = APP_DIR.'/components/icons/'.$component.'_16x.png'; |
|
42 | 42 | |
43 | - if (!file_exists ($path)) |
|
44 | - $path = APP_DIR .'/components/icons/Unknown_16x.png'; |
|
43 | + if (!file_exists($path)) |
|
44 | + $path = APP_DIR.'/components/icons/Unknown_16x.png'; |
|
45 | 45 | |
46 | - $imageList->images->add ((new Image)->loadFromFile ($path)); |
|
47 | - $componentsList->items->add ($item); |
|
46 | + $imageList->images->add((new Image)->loadFromFile($path)); |
|
47 | + $componentsList->items->add($item); |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
51 | 51 | else |
52 | 52 | { |
53 | - $item = new ListViewItem (' '. $comps); |
|
53 | + $item = new ListViewItem(' '.$comps); |
|
54 | 54 | $item->group = $controlGroup; |
55 | 55 | $item->imageIndex = $index++; |
56 | 56 | |
57 | - $path = APP_DIR .'/components/icons/'. substr ($groupName, 1) .'_16x.png'; |
|
57 | + $path = APP_DIR.'/components/icons/'.substr($groupName, 1).'_16x.png'; |
|
58 | 58 | |
59 | - if (!file_exists ($path)) |
|
60 | - $path = APP_DIR .'/components/icons/Unknown_16x.png'; |
|
59 | + if (!file_exists($path)) |
|
60 | + $path = APP_DIR.'/components/icons/Unknown_16x.png'; |
|
61 | 61 | |
62 | - $imageList->images->add ((new Image)->loadFromFile ($path)); |
|
63 | - $componentsList->items->add ($item); |
|
62 | + $imageList->images->add((new Image)->loadFromFile($path)); |
|
63 | + $componentsList->items->add($item); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 |
@@ -40,15 +40,14 @@ discard block |
||
40 | 40 | |
41 | 41 | $path = APP_DIR .'/components/icons/'. $component .'_16x.png'; |
42 | 42 | |
43 | - if (!file_exists ($path)) |
|
44 | - $path = APP_DIR .'/components/icons/Unknown_16x.png'; |
|
43 | + if (!file_exists ($path)) { |
|
44 | + $path = APP_DIR .'/components/icons/Unknown_16x.png'; |
|
45 | + } |
|
45 | 46 | |
46 | 47 | $imageList->images->add ((new Image)->loadFromFile ($path)); |
47 | 48 | $componentsList->items->add ($item); |
48 | 49 | } |
49 | - } |
|
50 | - |
|
51 | - else |
|
50 | + } else |
|
52 | 51 | { |
53 | 52 | $item = new ListViewItem (' '. $comps); |
54 | 53 | $item->group = $controlGroup; |
@@ -56,8 +55,9 @@ discard block |
||
56 | 55 | |
57 | 56 | $path = APP_DIR .'/components/icons/'. substr ($groupName, 1) .'_16x.png'; |
58 | 57 | |
59 | - if (!file_exists ($path)) |
|
60 | - $path = APP_DIR .'/components/icons/Unknown_16x.png'; |
|
58 | + if (!file_exists ($path)) { |
|
59 | + $path = APP_DIR .'/components/icons/Unknown_16x.png'; |
|
60 | + } |
|
61 | 61 | |
62 | 62 | $imageList->images->add ((new Image)->loadFromFile ($path)); |
63 | 63 | $componentsList->items->add ($item); |
@@ -7,44 +7,44 @@ |
||
7 | 7 | public WFObject $process; |
8 | 8 | protected int $lastTimestamp = 0; |
9 | 9 | |
10 | - public function __construct (WFObject $process) |
|
10 | + public function __construct(WFObject $process) |
|
11 | 11 | { |
12 | - if ($process->getType ()->toString () == 'System.Diagnostics.Process') |
|
12 | + if ($process->getType()->toString() == 'System.Diagnostics.Process') |
|
13 | 13 | $this->process = $process; |
14 | 14 | |
15 | - else throw new \Exception ('$process argument must be an "Process" object'); |
|
15 | + else throw new \Exception('$process argument must be an "Process" object'); |
|
16 | 16 | } |
17 | 17 | |
18 | - public function dump (string $savePath, string $properties = '', bool $waitForExit = true) |
|
18 | + public function dump(string $savePath, string $properties = '', bool $waitForExit = true) |
|
19 | 19 | { |
20 | - $process = run ('"'. APP_DIR .'/system/procdump/procdump.exe"', $properties .' '. $this->process->id .' "'. filepathNoExt ($savePath) .'"'); |
|
20 | + $process = run('"'.APP_DIR.'/system/procdump/procdump.exe"', $properties.' '.$this->process->id.' "'.filepathNoExt($savePath).'"'); |
|
21 | 21 | |
22 | 22 | if ($waitForExit) |
23 | 23 | while (!$process->hasExited) |
24 | - usleep (200); |
|
24 | + usleep(200); |
|
25 | 25 | } |
26 | 26 | |
27 | - public function debugRequest (string $command, array $arguments = []) |
|
27 | + public function debugRequest(string $command, array $arguments = []) |
|
28 | 28 | { |
29 | - file_put_contents (VoidStudioProjectManager::$projectPath .'/build/__debug_request', serialize ([ |
|
30 | - 'timestamp' => time (), |
|
29 | + file_put_contents(VoidStudioProjectManager::$projectPath.'/build/__debug_request', serialize([ |
|
30 | + 'timestamp' => time(), |
|
31 | 31 | 'command' => $command, |
32 | 32 | 'arguments' => $arguments |
33 | 33 | ])); |
34 | 34 | } |
35 | 35 | |
36 | - public function readDebugAnswer (bool $wait = false) |
|
36 | + public function readDebugAnswer(bool $wait = false) |
|
37 | 37 | { |
38 | - $file = VoidStudioProjectManager::$projectPath .'/build/__debug_answer'; |
|
38 | + $file = VoidStudioProjectManager::$projectPath.'/build/__debug_answer'; |
|
39 | 39 | |
40 | 40 | if ($wait) |
41 | - while (!file_exists ($file)) |
|
42 | - usleep (100); |
|
41 | + while (!file_exists($file)) |
|
42 | + usleep(100); |
|
43 | 43 | |
44 | - if (file_exists ($file)) |
|
44 | + if (file_exists($file)) |
|
45 | 45 | { |
46 | - $answer = unserialize (file_get_contents ($file)); |
|
47 | - unlink ($file); |
|
46 | + $answer = unserialize(file_get_contents($file)); |
|
47 | + unlink($file); |
|
48 | 48 | |
49 | 49 | if ($answer['timestamp'] > $this->lastTimestamp) |
50 | 50 | { |
@@ -9,19 +9,21 @@ discard block |
||
9 | 9 | |
10 | 10 | public function __construct (WFObject $process) |
11 | 11 | { |
12 | - if ($process->getType ()->toString () == 'System.Diagnostics.Process') |
|
13 | - $this->process = $process; |
|
14 | - |
|
15 | - else throw new \Exception ('$process argument must be an "Process" object'); |
|
12 | + if ($process->getType ()->toString () == 'System.Diagnostics.Process') { |
|
13 | + $this->process = $process; |
|
14 | + } else { |
|
15 | + throw new \Exception ('$process argument must be an "Process" object'); |
|
16 | + } |
|
16 | 17 | } |
17 | 18 | |
18 | 19 | public function dump (string $savePath, string $properties = '', bool $waitForExit = true) |
19 | 20 | { |
20 | 21 | $process = run ('"'. APP_DIR .'/system/procdump/procdump.exe"', $properties .' '. $this->process->id .' "'. filepathNoExt ($savePath) .'"'); |
21 | 22 | |
22 | - if ($waitForExit) |
|
23 | - while (!$process->hasExited) |
|
23 | + if ($waitForExit) { |
|
24 | + while (!$process->hasExited) |
|
24 | 25 | usleep (200); |
26 | + } |
|
25 | 27 | } |
26 | 28 | |
27 | 29 | public function debugRequest (string $command, array $arguments = []) |
@@ -37,9 +39,10 @@ discard block |
||
37 | 39 | { |
38 | 40 | $file = VoidStudioProjectManager::$projectPath .'/build/__debug_answer'; |
39 | 41 | |
40 | - if ($wait) |
|
41 | - while (!file_exists ($file)) |
|
42 | + if ($wait) { |
|
43 | + while (!file_exists ($file)) |
|
42 | 44 | usleep (100); |
45 | + } |
|
43 | 46 | |
44 | 47 | if (file_exists ($file)) |
45 | 48 | { |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace VoidEngine; |
4 | 4 | |
5 | -$name = basenameNoExt (__FILE__); |
|
5 | +$name = basenameNoExt(__FILE__); |
|
6 | 6 | |
7 | -$parser = new VLFParser (__DIR__. '/'. $name .'.vlf', [ |
|
7 | +$parser = new VLFParser(__DIR__.'/'.$name.'.vlf', [ |
|
8 | 8 | 'strong_line_parser' => false, |
9 | 9 | 'ignore_postobject_info' => true, |
10 | 10 | 'ignore_unexpected_method_args' => true, |
@@ -15,4 +15,4 @@ discard block |
||
15 | 15 | |
16 | 16 | // file_put_contents ('SyntaxTree__'. $name .'.json', json_encode ($parser->tree, JSON_PRETTY_PRINT)); |
17 | 17 | |
18 | -VoidStudioAPI::addObjects ($name, VLFInterpreter::run ($parser)); |
|
18 | +VoidStudioAPI::addObjects($name, VLFInterpreter::run($parser)); |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace VoidEngine; |
4 | 4 | |
5 | -$name = basenameNoExt (__FILE__); |
|
5 | +$name = basenameNoExt(__FILE__); |
|
6 | 6 | |
7 | -$parser = new VLFParser (__DIR__. '/'. $name .'.vlf', [ |
|
7 | +$parser = new VLFParser(__DIR__.'/'.$name.'.vlf', [ |
|
8 | 8 | 'strong_line_parser' => false, |
9 | 9 | 'ignore_postobject_info' => true, |
10 | 10 | 'ignore_unexpected_method_args' => true, |
@@ -15,4 +15,4 @@ discard block |
||
15 | 15 | |
16 | 16 | // file_put_contents ('SyntaxTree__'. $name .'.json', json_encode ($parser->tree, JSON_PRETTY_PRINT)); |
17 | 17 | |
18 | -VoidStudioAPI::addObjects ($name, VLFInterpreter::run ($parser)); |
|
18 | +VoidStudioAPI::addObjects($name, VLFInterpreter::run($parser)); |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace VoidEngine; |
4 | 4 | |
5 | -$name = basenameNoExt (__FILE__); |
|
5 | +$name = basenameNoExt(__FILE__); |
|
6 | 6 | |
7 | -$parser = new VLFParser (__DIR__. '/'. $name .'.vlf', [ |
|
7 | +$parser = new VLFParser(__DIR__.'/'.$name.'.vlf', [ |
|
8 | 8 | 'strong_line_parser' => false, |
9 | 9 | 'ignore_postobject_info' => true, |
10 | 10 | 'ignore_unexpected_method_args' => true, |
@@ -15,4 +15,4 @@ discard block |
||
15 | 15 | |
16 | 16 | // file_put_contents ('SyntaxTree__'. $name .'.json', json_encode ($parser->tree, JSON_PRETTY_PRINT)); |
17 | 17 | |
18 | -VoidStudioAPI::addObjects ($name, VLFInterpreter::run ($parser)); |
|
18 | +VoidStudioAPI::addObjects($name, VLFInterpreter::run($parser)); |
@@ -2,9 +2,9 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace VoidEngine; |
4 | 4 | |
5 | -$name = basenameNoExt (__FILE__); |
|
5 | +$name = basenameNoExt(__FILE__); |
|
6 | 6 | |
7 | -$parser = new VLFParser (__DIR__. '/'. $name .'.vlf', [ |
|
7 | +$parser = new VLFParser(__DIR__.'/'.$name.'.vlf', [ |
|
8 | 8 | 'strong_line_parser' => false, |
9 | 9 | 'ignore_postobject_info' => true, |
10 | 10 | 'ignore_unexpected_method_args' => true, |
@@ -15,4 +15,4 @@ discard block |
||
15 | 15 | |
16 | 16 | // file_put_contents ('SyntaxTree__'. $name .'.json', json_encode ($parser->tree, JSON_PRETTY_PRINT)); |
17 | 17 | |
18 | -VoidStudioAPI::addObjects ($name, VLFInterpreter::run ($parser)); |
|
18 | +VoidStudioAPI::addObjects($name, VLFInterpreter::run($parser)); |