@@ -108,14 +108,14 @@ discard block |
||
108 | 108 | } |
109 | 109 | |
110 | 110 | /** |
111 | - * * Создание экземпляра типа объекта |
|
112 | - * |
|
113 | - * @param mixed $objectName - полное название объекта |
|
114 | - * [@param mixed $objectGroup = null] - полное пространство имён объекта |
|
115 | - * |
|
116 | - * @return mixed - возвращает указатель на объект типа объекта или false в случае ошибки |
|
117 | - * |
|
118 | - */ |
|
111 | + * * Создание экземпляра типа объекта |
|
112 | + * |
|
113 | + * @param mixed $objectName - полное название объекта |
|
114 | + * [@param mixed $objectGroup = null] - полное пространство имён объекта |
|
115 | + * |
|
116 | + * @return mixed - возвращает указатель на объект типа объекта или false в случае ошибки |
|
117 | + * |
|
118 | + */ |
|
119 | 119 | |
120 | 120 | public static function objectType ($objectName, $objectGroup = null) |
121 | 121 | { |
@@ -550,7 +550,7 @@ discard block |
||
550 | 550 | } |
551 | 551 | |
552 | 552 | public function __get ($name) |
553 | - { |
|
553 | + { |
|
554 | 554 | if (method_exists ($this, $method = "get_$name")) |
555 | 555 | $value = $this->$method (); |
556 | 556 | |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | $size = $this->count; |
580 | 580 | $list = []; |
581 | 581 | |
582 | - for ($i = 0; $i < $size; ++$i) |
|
582 | + for ($i = 0; $i < $size; ++$i) |
|
583 | 583 | $list[] = EngineAdditions::coupleSelector (VoidEngine::getArrayValue ($this->selector, $i)); |
584 | 584 | |
585 | 585 | return $list; |
@@ -609,10 +609,10 @@ discard block |
||
609 | 609 | } |
610 | 610 | |
611 | 611 | return EngineAdditions::coupleSelector ($value, $this->selector); |
612 | - } |
|
612 | + } |
|
613 | 613 | |
614 | - public function __set ($name, $value) |
|
615 | - { |
|
614 | + public function __set ($name, $value) |
|
615 | + { |
|
616 | 616 | if (method_exists ($this, $method = "set_$name")) |
617 | 617 | try |
618 | 618 | { |
@@ -634,8 +634,8 @@ discard block |
||
634 | 634 | else $this->setProperty ($name, EngineAdditions::uncoupleSelector ($value)); |
635 | 635 | } |
636 | 636 | |
637 | - public function __call ($method, $args) |
|
638 | - { |
|
637 | + public function __call ($method, $args) |
|
638 | + { |
|
639 | 639 | $args = array_map (function ($arg) |
640 | 640 | { |
641 | 641 | return EngineAdditions::uncoupleSelector ($arg); |
@@ -651,7 +651,7 @@ discard block |
||
651 | 651 | } |
652 | 652 | |
653 | 653 | public function offsetSet ($index, $value) |
654 | - { |
|
654 | + { |
|
655 | 655 | try |
656 | 656 | { |
657 | 657 | return $index === null ? |
@@ -667,14 +667,14 @@ discard block |
||
667 | 667 | } |
668 | 668 | } |
669 | 669 | |
670 | - public function offsetGet ($index) |
|
671 | - { |
|
672 | - return EngineAdditions::coupleSelector (VoidEngine::getArrayValue ($this->selector, $index), $this->selector); |
|
670 | + public function offsetGet ($index) |
|
671 | + { |
|
672 | + return EngineAdditions::coupleSelector (VoidEngine::getArrayValue ($this->selector, $index), $this->selector); |
|
673 | 673 | } |
674 | 674 | |
675 | - public function offsetUnset ($index): void |
|
676 | - { |
|
677 | - $this->callMethod ('RemoveAt', $index); |
|
675 | + public function offsetUnset ($index): void |
|
676 | + { |
|
677 | + $this->callMethod ('RemoveAt', $index); |
|
678 | 678 | } |
679 | 679 | |
680 | 680 | public function offsetExists ($index): bool |
@@ -692,19 +692,19 @@ discard block |
||
692 | 692 | return true; |
693 | 693 | } |
694 | 694 | |
695 | - public function indexOf ($value): int |
|
696 | - { |
|
697 | - return $this->callMethod ('IndexOf', EngineAdditions::uncoupleSelector ($value)); |
|
695 | + public function indexOf ($value): int |
|
696 | + { |
|
697 | + return $this->callMethod ('IndexOf', EngineAdditions::uncoupleSelector ($value)); |
|
698 | 698 | } |
699 | 699 | |
700 | 700 | public function lastIndexOf ($value): int |
701 | - { |
|
702 | - return $this->callMethod ('LastIndexOf', EngineAdditions::uncoupleSelector ($value)); |
|
703 | - } |
|
701 | + { |
|
702 | + return $this->callMethod ('LastIndexOf', EngineAdditions::uncoupleSelector ($value)); |
|
703 | + } |
|
704 | 704 | |
705 | - public function contains ($value): bool |
|
706 | - { |
|
707 | - return $this->callMethod ('Contains', EngineAdditions::uncoupleSelector ($value)); |
|
705 | + public function contains ($value): bool |
|
706 | + { |
|
707 | + return $this->callMethod ('Contains', EngineAdditions::uncoupleSelector ($value)); |
|
708 | 708 | } |
709 | 709 | |
710 | 710 | public function foreach (callable $callback, string $type = null): void |
@@ -758,45 +758,45 @@ discard block |
||
758 | 758 | return VoidEngine::callMethod ($this->selector, $method, ...$args); |
759 | 759 | } |
760 | 760 | |
761 | - protected function getArrayProperty ($name, string $type = null) |
|
762 | - { |
|
761 | + protected function getArrayProperty ($name, string $type = null) |
|
762 | + { |
|
763 | 763 | $array = $this->getProperty ($name); |
764 | 764 | $size = VoidEngine::getProperty ($array, 'Length'); |
765 | 765 | $return = []; |
766 | 766 | |
767 | - for ($i = 0; $i < $size; ++$i) |
|
767 | + for ($i = 0; $i < $size; ++$i) |
|
768 | 768 | $return[] = VoidEngine::getArrayValue ($array, $type === null ? $i : [$i, $type]); |
769 | 769 | |
770 | 770 | VoidEngine::removeObjects ($array); |
771 | 771 | |
772 | - return $return; |
|
772 | + return $return; |
|
773 | 773 | } |
774 | 774 | |
775 | 775 | public function get_name () |
776 | - { |
|
777 | - try |
|
778 | - { |
|
779 | - return $this->getProperty ('Name'); |
|
776 | + { |
|
777 | + try |
|
778 | + { |
|
779 | + return $this->getProperty ('Name'); |
|
780 | 780 | } |
781 | 781 | |
782 | - catch (\Throwable $e) |
|
783 | - { |
|
784 | - return $this->name; |
|
785 | - } |
|
786 | - } |
|
782 | + catch (\Throwable $e) |
|
783 | + { |
|
784 | + return $this->name; |
|
785 | + } |
|
786 | + } |
|
787 | 787 | |
788 | - public function set_name (string $name) |
|
789 | - { |
|
790 | - try |
|
791 | - { |
|
792 | - $this->setProperty ('Name', $name); |
|
788 | + public function set_name (string $name) |
|
789 | + { |
|
790 | + try |
|
791 | + { |
|
792 | + $this->setProperty ('Name', $name); |
|
793 | 793 | } |
794 | 794 | |
795 | - catch (\Throwable $e) |
|
796 | - { |
|
797 | - $this->name = $name; |
|
798 | - } |
|
799 | - } |
|
795 | + catch (\Throwable $e) |
|
796 | + { |
|
797 | + $this->name = $name; |
|
798 | + } |
|
799 | + } |
|
800 | 800 | |
801 | 801 | public function __toString (): string |
802 | 802 | { |
@@ -7,9 +7,9 @@ discard block |
||
7 | 7 | public static function setObjectEvent (int $object, string $eventName, callable $function) |
8 | 8 | { |
9 | 9 | VoidEngine::setObjectEvent ($object, $eventName, function ($sender, ...$args) use ($function) |
10 | - { |
|
10 | + { |
|
11 | 11 | try |
12 | - { |
|
12 | + { |
|
13 | 13 | foreach ($args as $id => $arg) |
14 | 14 | $args[$id] = EngineAdditions::coupleSelector ($arg); |
15 | 15 | |
@@ -17,8 +17,8 @@ discard block |
||
17 | 17 | $e : new WFObject ($sender), ...$args); |
18 | 18 | } |
19 | 19 | |
20 | - catch (\Throwable $e) |
|
21 | - { |
|
20 | + catch (\Throwable $e) |
|
21 | + { |
|
22 | 22 | message ([ |
23 | 23 | 'type' => get_class ($e), |
24 | 24 | 'text' => $e->getMessage (), |
@@ -8,18 +8,18 @@ |
||
8 | 8 | chdir (CORE_DIR); |
9 | 9 | |
10 | 10 | foreach (glob ('ext/php_*.dll') as $ext) |
11 | - if (!extension_loaded (substr (basename ($ext), 4, -4))) |
|
12 | - load_extension ($ext); |
|
11 | + if (!extension_loaded (substr (basename ($ext), 4, -4))) |
|
12 | + load_extension ($ext); |
|
13 | 13 | |
14 | 14 | if (file_exists ('../engine/VoidEngine.php')) |
15 | - require '../engine/VoidEngine.php'; |
|
15 | + require '../engine/VoidEngine.php'; |
|
16 | 16 | |
17 | 17 | elseif (file_exists (FRAMEWORK_DIR .'/engine/VoidEngine.php')) |
18 | - require FRAMEWORK_DIR .'/engine/VoidEngine.php'; |
|
18 | + require FRAMEWORK_DIR .'/engine/VoidEngine.php'; |
|
19 | 19 | |
20 | 20 | else message ('VoidEngine not founded'); |
21 | 21 | |
22 | 22 | $app = '../../app/start.php'; |
23 | 23 | |
24 | 24 | if (file_exists ($app)) |
25 | - require $app; |
|
25 | + require $app; |
@@ -42,4 +42,4 @@ |
||
42 | 42 | unlink ('README.md'); |
43 | 43 | |
44 | 44 | echo ' Configuration completed'. PHP_EOL . |
45 | - ' Thank for installing KRypt0nn/VoidFramework!'. PHP_EOL . PHP_EOL; |
|
45 | + ' Thank for installing KRypt0nn/VoidFramework!'. PHP_EOL . PHP_EOL; |
@@ -8,12 +8,12 @@ |
||
8 | 8 | $package = json_decode (@file_get_contents (dirname (__DIR__) .'/qero-packages/packages.json'), true); |
9 | 9 | |
10 | 10 | define ('VoidEngine\CORE_DIR', isset ($package['github:winforms-php/VoidFramework']['basefolder']) ? |
11 | - dirname (__DIR__) .'/qero-packages/winforms-php/VoidFramework/'. $package['github:winforms-php/VoidFramework']['basefolder'] .'/core' : __DIR__); |
|
11 | + dirname (__DIR__) .'/qero-packages/winforms-php/VoidFramework/'. $package['github:winforms-php/VoidFramework']['basefolder'] .'/core' : __DIR__); |
|
12 | 12 | |
13 | 13 | # Подгружаем PHP расширения |
14 | 14 | foreach (glob (CORE_DIR .'/ext/php_*.dll') as $ext) |
15 | - if (!extension_loaded (substr (basename ($ext), 4, -4))) |
|
16 | - load_extension ($ext); |
|
15 | + if (!extension_loaded (substr (basename ($ext), 4, -4))) |
|
16 | + load_extension ($ext); |
|
17 | 17 | |
18 | 18 | # Подгружаем Qero-пакеты |
19 | 19 | require __DIR__ .'/../qero-packages/autoload.php'; |