Passed
Push — master ( 8bb4e8...554640 )
by Observer
01:12
created
app_bundle/start.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
 
10 10
 # Подгружаем PHP расширения
11 11
 foreach (glob (CORE_DIR .'/ext/php_*.dll') as $ext)
12
-	if (!extension_loaded (substr (basename ($ext), 4, -4)))
13
-		load_extension ($ext);
12
+    if (!extension_loaded (substr (basename ($ext), 4, -4)))
13
+        load_extension ($ext);
14 14
 
15 15
 # Подгружаем Qero-пакеты
16 16
 require __DIR__ .'/../qero-packages/autoload.php';
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -5,20 +5,20 @@  discard block
 block discarded – undo
5 5
 # Объявление констант
6 6
 const APP_DIR = __DIR__;
7 7
 
8
-define ('VoidEngine\CORE_DIR', dirname (__DIR__) .'/qero-packages/winforms-php/VoidFramework/core');
8
+define('VoidEngine\CORE_DIR', dirname(__DIR__).'/qero-packages/winforms-php/VoidFramework/core');
9 9
 
10 10
 # Подгружаем PHP расширения
11
-foreach (glob (CORE_DIR .'/ext/php_*.dll') as $ext)
12
-	if (!extension_loaded (substr (basename ($ext), 4, -4)))
13
-		load_extension ($ext);
11
+foreach (glob(CORE_DIR.'/ext/php_*.dll') as $ext)
12
+	if (!extension_loaded(substr(basename($ext), 4, -4)))
13
+		load_extension($ext);
14 14
 
15 15
 # Подгружаем Qero-пакеты
16
-require __DIR__ .'/../qero-packages/autoload.php';
16
+require __DIR__.'/../qero-packages/autoload.php';
17 17
 
18
-chdir (APP_DIR); // Меняем стандартную директорию на директорию приложения
18
+chdir(APP_DIR); // Меняем стандартную директорию на директорию приложения
19 19
 
20 20
 # Парсим app.vlf
