Passed
Push — master ( 0c519e...eeb76c )
by Observer
01:22
created
engine/extensions/VLF/bin/importer.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 class VLFImporter
6 6
 {
7
-    static function import (string $vlf, PropertyGrid $propertyGrid, ListBox $eventsList, ComboBox $currentSelectedItem, TabControl $formsList, array $settings = array (
7
+    static function import(string $vlf, PropertyGrid $propertyGrid, ListBox $eventsList, ComboBox $currentSelectedItem, TabControl $formsList, array $settings = array(
8 8
         'strong_line_parser'            => false,
9 9
         'ignore_postobject_info'        => true,
10 10
         'ignore_unexpected_method_args' => true,
@@ -13,20 +13,20 @@  discard block
 block discarded – undo
13 13
         'debug_mode'  => false
14 14
     )): array
15 15
     {
16
-        $objects   = VLFInterpreter::run (new VLFParser ($vlf, $settings));
16
+        $objects   = VLFInterpreter::run(new VLFParser($vlf, $settings));
17 17
         $designers = [];
18 18
 
19 19
         foreach ($objects as $name => $object)
20 20
             if ($object instanceof Form)
21 21
             {
22
-                $page = new TabPage ($name);
23
-                $designers[$object->selector] = new VoidDesigner ($page, $name, $propertyGrid, $eventsList, $currentSelectedItem, $formsList, $object);
22
+                $page = new TabPage($name);
23
+                $designers[$object->selector] = new VoidDesigner($page, $name, $propertyGrid, $eventsList, $currentSelectedItem, $formsList, $object);
24 24
 
25 25
                 $designers[$object->selector]->form->text = $object->text;
26 26
 
27
-                VoidStudioAPI::addObjects ('main', ['Designer__'. $name .'Designer' => $designers[$object->selector]]);
27
+                VoidStudioAPI::addObjects('main', ['Designer__'.$name.'Designer' => $designers[$object->selector]]);
28 28
 
29
-                $formsList->items->add ($page);
29
+                $formsList->items->add($page);
30 30
                 $formsList->selectedTab = $page->selector;
31 31
             }
32 32
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
                         $parent = $parent->parent;
39 39
 
40 40
                     if (isset ($designers[$parent->selector]))
41
-                        $designers[$parent->selector]->addComponent ($object->selector, $name);
41
+                        $designers[$parent->selector]->addComponent($object->selector, $name);
42 42
                 }
43 43
 
44 44
                 catch (\Throwable $e) {}
Please login to merge, or discard this patch.
engine/extensions/WinAPI/main.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 {
30 30
     protected $WinAPI;
31 31
 
32
-    public function __construct ()
32
+    public function __construct()
33 33
     {
34 34
         /**
35 35
          * Большинство функций было взято из класса "WinAPI" проекта "DevelStudio XL"
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
          * 
41 41
          */
42 42
 
43
-        $this->WinAPI = \FFI::cdef ('
43
+        $this->WinAPI = \FFI::cdef('
44 44
             struct LPCTSTR
45 45
             {
46 46
                 char string;
@@ -76,25 +76,25 @@  discard block
 block discarded – undo
76 76
         ', 'User32.dll');
77 77
     }
78 78
 
79
-    public function __call ($method, $args)
79
+    public function __call($method, $args)
80 80
     {
81
-        if (method_exists ($this, $method))
82
-            return $this->$method (...$args);
81
+        if (method_exists($this, $method))
82
+            return $this->$method(...$args);
83 83
         
84 84
         else try
85 85
         {
86
-            return $this->WinAPI->$method (...$args);
86
+            return $this->WinAPI->$method(...$args);
87 87
         }
88 88
 
89 89
         catch (\Throwable $e)
90 90
         {
91
-            throw new \Exception ('Method "'. $method .'" not found or return an exception. Exception info: '. "\n\n". (string) $e);
91
+            throw new \Exception('Method "'.$method.'" not found or return an exception. Exception info: '."\n\n".(string) $e);
92 92
         }
93 93
     }
94 94
 
95
-    public function findWindow (string $caption, string $class = null): ?int
95
+    public function findWindow(string $caption, string $class = null): ?int
96 96
     {
97
-        return $this->FindWindowA ($class, $caption);
97
+        return $this->FindWindowA($class, $caption);
98 98
     }
99 99
 
100 100
     /*public function getWindowCaption (int $handle)
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 WFClass ('System.Environment', 'mscorlib');
6
-$params = $env->getCommandLineArgs ()->list;
5
+$env = new WFClass('System.Environment', 'mscorlib');
6
+$params = $env->getCommandLineArgs()->list;
7 7
 
8
-$converter = new WFClass ('System.Drawing.ColorTranslator');
8
+$converter = new WFClass('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
-VoidEngine::removeObjects ($converter->selector);
347
+VoidEngine::removeObjects($converter->selector);
348 348
 unset ($constants, $env, $params, $converter);
Please login to merge, or discard this patch.
engine/components/Scintilla.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace VoidEngine;
4 4
 
5
-EngineAdditions::loadModule ('ScintillaNET.dll');
5
+EngineAdditions::loadModule('ScintillaNET.dll');
6 6
 
7 7
 class Scintilla extends NoVisual
8 8
 {
@@ -11,71 +11,71 @@  discard block
 block discarded – undo
11 11
 
12 12
     protected $styles;
13 13
 
14
-    public function __construct (Component $parent = null)
14
+    public function __construct(Component $parent = null)
15 15
 	{
16
-        parent::__construct ($parent, $this->class);
16
+        parent::__construct($parent, $this->class);
17 17
 
18
-        $this->styles = $this->getProperty ('Styles');
18
+        $this->styles = $this->getProperty('Styles');
19 19
 	}
20 20
 
21
-    public function resetSyntax ()
21
+    public function resetSyntax()
22 22
     {
23
-        $this->callMethod ('StyleResetDefault');
23
+        $this->callMethod('StyleResetDefault');
24 24
     }
25 25
 
26
-    public function clearSyntax ()
26
+    public function clearSyntax()
27 27
     {
28
-        $this->callMethod ('StyleClearAll');
28
+        $this->callMethod('StyleClearAll');
29 29
     }
30 30
 
31
-    public function setKeywords (int $index, string $keywords)
31
+    public function setKeywords(int $index, string $keywords)
32 32
     {
33
-        $this->callMethod ('SetKeywords', [$index, 'int'], [$keywords, 'string']);
33
+        $this->callMethod('SetKeywords', [$index, 'int'], [$keywords, 'string']);
34 34
     }
35 35
 
36
-    public function propertyInit (string $propertyName, $propertyValue)
36
+    public function propertyInit(string $propertyName, $propertyValue)
37 37
     {
38
-        $this->callMethod ('SetProperty', [$propertyName, 'string'], [$propertyValue, 'string']);
38
+        $this->callMethod('SetProperty', [$propertyName, 'string'], [$propertyValue, 'string']);
39 39
     }
40 40
 
41
-    public function set_syntax ($syntax)
41
+    public function set_syntax($syntax)
42 42
     {
43
-        if (file_exists ($syntax))
44
-            $syntax = file_get_contents ($syntax);
43
+        if (file_exists($syntax))
44
+            $syntax = file_get_contents($syntax);
45 45
 
46
-        $syntax = json_decode ($syntax, true);
46
+        $syntax = json_decode($syntax, true);
47 47
 
48 48
         if (
49
-            !is_array ($syntax['syntax']) ||
50
-            !is_array ($syntax['references']) ||
49
+            !is_array($syntax['syntax']) ||
50
+            !is_array($syntax['references']) ||
51 51
             !isset ($syntax['lexer'])
52 52
         ) return false;
53 53
 
54 54
         else
55 55
         {
56
-            $this->resetSyntax ();
57
-            $this->clearSyntax ();
56
+            $this->resetSyntax();
57
+            $this->clearSyntax();
58 58
             
59 59
             foreach ($syntax['references'] as $name => $value)
60 60
                 if (isset ($syntax['syntax'][$name]))
61 61
                 {
62
-                    $element = VoidEngine::getArrayValue ($this->styles, $value);
62
+                    $element = VoidEngine::getArrayValue($this->styles, $value);
63 63
                     $color   = $syntax['syntax'][$name];
64 64
 
65
-                    if (defined ($color))
66
-                        $color = constant ($color);
65
+                    if (defined($color))
66
+                        $color = constant($color);
67 67
                     
68
-                    VoidEngine::setProperty ($element, 'ForeColor', [$color, 'color']);
68
+                    VoidEngine::setProperty($element, 'ForeColor', [$color, 'color']);
69 69
                 }
70 70
 
71 71
             $this->lexer = $syntax['lexer'];
72 72
 
73
-            if (is_array ($syntax['keywords']))
73
+            if (is_array($syntax['keywords']))
74 74
                 foreach ($syntax['keywords'] as $id => $keywords)
75
-                    $this->setKeywords ($id, $keywords);
75
+                    $this->setKeywords($id, $keywords);
76 76
 
77
-            $this->propertyInit ('fold', 1);
78
-            $this->propertyInit ('fold.compact', 1);
77
+            $this->propertyInit('fold', 1);
78
+            $this->propertyInit('fold.compact', 1);
79 79
 
80 80
             return true;
81 81
         }
Please login to merge, or discard this patch.
engine/components/ProgressBar.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -6,33 +6,33 @@
 block discarded – undo
6 6
 {
7 7
     public $class = 'System.Windows.Forms.ProgressBar';
8 8
 
9
-    public function get_max ()
9
+    public function get_max()
10 10
     {
11
-        return $this->getProperty ('Maximum');
11
+        return $this->getProperty('Maximum');
12 12
     }
13 13
 
14
-    public function set_max (int $max)
14
+    public function set_max(int $max)
15 15
     {
16
-        $this->setProperty ('Maximum', $max);
16
+        $this->setProperty('Maximum', $max);
17 17
     }
18 18
 
19
-    public function get_min ()
19
+    public function get_min()
20 20
     {
21
-        return $this->getProperty ('Minimum');
21
+        return $this->getProperty('Minimum');
22 22
     }
23 23
 
24
-    public function set_min (int $min)
24
+    public function set_min(int $min)
25 25
     {
26
-        $this->setProperty ('Minimum', $min);
26
+        $this->setProperty('Minimum', $min);
27 27
     }
28 28
 
29
-    public function get_position ()
29
+    public function get_position()
30 30
     {
31
-        return $this->getProperty ('Value');
31
+        return $this->getProperty('Value');
32 32
     }
33 33
 
34
-    public function set_position (int $position)
34
+    public function set_position(int $position)
35 35
     {
36
-        $this->setProperty ('Value', $position);
36
+        $this->setProperty('Value', $position);
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
engine/components/CommonDialog.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,8 @@
 block discarded – undo
6 6
 {
7 7
     public $class = 'System.Windows.Forms.CommonDialog';
8 8
 
9
-    public function execute (): int
9
+    public function execute(): int
10 10
     {
11
-        return $this->callMethod ('ShowDialog');
11
+        return $this->callMethod('ShowDialog');
12 12
     }
13 13
 }
Please login to merge, or discard this patch.
engine/components/WebBrowser.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,18 +6,18 @@
 block discarded – undo
6 6
 {
7 7
     public $class = 'System.Windows.Forms.WebBrowser';
8 8
 
9
-    public function back (): void
9
+    public function back(): void
10 10
     {
11
-        $this->callMethod ('GoBack');
11
+        $this->callMethod('GoBack');
12 12
     }
13 13
 
14
-    public function forward (): void
14
+    public function forward(): void
15 15
     {
16
-        $this->callMethod ('GoForward');
16
+        $this->callMethod('GoForward');
17 17
     }
18 18
 
19
-    public function browse (string $url)
19
+    public function browse(string $url)
20 20
     {
21
-        return $this->callMethod ('Navigate', $url);
21
+        return $this->callMethod('Navigate', $url);
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
engine/components/Control.php 1 patch
Spacing   +47 added lines, -48 removed lines patch added patch discarded remove patch
@@ -6,106 +6,105 @@  discard block
 block discarded – undo
6 6
 {
7 7
     public $class = 'System.Windows.Forms.Control';
8 8
 
9
-    public function __construct (Component $parent = null, $className = null, ...$args)
9
+    public function __construct(Component $parent = null, $className = null, ...$args)
10 10
     {
11
-        parent::__construct ($className, ...$args);
11
+        parent::__construct($className, ...$args);
12 12
 
13 13
         if ($parent)
14 14
             $this->parent = $parent;
15 15
     }
16 16
 	
17
-    public function get_caption (): string
17
+    public function get_caption(): string
18 18
     {
19 19
         return $this->text;
20 20
     }
21 21
 	
22
-    public function set_caption (string $caption)
22
+    public function set_caption(string $caption)
23 23
     {
24 24
         $this->text = $caption;
25 25
     }
26 26
 
27
-    public function get_font (): array
27
+    public function get_font(): array
28 28
 	{
29
-        $font = $this->getProperty ('Font');
29
+        $font = $this->getProperty('Font');
30 30
         
31 31
 		return [
32
-            VoidEngine::getProperty ($font, 'Name'),
33
-            VoidEngine::getProperty ($font, 'Size')
32
+            VoidEngine::getProperty($font, 'Name'),
33
+            VoidEngine::getProperty($font, 'Size')
34 34
         ];
35 35
 	}
36 36
 	
37
-	public function set_font (array $font): void
37
+	public function set_font(array $font): void
38 38
 	{
39
-        $font = array_values ($font);
39
+        $font = array_values($font);
40 40
 
41 41
         $obj = isset ($font[2]) ?
42
-            VoidEngine::createObject ('System.Drawing.Font', 'System.Drawing', $font[0], [$font[1], 'float'], [$font[2], 'System.Drawing.FontStyle, System.Drawing']) :
43
-            VoidEngine::createObject ('System.Drawing.Font', 'System.Drawing', $font[0], [$font[1], 'float']);
42
+            VoidEngine::createObject('System.Drawing.Font', 'System.Drawing', $font[0], [$font[1], 'float'], [$font[2], 'System.Drawing.FontStyle, System.Drawing']) : VoidEngine::createObject('System.Drawing.Font', 'System.Drawing', $font[0], [$font[1], 'float']);
44 43
         
45
-		$this->setProperty ('Font', $obj);
44
+		$this->setProperty('Font', $obj);
46 45
     }
47 46
 	
48
-    public function get_backgroundColor ()
47
+    public function get_backgroundColor()
49 48
     {
50
-        return $this->getProperty (['BackColor', 'color']);
49
+        return $this->getProperty(['BackColor', 'color']);
51 50
     }
52 51
 	
53
-    public function set_backgroundColor ($color)
52
+    public function set_backgroundColor($color)
54 53
     {
55
-        $this->setProperty ('BackColor', [$color, 'color']);
54
+        $this->setProperty('BackColor', [$color, 'color']);
56 55
     }
57 56
 	
58
-    public function get_foregroundColor ()
57
+    public function get_foregroundColor()
59 58
     {
60
-        return $this->getProperty (['ForeColor', 'color']);
59
+        return $this->getProperty(['ForeColor', 'color']);
61 60
     }
62 61
 	
63
-    public function set_foregroundColor ($color)
62
+    public function set_foregroundColor($color)
64 63
     {
65
-        $this->setProperty ('ForeColor', [$color, 'color']);
64
+        $this->setProperty('ForeColor', [$color, 'color']);
66 65
     }
67 66
 	
68
-    public function get_w (): int
67
+    public function get_w(): int
69 68
     {
70 69
         return $this->width;
71 70
     }
72 71
 	
73
-    public function set_w (int $w)
72
+    public function set_w(int $w)
74 73
     {
75 74
         $this->width = $w;
76 75
     }
77 76
 	
78
-    public function get_h (): int
77
+    public function get_h(): int
79 78
     {
80 79
         return $this->height;
81 80
     }
82 81
 	
83
-    public function set_h (int $h)
82
+    public function set_h(int $h)
84 83
     {
85 84
         $this->height = $h;
86 85
     }
87 86
 	
88
-    public function get_x (): int
87
+    public function get_x(): int
89 88
     {
90 89
         return $this->left;
91 90
     }
92 91
 	
93
-    public function set_x (int $x)
92
+    public function set_x(int $x)
94 93
     {
95 94
         $this->left = $x;
96 95
     }
97 96
 	
98
-    public function get_y (): int
97
+    public function get_y(): int
99 98
     {
100 99
         return $this->top;
101 100
     }
102 101
 	
103
-    public function set_y (int $y)
102
+    public function set_y(int $y)
104 103
     {
105 104
         $this->top = $y;
106 105
     }
107 106
 
108
-    public function get_bounds (): array
107
+    public function get_bounds(): array
109 108
     {
110 109
         return [
111 110
             $this->left,
@@ -115,9 +114,9 @@  discard block
 block discarded – undo
115 114
         ];
116 115
     }
117 116
 	
118
-    public function set_bounds (array $bounds)
117
+    public function set_bounds(array $bounds)
119 118
     {
120
-        $bounds = array_values ($bounds);
119
+        $bounds = array_values($bounds);
121 120
         
122 121
         $this->left   = (int) $bounds[0];
123 122
         $this->top    = (int) $bounds[1];
@@ -125,7 +124,7 @@  discard block
 block discarded – undo
125 124
         $this->height = (int) $bounds[3];
126 125
     }
127 126
 	
128
-    public function get_location (): array
127
+    public function get_location(): array
129 128
     {
130 129
         return [
131 130
             $this->left,
@@ -133,15 +132,15 @@  discard block
 block discarded – undo
133 132
         ];
134 133
     }
135 134
 	
136
-    public function set_location (array $location)
135
+    public function set_location(array $location)
137 136
     {
138
-        $location = array_values ($location);
137
+        $location = array_values($location);
139 138
         
140 139
         $this->left = $location[0];
141 140
         $this->top  = $location[1];
142 141
     }
143 142
 	
144
-    public function get_size (): array
143
+    public function get_size(): array
145 144
     {
146 145
         return [
147 146
             $this->width,
@@ -149,27 +148,27 @@  discard block
 block discarded – undo
149 148
         ];
150 149
     }
151 150
 	
152
-    public function set_size (array $size)
151
+    public function set_size(array $size)
153 152
     {
154
-        $size = array_values ($size);
153
+        $size = array_values($size);
155 154
         
156 155
         $this->width  = (int) $size[0];
157 156
         $this->height = (int) $size[1];
158 157
     }
159 158
 	
160
-    public function setBounds (int $x, int $y, int $w, int $h)
159
+    public function setBounds(int $x, int $y, int $w, int $h)
161 160
     {
162
-        $this->set_bounds ([$x, $y, $w, $h]);
161
+        $this->set_bounds([$x, $y, $w, $h]);
163 162
     }
164 163
 	
165
-    public function setLocation (int $x, int $y)
164
+    public function setLocation(int $x, int $y)
166 165
     {
167
-        $this->set_location ([$x, $y]);
166
+        $this->set_location([$x, $y]);
168 167
     }
169 168
 	
170
-    public function setSize (int $w, int $h)
169
+    public function setSize(int $w, int $h)
171 170
     {
172
-        $this->set_size ([$w, $h]);
171
+        $this->set_size([$w, $h]);
173 172
     }
174 173
 
175 174
     /*public function set_anchor (array $anchors)
@@ -182,14 +181,14 @@  discard block
 block discarded – undo
182 181
         return $this->setProperty ('Anchor', $anchor, 'int');
183 182
     }*/
184 183
 	
185
-    public function toBack ()
184
+    public function toBack()
186 185
     {
187
-        $this->callMethod ('SendToBack');
186
+        $this->callMethod('SendToBack');
188 187
     }
189 188
 	
190
-    public function toFront ()
189
+    public function toFront()
191 190
     {
192
-        $this->callMethod ('BringToFront');
191
+        $this->callMethod('BringToFront');
193 192
     }
194 193
 }
195 194
 
Please login to merge, or discard this patch.
engine/components/Image.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -7,14 +7,14 @@  discard block
 block discarded – undo
7 7
     public $class     = 'System.Drawing.Image';
8 8
     public $namespace = 'System.Drawing';
9 9
 
10
-    public function __construct ()
10
+    public function __construct()
11 11
     {
12
-        parent::__construct ($this->class);
12
+        parent::__construct($this->class);
13 13
     }
14 14
 
15
-    public function loadFromFile (string $path)
15
+    public function loadFromFile(string $path)
16 16
     {
17
-        return $this->fromFile ($path);
17
+        return $this->fromFile($path);
18 18
     }
19 19
 }
20 20
 
@@ -23,21 +23,21 @@  discard block
 block discarded – undo
23 23
     public $class     = 'System.Drawing.Icon';
24 24
     public $namespace = 'System.Drawing';
25 25
 
26
-    public function __construct (string $file)
26
+    public function __construct(string $file)
27 27
     {
28
-        parent::__construct ($this->class);
28
+        parent::__construct($this->class);
29 29
 
30
-        $this->fromFile ($file);
30
+        $this->fromFile($file);
31 31
     }
32 32
 
33
-    public function applyToObject (int $selector): void
33
+    public function applyToObject(int $selector): void
34 34
 	{
35
-		VoidEngine::setProperty ($selector, 'Icon', $this->selector);
35
+		VoidEngine::setProperty($selector, 'Icon', $this->selector);
36 36
 	}
37 37
 	
38
-	public function saveToFile (string $file): void
38
+	public function saveToFile(string $file): void
39 39
 	{
40
-		VoidEngine::callMethod ($this->selector, 'Save', $file);
40
+		VoidEngine::callMethod($this->selector, 'Save', $file);
41 41
 	}
42 42
 }
43 43
 
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     public $class     = 'System.Drawing.Bitmap';
47 47
     public $namespace = 'System.Drawing';
48 48
 
49
-    public function __construct (string $filename)
49
+    public function __construct(string $filename)
50 50
     {
51
-        parent::__construct ($this->class, $this->namespace, [$filename, 'string']);
51
+        parent::__construct($this->class, $this->namespace, [$filename, 'string']);
52 52
     }
53 53
 }
Please login to merge, or discard this patch.