@@ -36,10 +36,10 @@ discard block |
||
| 36 | 36 | const ENGINE_VERSION = '3.5.7 build-2019/09/22'; |
| 37 | 37 | const ENGINE_DIR = __DIR__; |
| 38 | 38 | |
| 39 | -chdir (ENGINE_DIR); |
|
| 39 | +chdir(ENGINE_DIR); |
|
| 40 | 40 | |
| 41 | 41 | $GLOBALS['__debug'] = [ |
| 42 | - 'start_time' => microtime (true), |
|
| 42 | + 'start_time' => microtime(true), |
|
| 43 | 43 | 'error_status' => true |
| 44 | 44 | ]; |
| 45 | 45 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | require 'common/Others.php'; |
| 50 | 50 | require 'common/Events.php'; |
| 51 | 51 | |
| 52 | -define ('VoidEngine\CORE_VERSION', $APPLICATION->productVersion); |
|
| 52 | +define('VoidEngine\CORE_VERSION', $APPLICATION->productVersion); |
|
| 53 | 53 | |
| 54 | 54 | require 'components/Component.php'; |
| 55 | 55 | require 'components/Control.php'; |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | require 'components/FastColoredTextBox.php'; |
| 97 | 97 | require 'components/Scintilla.php'; |
| 98 | 98 | |
| 99 | -if (is_dir ('extensions')) |
|
| 100 | - foreach (scandir ('extensions') as $ext) |
|
| 101 | - if (is_dir ('extensions/'. $ext) && file_exists ($ext = 'extensions/'. $ext .'/main.php')) |
|
| 99 | +if (is_dir('extensions')) |
|
| 100 | + foreach (scandir('extensions') as $ext) |
|
| 101 | + if (is_dir('extensions/'.$ext) && file_exists($ext = 'extensions/'.$ext.'/main.php')) |
|
| 102 | 102 | require $ext; |
@@ -4,28 +4,27 @@ |
||
| 4 | 4 | |
| 5 | 5 | class Process extends Component |
| 6 | 6 | { |
| 7 | - public $class = 'System.Diagnostics.Process'; |
|
| 7 | + public $class = 'System.Diagnostics.Process'; |
|
| 8 | 8 | public $namespace = 'System'; |
| 9 | 9 | |
| 10 | - public function __construct (int $pid = null) |
|
| 10 | + public function __construct(int $pid = null) |
|
| 11 | 11 | { |
| 12 | - $this->selector = \VoidCore::getClass ($this->class, $this->namespace); |
|
| 12 | + $this->selector = \VoidCore::getClass($this->class, $this->namespace); |
|
| 13 | 13 | |
| 14 | 14 | if ($pid !== null) |
| 15 | - $this->selector = $pid == getmypid () ? |
|
| 16 | - \VoidCore::callMethod ($this->selector, 'GetCurrentProcess') : |
|
| 17 | - \VoidCore::callMethod ($this->selector, 'GetProcessById', $pid); |
|
| 15 | + $this->selector = $pid == getmypid() ? |
|
| 16 | + \VoidCore::callMethod($this->selector, 'GetCurrentProcess') : \VoidCore::callMethod($this->selector, 'GetProcessById', $pid); |
|
| 18 | 17 | |
| 19 | - Components::addComponent ($this->selector, $this); |
|
| 18 | + Components::addComponent($this->selector, $this); |
|
| 20 | 19 | } |
| 21 | 20 | |
| 22 | - public static function getProcessById (int $pid) |
|
| 21 | + public static function getProcessById(int $pid) |
|
| 23 | 22 | { |
| 24 | - return new self ($pid); |
|
| 23 | + return new self($pid); |
|
| 25 | 24 | } |
| 26 | 25 | |
| 27 | - public static function getCurrentProcess () |
|
| 26 | + public static function getCurrentProcess() |
|
| 28 | 27 | { |
| 29 | - return new self (getmypid ()); |
|
| 28 | + return new self(getmypid()); |
|
| 30 | 29 | } |
| 31 | 30 | } |