21
-$parser = new VLFParser (__DIR__. '/app.vlf', [
21
+$parser = new VLFParser(__DIR__.'/app.vlf', [
22 22
     'strong_line_parser'            => false,
23 23
     'ignore_postobject_info'        => true,
24 24
     'ignore_unexpected_method_args' => true,
@@ -28,5 +28,5 @@  discard block
 block discarded – undo
28 28
 ]);
29 29
 
30 30
 # Запускаем приложение
31
-$objects = VLFInterpreter::run ($parser);
32
-$APPLICATION->run ($objects['MainForm']);
31
+$objects = VLFInterpreter::run($parser);
32
+$APPLICATION->run($objects['MainForm']);
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,9 +8,10 @@
 block discarded – undo
8 8
 define ('VoidEngine\CORE_DIR', dirname (__DIR__) .'/qero-packages/winforms-php/VoidFramework/core');
9 9
 
10 10
 # Подгружаем PHP расширения
11
-foreach (glob (CORE_DIR .'/ext/php_*.dll') as $ext)
11
+foreach (glob (CORE_DIR .'/ext/php_*.dll') as $ext) {
12 12
 	if (!extension_loaded (substr (basename ($ext), 4, -4)))
13 13
 		load_extension ($ext);
14
+}
14 15
 
15 16
 # Подгружаем Qero-пакеты
16 17
 require __DIR__ .'/../qero-packages/autoload.php';
Please login to merge, or discard this patch.
after_install.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,4 +40,4 @@
 block discarded – undo
40 40
 unlink (__FILE__);
41 41
 
42 42
 echo '    Configuration completed'. PHP_EOL .
43
-     '    Thank for installing winforms-php/VoidFramework!'. PHP_EOL . PHP_EOL;
43
+        '    Thank for installing winforms-php/VoidFramework!'. PHP_EOL . PHP_EOL;
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,43 +1,43 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-echo '    Configuring VoidFramework...'. PHP_EOL;
3
+echo '    Configuring VoidFramework...'.PHP_EOL;
4 4
 
5
-function dir_copy (string $from, string $to): bool
5
+function dir_copy(string $from, string $to): bool
6 6
 {
7
-    if (!is_dir ($from))
7
+    if (!is_dir($from))
8 8
         return false;
9 9
 
10
-    if (!is_dir ($to))
11
-        dir_create ($to);
10
+    if (!is_dir($to))
11
+        dir_create($to);
12 12
 
13
-    foreach (array_slice (scandir ($from), 2) as $file)
14
-        if (is_dir ($f = $from .'/'. $file))
15
-            dir_copy ($f, $to .'/'. $file);
13
+    foreach (array_slice(scandir($from), 2) as $file)
14
+        if (is_dir($f = $from.'/'.$file))
15
+            dir_copy($f, $to.'/'.$file);
16 16
 
17
-        else copy ($f, $to .'/'. $file);
17
+        else copy($f, $to.'/'.$file);
18 18
 
19 19
     return true;
20 20
 }
21 21
 
22
-$info = file_exists (QERO_DIR .'/qero-info.json') ?
23
-    json_decode (file_get_contents (QERO_DIR .'/qero-info.json'), true) : array ();
22
+$info = file_exists(QERO_DIR.'/qero-info.json') ?
23
+    json_decode (file_get_contents(QERO_DIR.'/qero-info.json'), true) : array();
24 24
 
25 25
 $info['scripts']['start'] = '"qero-packages/winforms-php/VoidFramework/core/VoidCore.exe" "app/start.php"';
26 26
 
27
-file_put_contents (QERO_DIR .'/qero-info.json', json_encode ($info, defined ('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0));
28
-file_put_contents (QERO_DIR .'/start.bat', '@echo off
27
+file_put_contents(QERO_DIR.'/qero-info.json', json_encode($info, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0));
28
+file_put_contents(QERO_DIR.'/start.bat', '@echo off
29 29
 '. $info['scripts']['start']);
30 30
 
31
-if (!is_dir (QERO_DIR .'/app'))
31
+if (!is_dir(QERO_DIR.'/app'))
32 32
 {
33
-    echo '    Configuring application...'. PHP_EOL;
33
+    echo '    Configuring application...'.PHP_EOL;
34 34
 
35
-    mkdir (QERO_DIR .'/app');
36
-    dir_copy (__DIR__ .'/app_bundle', QERO_DIR .'/app');
35
+    mkdir(QERO_DIR.'/app');
36
+    dir_copy(__DIR__.'/app_bundle', QERO_DIR.'/app');
37 37
 }
38 38
 
39
-Qero\dir_delete (__DIR__ .'/app_bundle');
40
-unlink (__FILE__);
39
+Qero\dir_delete(__DIR__.'/app_bundle');
40
+unlink(__FILE__);
41 41
 
42
-echo '    Configuration completed'. PHP_EOL .
43
-     '    Thank for installing winforms-php/VoidFramework!'. PHP_EOL . PHP_EOL;
42
+echo '    Configuration completed'.PHP_EOL.
43
+     '    Thank for installing winforms-php/VoidFramework!'.PHP_EOL.PHP_EOL;
Please login to merge, or discard this patch.
engine/VoidEngine.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
 const ENGINE_VERSION = '3.5.2 build-2019/09/08';
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
 block discarded – undo
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';
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 require 'components/FastColoredTextBox.php';
99 99
 require 'components/Scintilla.php';
100 100
 
101
-if (is_dir ('extensions'))
102
-    foreach (scandir ('extensions') as $ext)
103
-        if (is_dir ('extensions/'. $ext) && file_exists ($ext = 'extensions/'. $ext .'/main.php'))
101
+if (is_dir('extensions'))
102
+    foreach (scandir('extensions') as $ext)
103
+        if (is_dir('extensions/'.$ext) && file_exists($ext = 'extensions/'.$ext.'/main.php'))
104 104
             require $ext;
Please login to merge, or discard this patch.