Passed
Push — master ( af6f8b...b52801 )
by Observer
01:41
created
core/script.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -3,20 +3,20 @@
 block discarded – undo
3 3
 namespace VoidEngine;
4 4
 
5 5
 const CORE_DIR = __DIR__;
6
-chdir (CORE_DIR);
6
+chdir(CORE_DIR);
7 7
 
8
-foreach (glob ('ext/php_*.dll') as $ext)
9
-	if (!extension_loaded (substr (basename ($ext), 4, -4)))
10
-		load_extension ($ext);
8
+foreach (glob('ext/php_*.dll') as $ext)
9
+	if (!extension_loaded(substr(basename($ext), 4, -4)))
10
+		load_extension($ext);
11 11
 
12
-if (file_exists ('../engine/VoidEngine.php'))
12
+if (file_exists('../engine/VoidEngine.php'))
13 13
 	require '../engine/VoidEngine.php';
14 14
 
15
-else message ('VoidEngine not founded');
15
+else message('VoidEngine not founded');
16 16
 
17 17
 $app = '../../app/start.php';
18 18
 
19
-if (file_exists ($app))
19
+if (file_exists($app))
20 20
 	require $app;
21 21
 
22
-else \VoidCore::callMethod (\VoidCore::createObject ('WinForms_PHP.DebugForm'), 'ShowDialog');
22
+else \VoidCore::callMethod(\VoidCore::createObject('WinForms_PHP.DebugForm'), 'ShowDialog');
Please login to merge, or discard this patch.
engine/extensions/VLF/bin/Translator.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -4,25 +4,25 @@  discard block
 block discarded – undo
4 4
 
5 5
 class Translator
