@@ -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 () |
@@ -4,36 +4,36 @@ |
||
4 | 4 | |
5 | 5 | class Chart extends Control |
6 | 6 | { |
7 | - public $class = 'System.Windows.Forms.DataVisualization.Charting.Chart'; |
|
8 | - public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
7 | + public $class = 'System.Windows.Forms.DataVisualization.Charting.Chart'; |
|
8 | + public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
9 | 9 | } |
10 | 10 | |
11 | 11 | class Annotation extends Control |
12 | 12 | { |
13 | - public $class = 'System.Windows.Forms.DataVisualization.Charting.Annotation'; |
|
14 | - public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
13 | + public $class = 'System.Windows.Forms.DataVisualization.Charting.Annotation'; |
|
14 | + public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | class ChartArea extends Control |
18 | 18 | { |
19 | - public $class = 'System.Windows.Forms.DataVisualization.Charting.ChartArea'; |
|
20 | - public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
19 | + public $class = 'System.Windows.Forms.DataVisualization.Charting.ChartArea'; |
|
20 | + public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | class Legend extends Control |
24 | 24 | { |
25 | - public $class = 'System.Windows.Forms.DataVisualization.Charting.Legend'; |
|
26 | - public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
25 | + public $class = 'System.Windows.Forms.DataVisualization.Charting.Legend'; |
|
26 | + public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | class Series extends Control |
30 | 30 | { |
31 | - public $class = 'System.Windows.Forms.DataVisualization.Charting.Series'; |
|
32 | - public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
31 | + public $class = 'System.Windows.Forms.DataVisualization.Charting.Series'; |
|
32 | + public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
33 | 33 | } |
34 | 34 | |
35 | 35 | class Title extends Control |
36 | 36 | { |
37 | - public $class = 'System.Windows.Forms.DataVisualization.Charting.Title'; |
|
38 | - public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
37 | + public $class = 'System.Windows.Forms.DataVisualization.Charting.Title'; |
|
38 | + public $namespace = 'System.Windows.Forms.DataVisualization'; |
|
39 | 39 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | protected $items; |
10 | 10 | |
11 | 11 | public function __construct (Component $parent = null) |
12 | - { |
|
12 | + { |
|
13 | 13 | parent::__construct ($parent, $this->class); |
14 | 14 | |
15 | 15 | $this->items = new WFObject ($this->getProperty ('TabPages')); |
@@ -4,5 +4,5 @@ |
||
4 | 4 | |
5 | 5 | class CheckBox extends Control |
6 | 6 | { |
7 | - public $class = 'System.Windows.Forms.CheckBox'; |
|
7 | + public $class = 'System.Windows.Forms.CheckBox'; |
|
8 | 8 | } |
@@ -12,11 +12,11 @@ |
||
12 | 12 | protected $styles; |
13 | 13 | |
14 | 14 | public function __construct (Component $parent = null) |
15 | - { |
|
15 | + { |
|
16 | 16 | parent::__construct ($parent, $this->class); |
17 | 17 | |
18 | 18 | $this->styles = $this->getProperty ('Styles'); |
19 | - } |
|
19 | + } |
|
20 | 20 | |
21 | 21 | public function resetSyntax () |
22 | 22 | { |
@@ -6,6 +6,6 @@ |
||
6 | 6 | |
7 | 7 | class FastColoredTextBox extends NoVisual |
8 | 8 | { |
9 | - public $class = 'FastColoredTextBoxNS.FastColoredTextBox'; |
|
9 | + public $class = 'FastColoredTextBoxNS.FastColoredTextBox'; |
|
10 | 10 | public $namespace = 'FastColoredTextBox'; |
11 | 11 | } |
@@ -10,12 +10,12 @@ |
||
10 | 10 | protected $panel2; |
11 | 11 | |
12 | 12 | public function __construct (Component $parent = null) |
13 | - { |
|
13 | + { |
|
14 | 14 | parent::__construct ($parent, $this->class); |
15 | 15 | |
16 | 16 | $this->panel1 = new SplitterPanel ($this->getProperty ('Panel1')); |
17 | 17 | $this->panel2 = new SplitterPanel ($this->getProperty ('Panel2')); |
18 | - } |
|
18 | + } |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | class SplitterPanel extends Control |
@@ -49,7 +49,7 @@ |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | public function dispose (): void |
52 | - { |
|
52 | + { |
|
53 | 53 | foreach (array_diff (get_object_vars ($this), ['selector']) as $param => $value) |
54 | 54 | { |
55 | 55 | if (is_int ($value)) |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | { |
48 | 48 | return [ |
49 | 49 | 'text' => $e->getMessage (), |
50 | - 'line' => $e->getLine () |
|
50 | + 'line' => $e->getLine () |
|
51 | 51 | ]; |
52 | 52 | } |
53 | 53 | |
@@ -165,17 +165,17 @@ discard block |
||
165 | 165 | |
166 | 166 | function substr_icount (string $haystack, string $needle, ...$params): int |
167 | 167 | { |
168 | - return substr_count (strtolower ($haystack), strtolower ($needle), ...$params); |
|
168 | + return substr_count (strtolower ($haystack), strtolower ($needle), ...$params); |
|
169 | 169 | } |
170 | 170 | |
171 | 171 | function str_replace_assoc (string $subject, array $replacements): string |
172 | 172 | { |
173 | - return str_replace (array_keys ($replacements), array_values ($replacements), $subject); |
|
173 | + return str_replace (array_keys ($replacements), array_values ($replacements), $subject); |
|
174 | 174 | } |
175 | 175 | |
176 | 176 | function pre (...$args): void |
177 | 177 | { |
178 | - message (sizeof ($args) < 2 ? current ($args) : $args); |
|
178 | + message (sizeof ($args) < 2 ? current ($args) : $args); |
|
179 | 179 | } |
180 | 180 | |
181 | 181 | function messageBox (string $message, string $caption = '', ...$args) |
@@ -308,9 +308,9 @@ discard block |
||
308 | 308 | } |
309 | 309 | |
310 | 310 | catch (\Throwable $e) |
311 | - { |
|
312 | - continue; |
|
313 | - } |
|
311 | + { |
|
312 | + continue; |
|
313 | + } |
|
314 | 314 | |
315 | 315 | return false; |
316 | 316 | } |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | call_user_func ($function, $self); |
334 | 334 | }; |
335 | 335 | |
336 | - $timer->start (); |
|
336 | + $timer->start (); |
|
337 | 337 | |
338 | 338 | return $timer; |
339 | 339 | } |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | |
354 | 354 | $timer->start (); |
355 | 355 | |
356 | - return $timer; |
|
356 | + return $timer; |
|
357 | 357 | } |
358 | 358 | |
359 | 359 | class Clipboard |