6 6
 {
7
-    public static function translate (AST $tree): string
7
+    public static function translate(AST $tree): string
8 8
     {
9 9
         $code = "<?php\n\nnamespace VoidEngine;\n\n";
10 10
         $definedObjects = [];
11 11
 
12
-        foreach ($tree->getNodes () as $node)
13
-            $code .= self::translateNode ($node, null, $definedObjects) ."\n";
12
+        foreach ($tree->getNodes() as $node)
13
+            $code .= self::translateNode($node, null, $definedObjects)."\n";
14 14
 
15 15
         return $code;
16 16
     }
17 17
 
18
-    protected static function translateNode (Node $node, Node $owner = null, array &$definedObjects = []): string
18
+    protected static function translateNode(Node $node, Node $owner = null, array &$definedObjects = []): string
19 19
     {
20 20
         $code = '';
21 21
 
22 22
         switch ($node->type)
23 23
         {
24 24
             case RUNTIME_EXECUTION:
25
-                $code .= self::formatLine ($node->args['code'], $definedObjects) ."\n\n";
25
+                $code .= self::formatLine($node->args['code'], $definedObjects)."\n\n";
26 26
 
27 27
                 break;
28 28
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 if (isset ($definedObjects[$node->args['name']]))
31 31
                     break;
32 32
                 
33
-                $code .= '$'. $node->args['name'] .' = new '. $node->args['class'] .' ('. implode (', ', self::processArgs ($node->args['args'], $definedObjects)) .');' ."\n". '$'. $node->args['name'] .'->name = \''. $node->args['name'] .'\';' ."\n";
33
+                $code .= '$'.$node->args['name'].' = new '.$node->args['class'].' ('.implode(', ', self::processArgs($node->args['args'], $definedObjects)).');'."\n".'$'.$node->args['name'].'->name = \''.$node->args['name'].'\';'."\n";
34 34
 
35 35
                 $definedObjects[$node->args['name']] = $node->args['name'];
36 36
 
@@ -39,74 +39,74 @@  discard block
 block discarded – undo
39 39
             case PROPERTY_SET:
40 40
                 $preset = '';
41 41
 
42
-                if (preg_match ('/function \((.*)\) use \((.*)\)/', $node->args['property_value']))
42
+                if (preg_match('/function \((.*)\) use \((.*)\)/', $node->args['property_value']))
43 43
                 {
44
-                    $use = substr ($node->args['property_value'], strpos ($node->args['property_value'], 'use'));
45
-                    $use = $ouse = substr ($use, ($pos = strpos ($use, '(') + 1), strpos ($use, ')') - $pos);
46
-                    $use = explode (' ', $use);
44
+                    $use = substr($node->args['property_value'], strpos($node->args['property_value'], 'use'));
45
+                    $use = $ouse = substr($use, ($pos = strpos($use, '(') + 1), strpos($use, ')') - $pos);
46
+                    $use = explode(' ', $use);
47 47
 
48 48
                     foreach ($use as $id => $useParam)  
49 49
                         if (isset ($definedObjects[$useParam]) && $use[$id + 1][0] == '$')
50 50
                         {
51 51
                             $fname = $use[$id + 1];
52 52
 
53
-                            if (substr ($fname, strlen ($fname) - 1) == ',')
54
-                                $fname = substr ($fname, 0, -1);
53
+                            if (substr($fname, strlen($fname) - 1) == ',')
54
+                                $fname = substr($fname, 0, -1);
55 55
 
56 56
                             $preset .= "$fname = $useParam; ";
57 57
 
58 58
                             unset ($use[$id]);
59 59
                         }
60 60
 
61
-                    $preset = self::formatLine ($preset, $definedObjects) ."\n";
61
+                    $preset = self::formatLine($preset, $definedObjects)."\n";
62 62
 
63
-                    $node->args['property_value'] = self::formatLine (str_replace ($ouse, join (' ', $use), $node->args['property_value']), $definedObjects);
63
+                    $node->args['property_value'] = self::formatLine(str_replace($ouse, join(' ', $use), $node->args['property_value']), $definedObjects);
64 64
                 }
65 65
                 
66
-                $code .= $preset .'$'. $owner->args['name'] .'->'. $node->args['property_name'] .' = '. self::formatLine ($node->args['property_value'], $definedObjects) .';' ."\n";
66
+                $code .= $preset.'$'.$owner->args['name'].'->'.$node->args['property_name'].' = '.self::formatLine($node->args['property_value'], $definedObjects).';'."\n";
67 67
 
68 68
                 break;
69 69
 
70 70
             case METHOD_CALL:
71
-                $code .= '$'. $owner->args['name'] .'->'. $node->args['method_name'] .' ('. implode (', ', self::processArgs ($node->args['method_args'], $definedObjects)) .');' ."\n";
71
+                $code .= '$'.$owner->args['name'].'->'.$node->args['method_name'].' ('.implode(', ', self::processArgs($node->args['method_args'], $definedObjects)).');'."\n";
72 72
 
73 73
                 break;
74 74
         }
75 75
 
76
-        foreach ($node->getNodes () as $subnode)
77
-            $code .= self::translateNode ($subnode, $node, $definedObjects);
76
+        foreach ($node->getNodes() as $subnode)
77
+            $code .= self::translateNode($subnode, $node, $definedObjects);
78 78
 
79 79
         return $code;
80 80
     }
81 81
 
82
-    protected static function processArgs (array $args, array $definedObjects = []): array
82
+    protected static function processArgs(array $args, array $definedObjects = []): array
83 83
     {
84 84
         $newArgs = [];
85 85
 
86 86
         foreach ($args as $arg)
87
-            $newArgs[] = self::formatLine ($arg, $definedObjects);
87
+            $newArgs[] = self::formatLine($arg, $definedObjects);
88 88
 
89 89
         return $newArgs;
90 90
     }
91 91
 
92
-    protected static function formatLine (string $line, array $objects = []): string
92
+    protected static function formatLine(string $line, array $objects = []): string
93 93
     {
94
-        if (sizeof ($objects) > 0)
94
+        if (sizeof($objects) > 0)
95 95
         {
96
-            $len     = strlen ($line);
96
+            $len     = strlen($line);
97 97
             $newLine = '';
98 98
 
99
-            $replacement = array_map (function ($object)
99
+            $replacement = array_map(function($object)
100 100
             {
101
-                return '$'. $object;
101
+                return '$'.$object;
102 102
             }, $objects);
103 103
 
104
-            $replacement = array_map (function ($name)
104
+            $replacement = array_map(function($name)
105 105
             {
106
-                return strlen ($name = trim ($name)) + substr_count ($name, '_');
107
-            }, $omap = array_flip ($replacement));
106
+                return strlen($name = trim($name)) + substr_count($name, '_');
107
+            }, $omap = array_flip($replacement));
108 108
 
109
-            arsort ($replacement);
109
+            arsort($replacement);
110 110
 
111 111
             $nReplacement = [];
112 112
 
@@ -114,14 +114,14 @@  discard block
 block discarded – undo
114 114
                 $nReplacement[$omap[$replaceTo]] = $replaceTo;
115 115
 
116 116
             $replacement = $nReplacement;
117
-            $blacklist   = array_flip (['\'', '"', '$']);
117
+            $blacklist   = array_flip(['\'', '"', '$']);
118 118
 
119 119
             for ($i = 0; $i < $len; ++$i)
120 120
             {
121 121
                 $replaced = false;
122 122
 
123 123
                 foreach ($replacement as $name => $replaceAt)
124
-                    if (substr ($line, $i, ($l = strlen ($name))) == $name && !isset ($blacklist[$line[$i - 1]]))
124
+                    if (substr($line, $i, ($l = strlen($name))) == $name && !isset ($blacklist[$line[$i - 1]]))
125 125
                     {
126 126
                         $newLine .= $replaceAt;
127 127
 
Please login to merge, or discard this patch.
engine/extensions/VLF/bin/AST/Node.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@  discard block
 block discarded – undo
8 8
 class Node
9 9
 {
10 10
     public ?string $line = null; // Строка
11
-    public array $words  = [];   // Список слов
12
-    public int $height   = 0;    // Высота строки
13
-    public int $type     = 0;    // Тип ноды
14
-    public array $args   = [];   // Аргументы ноды
11
+    public array $words  = []; // Список слов
12
+    public int $height   = 0; // Высота строки
13
+    public int $type     = 0; // Тип ноды
14
+    public array $args   = []; // Аргументы ноды
15 15
 
16 16
     protected array $nodes = []; // Ветви ноды
17 17
 
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
      * 
21 21
      * [@param array $node = null] - массив для импорта ноды
22 22
      */
23
-    public function __construct (array $node = null)
23
+    public function __construct(array $node = null)
24 24
     {
25 25
         if ($node !== null)
26
-            $this->import ($node);
26
+            $this->import($node);
27 27
     }
28 28
 
29 29
     /**
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * 
34 34
      * @return Node - возвращает саму себя
35 35
      */
36
-    public function import (array $node): Node
36
+    public function import(array $node): Node
37 37
     {
38 38
         $this->line   = $node['line'] ?? null;
39 39
         $this->words  = $node['words'] ?? [];
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         $this->type   = $node['type'] ?? 0;
42 42
         $this->args   = $node['args'] ?? [];
43 43
 
44
-        $this->nodes = array_map (fn (array $t) => new Node ($t), $node['nodes'] ?? []);
44
+        $this->nodes = array_map(fn(array $t) => new Node($t), $node['nodes'] ?? []);
45 45
 
46 46
         return $this;
47 47
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      * 
52 52
      * @return array - возвращает массив экспортированной ноды
53 53
      */
54
-    public function export (): array
54
+    public function export(): array
55 55
     {
56 56
         return [
57 57
             'line'   => $this->line,
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
             'type'   => $this->type,
61 61
             'args'   => $this->args,
62 62
 
63
-            'nodes'  => array_map (fn (Node $node) => $node->export (), $this->nodes)
63
+            'nodes'  => array_map(fn(Node $node) => $node->export(), $this->nodes)
64 64
         ];
65 65
     }
66 66
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * 
72 72
      * @return Node - возвращает саму себя
73 73
      */
74
-    public function push (Node $node): Node
74
+    public function push(Node $node): Node
75 75
     {
76 76
         $this->nodes[] = $node;
77 77
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * 
84 84
      * @return array - возвращает список ветвей
85 85
      */
86
-    public function getNodes (): array
86
+    public function getNodes(): array
87 87
     {
88 88
         return $this->nodes;
89 89
     }
Please login to merge, or discard this patch.
engine/extensions/VLF/bin/AST/Tree.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@  discard block
 block discarded – undo
15 15
      * 
16 16
      * [@param array $tree = null] - массив для импорта дерева
17 17
      */
18
-    public function __construct (array $tree = null)
18
+    public function __construct(array $tree = null)
19 19
     {
20 20
         if ($tree !== null)
21
-            $this->import ($tree);
21
+            $this->import($tree);
22 22
     }
23 23
 
24 24
     /**
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
      * 
29 29
      * @return AST - возвращает сам себя
30 30
      */
31
-    public function import (array $tree): AST
31
+    public function import(array $tree): AST
32 32
     {
33 33
         foreach ($tree as $node)
34
-            $this->nodes[] = new Node ($node);
34
+            $this->nodes[] = new Node($node);
35 35
 
36 36
         return $this;
37 37
     }
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
      * 
42 42
      * @return array - возращает массив экспортированного дерева
43 43
      */
44
-    public function export (): array
44
+    public function export(): array
45 45
     {
46
-        return array_map (fn (Node $node) => $node->export (), $this->nodes);
46
+        return array_map(fn(Node $node) => $node->export(), $this->nodes);
47 47
     }
48 48
 
49 49
     /**
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * 
54 54
      * @return AST - возвращает сам себя
55 55
      */
56
-    public function push (Node $node): AST
56
+    public function push(Node $node): AST
57 57
     {
58 58
         $this->nodes[] = $node;
59 59
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      * 
66 66
      * @return array - возвращает список корневых нод
67 67
      */
68
-    public function getNodes (): array
68
+    public function getNodes(): array
69 69
     {
70 70
         return $this->nodes;
71 71
     }
Please login to merge, or discard this patch.
engine/extensions/VLF/bin/Stack.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
      * 
18 18
      * @return Stack - возвращает сам себя
19 19
      */
20
-    public function push ($item): Stack
20
+    public function push($item): Stack
21 21
     {
22 22
         $this->items[] = $item;
23 23
 
@@ -29,9 +29,9 @@  discard block
 block discarded – undo
29 29
      * 
30 30
      * @return mixed - возвращает текущий элемент
31 31
      */
32
-    public function current ()
32
+    public function current()
33 33
     {
34
-        return end ($this->items);
34
+        return end($this->items);
35 35
     }
36 36
 
37 37
     /**
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
      * 
40 40
      * @return mixed - возвращает текущий элемент
41 41
      */
42
-    public function pop ()
42
+    public function pop()
43 43
     {
44
-        return array_pop ($this->items);
44
+        return array_pop($this->items);
45 45
     }
46 46
 
47 47
     /**
@@ -49,8 +49,8 @@  discard block
 block discarded – undo
49 49
      * 
50 50
      * @return int - возвращает размер стэка
51 51
      */
52
-    public function size (): int
52
+    public function size(): int
53 53
     {
54
-        return sizeof ($this->items);
54
+        return sizeof($this->items);
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
engine/extensions/WinAPI/main.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 {
28 28
     protected $WinAPI;
29 29
 
30
-    public function __construct ()
30
+    public function __construct()
31 31
     {
32 32
         /**
33 33
          * Большинство функций было взято из класса "WinAPI" проекта "DevelStudio XL"
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
          * @see <https://vk.com/evsoft>
37 37
          * @see <https://vk.com/magic.breeze>
38 38
          */
39
-        $this->WinAPI = \FFI::cdef ('
39
+        $this->WinAPI = \FFI::cdef('
40 40
             struct LPCTSTR
41 41
             {
42 42
                 char string;
@@ -72,10 +72,9 @@  discard block
 block discarded – undo
72 72
         ', 'User32.dll');
73 73
     }
74 74
 
75
-    public function __call ($method, $args)
75
+    public function __call($method, $args)
76 76
     {
77
-        return method_exists ($this, $method) ?
78
-            $this->$method (...$args) :
79
-            $this->WinAPI->$method (...$args);
77
+        return method_exists($this, $method) ?
78
+            $this->$method(...$args) : $this->WinAPI->$method(...$args);
80 79
     }
81 80
 }
Please login to merge, or discard this patch.
engine/common/Events.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -6,34 +6,34 @@
 block discarded – undo
6 6
 
7 7
 class Events
8 8
 {
9
-    public static function setEvent (int $selector, string $eventName, callable $function): void
9
+    public static function setEvent(int $selector, string $eventName, callable $function): void
10 10
     {
11
-        VoidCore::setEvent ($selector, $eventName, function ($sender, ...$args) use ($function)
11
+        VoidCore::setEvent($selector, $eventName, function($sender, ...$args) use ($function)
12 12
 		{
13 13
             try
14 14
 			{
15 15
                 foreach ($args as $id => $arg)
16
-                    $args[$id] = EngineAdditions::coupleSelector ($arg);
16
+                    $args[$id] = EngineAdditions::coupleSelector($arg);
17 17
                 
18
-                return $function (_c ($sender) ?: new NetObject ($sender), ...$args);
18
+                return $function(_c($sender) ?: new NetObject($sender), ...$args);
19 19
             }
20 20
             
21 21
 			catch (\Throwable $e)
22 22
 			{
23
-                message ([
24
-                    'type'  => get_class ($e),
25
-                    'text'  => $e->getMessage (),
26
-                    'file'  => $e->getFile (),
27
-                    'line'  => $e->getLine (),
28
-                    'code'  => $e->getCode (),
29
-                    'trace' => $e->getTraceAsString ()
23
+                message([
24
+                    'type'  => get_class($e),
25
+                    'text'  => $e->getMessage(),
26
+                    'file'  => $e->getFile(),
27
+                    'line'  => $e->getLine(),
28
+                    'code'  => $e->getCode(),
29
+                    'trace' => $e->getTraceAsString()
30 30
                 ], 'PHP Critical Error');
31 31
             }
32 32
         });
33 33
     }
34 34
 
35
-    public static function removeEvent (int $selector, string $eventName): void
35
+    public static function removeEvent(int $selector, string $eventName): void
36 36
     {
37
-        VoidCore::removeEvent ($selector, $eventName);
37
+        VoidCore::removeEvent($selector, $eventName);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
engine/common/Constants.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,17 +2,17 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace VoidEngine;
4 4
 
5
-$env 	= new NetClass ('System.Environment', 'mscorlib');
6
-$params = $env->getCommandLineArgs ()->list;
5
+$env = new NetClass('System.Environment', 'mscorlib');
6
+$params = $env->getCommandLineArgs()->list;
7 7
 
8
-$converter = new NetClass ('System.Drawing.ColorTranslator');
8
+$converter = new NetClass('System.Drawing.ColorTranslator');
9 9
 
10 10
 $constants = [
11 11
 	# Информация об окружении
12 12
 	
13 13
 	'EXE_NAME'     => $APPLICATION->executablePath,
14
-	'DOC_ROOT'     => dirname ($APPLICATION->executablePath),
15
-	'IS_ADMIN'     => is_writable (getenv ('SystemRoot')),
14
+	'DOC_ROOT'     => dirname($APPLICATION->executablePath),
15
+	'IS_ADMIN'     => is_writable(getenv('SystemRoot')),
16 16
 	'START_PARAMS' => $params,
17 17
 	'USERNAME'	   => $env->username,
18 18
 
@@ -332,17 +332,17 @@  discard block
 block discarded – undo
332 332
 
333 333
 	# Моя подборка цветов
334 334
 
335
-	'clDark'	  => $converter->fromHtml ('#0D0F12'),
336
-	'clDark2'	  => $converter->fromHtml ('#121416'),
337
-	'clTurquoise' => $converter->fromHtml ('#00ADB5'),
338
-	'clLight'  	  => $converter->fromHtml ('#EEEEEE')
335
+	'clDark'	  => $converter->fromHtml('#0D0F12'),
336
+	'clDark2'	  => $converter->fromHtml('#121416'),
337
+	'clTurquoise' => $converter->fromHtml('#00ADB5'),
338
+	'clLight'  	  => $converter->fromHtml('#EEEEEE')
339 339
 ];
340 340
 
341 341
 foreach ($constants as $name => $value)
342
-	define ($name, $value);
342
+	define($name, $value);
343 343
 
344 344
 $argv = START_PARAMS;
345
-$argc = sizeof ($argv);
345
+$argc = sizeof($argv);
346 346
 
347
-\VoidCore::removeObjects ($converter->selector);
347
+\VoidCore::removeObjects($converter->selector);
348 348
 unset ($constants, $env, $params, $converter);
Please login to merge, or discard this patch.
engine/common/Globals.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -2,50 +2,50 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace VoidEngine;
4 4
 
5
-register_superglobals ('APPLICATION', 'SCREEN');
5
+register_superglobals('APPLICATION', 'SCREEN');
6 6
 
7 7
 $APPLICATION = new class
8 8
 {
9 9
     public NetClass $application;
10 10
     public string $executablePath;
11 11
     
12
-    public function __construct ()
12
+    public function __construct()
13 13
     {
14
-        $this->application    = new NetClass ('System.Windows.Forms.Application');
14
+        $this->application    = new NetClass('System.Windows.Forms.Application');
15 15
         $this->executablePath = $this->application->executablePath;
16 16
     }
17 17
     
18
-    public function run ($form = null): void
18
+    public function run($form = null): void
19 19
     {
20 20
         if ($form instanceof NetObject)
21
-            $this->application->run ($form->selector);
21
+            $this->application->run($form->selector);
22 22
         
23
-        elseif (is_int ($form) && \VoidCore::objectExists ($form))
24
-            $this->application->run ($form);
23
+        elseif (is_int($form) && \VoidCore::objectExists($form))
24
+            $this->application->run($form);
25 25
         
26 26
         elseif ($form === null)
27
-            $this->application->run ();
27
+            $this->application->run();
28 28
 
29
-        else throw new \Exception ('$form param must be instance of "VoidEngine\NetObject" ("VoidEngine\Form"), be null or object selector');
29
+        else throw new \Exception('$form param must be instance of "VoidEngine\NetObject" ("VoidEngine\Form"), be null or object selector');
30 30
     }
31 31
     
32
-    public function restart (): void
32
+    public function restart(): void
33 33
     {
34
-        $this->application->restart ();
35
-        $this->close ();
34
+        $this->application->restart();
35
+        $this->close();
36 36
     }
37 37
     
38
-    public function close (): void
38
+    public function close(): void
39 39
     {
40
-        $this->application->exit ();
40
+        $this->application->exit();
41 41
     }
42 42
 
43
-    public function __call (string $name, array $args)
43
+    public function __call(string $name, array $args)
44 44
     {
45
-        return $this->application->$name (...$args);
45
+        return $this->application->$name(...$args);
46 46
     }
47 47
 
48
-    public function __get (string $name)
48
+    public function __get(string $name)
49 49
     {
50 50
         return $this->application->$name;
51 51
     }
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
 {
56 56
     public NetClass $screen;
57 57
     
58
-    public function __construct ()
58
+    public function __construct()
59 59
     {
60
-        $this->screen = new NetClass ('System.Windows.Forms.Screen');
60
+        $this->screen = new NetClass('System.Windows.Forms.Screen');
61 61
     }
62 62
     
63
-    public function __get ($name)
63
+    public function __get($name)
64 64
     {
65
-        switch (strtolower ($name))
65
+        switch (strtolower($name))
66 66
         {
67 67
             case 'width':
68 68
             case 'w':
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
         }
81 81
     }
82 82
     
83
-    public function __debugInfo (): array
83
+    public function __debugInfo(): array
84 84
     {
85 85
         return [
86 86
             $this->w,
Please login to merge, or discard this patch.