Passed
Branch master (4b7a9f)
by Observer
01:48
created
engine/components/FolderBrowserDialog.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.FolderBrowserDialog';
8 8
 	
9
-    public function get_path ()
9
+    public function get_path()
10 10
     {
11
-        return $this->getProperty ('SelectedPath');
11
+        return $this->getProperty('SelectedPath');
12 12
     }
13 13
 }
Please login to merge, or discard this patch.
engine/components/Process.php 3 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -4,28 +4,28 @@
 block discarded – undo
4 4
 
5 5
 class Process extends Component
6 6
 {
7
-	public $class 	  = 'System.Diagnostics.Process';
8
-	public $namespace = 'System';
7
+    public $class 	  = 'System.Diagnostics.Process';
8
+    public $namespace = 'System';
9 9
 
10
-	public function __construct (int $pid = null)
11
-	{
10
+    public function __construct (int $pid = null)
11
+    {
12 12
         $this->selector = VoidEngine::createClass ($this->class, 'System');
13 13
 
14
-		if ($pid !== null)
14
+        if ($pid !== null)
15 15
             $this->selector = $pid == getmypid () ?
16 16
                 VoidEngine::callMethod ($this->selector, 'GetCurrentProcess') :
17 17
                 VoidEngine::callMethod ($this->selector, 'GetProcessById', $pid);
18 18
 
19
-		Components::addComponent ($this->selector, $this);
20
-	}
19
+        Components::addComponent ($this->selector, $this);
20
+    }
21 21
 	
22
-	public static function getProcessById (int $pid)
23
-	{
24
-		return new self ($pid);
25
-	}
22
+    public static function getProcessById (int $pid)
23
+    {
24
+        return new self ($pid);
25
+    }
26 26
 	
27
-	public static function getCurrentProcess ()
28
-	{
29
-		return new self (getmypid ());
30
-	}
27
+    public static function getCurrentProcess ()
28
+    {
29
+        return new self (getmypid ());
30
+    }
31 31
 }
Please login to merge, or discard this patch.
Spacing   +10 added lines, -11 removed lines patch added patch discarded remove patch
@@ -4,28 +4,27 @@
 block discarded – undo
4 4
 
5 5
 class Process extends Component
6 6
 {
7
-	public $class 	  = 'System.Diagnostics.Process';
7
+	public $class = 'System.Diagnostics.Process';
8 8
 	public $namespace = 'System';
9 9
 
10
-	public function __construct (int $pid = null)
10
+	public function __construct(int $pid = null)
11 11
 	{
12
-        $this->selector = VoidEngine::createClass ($this->class, 'System');
12
+        $this->selector = VoidEngine::createClass($this->class, 'System');
13 13
 
14 14
 		if ($pid !== null)
15
-            $this->selector = $pid == getmypid () ?
16
-                VoidEngine::callMethod ($this->selector, 'GetCurrentProcess') :
17
-                VoidEngine::callMethod ($this->selector, 'GetProcessById', $pid);
15
+            $this->selector = $pid == getmypid() ?
16
+                VoidEngine::callMethod($this->selector, 'GetCurrentProcess') : VoidEngine::callMethod($this->selector, 'GetProcessById', $pid);
18 17
 
19
-		Components::addComponent ($this->selector, $this);
18
+		Components::addComponent($this->selector, $this);
20 19
 	}
21 20
 	
22
-	public static function getProcessById (int $pid)
21
+	public static function getProcessById(int $pid)
23 22
 	{
24
-		return new self ($pid);
23
+		return new self($pid);
25 24
 	}
26 25
 	
27
-	public static function getCurrentProcess ()
26
+	public static function getCurrentProcess()
28 27
 	{
29
-		return new self (getmypid ());
28
+		return new self(getmypid());
30 29
 	}
31 30
 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,10 +11,11 @@
 block discarded – undo
11 11
 	{
12 12
         $this->selector = VoidEngine::createClass ($this->class, 'System');
13 13
 
14
-		if ($pid !== null)
15
-            $this->selector = $pid == getmypid () ?
14
+		if ($pid !== null) {
15
+		            $this->selector = $pid == getmypid () ?
16 16
                 VoidEngine::callMethod ($this->selector, 'GetCurrentProcess') :
17 17
                 VoidEngine::callMethod ($this->selector, 'GetProcessById', $pid);
18
+		}
18 19
 
19 20
 		Components::addComponent ($this->selector, $this);
20 21
 	}
Please login to merge, or discard this patch.
engine/components/Chromium.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
     public $namespace = 'CefSharp.WinForms';
9 9
 
10 10
     public function __construct (Component $parent = null)
11
-	{
12
-		parent::__construct ($parent, $this->class, 'about:blank', null);
13
-	}
11
+    {
12
+        parent::__construct ($parent, $this->class, 'about:blank', null);
13
+    }
14 14
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
     public $class     = 'CefSharp.WinForms.ChromiumWebBrowser';
8 8
     public $namespace = 'CefSharp.WinForms';
9 9
 
10
-    public function __construct (Component $parent = null)
10
+    public function __construct(Component $parent = null)
11 11
 	{
12
-		parent::__construct ($parent, $this->class, 'about:blank', null);
12
+		parent::__construct($parent, $this->class, 'about:blank', null);
13 13
 	}
14 14
 }
Please login to merge, or discard this patch.
engine/components/MessageBox.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.MessageBox';
8 8
 
9
-    public function __construct ()
9
+    public function __construct()
10 10
     {
11
-        parent::__construct ($this->class);
11
+        parent::__construct($this->class);
12 12
     }
13 13
 }
Please login to merge, or discard this patch.
engine/components/CheckBox.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,5 +4,5 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
engine/components/Chart.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,36 +4,36 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,36 +4,36 @@
 block discarded – undo
4 4
 
5 5
 class Chart extends Control
6 6
 {
7
-	public $class 	  = 'System.Windows.Forms.DataVisualization.Charting.Chart';
7
+	public $class = 'System.Windows.Forms.DataVisualization.Charting.Chart';
8 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';
13
+	public $class = 'System.Windows.Forms.DataVisualization.Charting.Annotation';
14 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';
19
+	public $class = 'System.Windows.Forms.DataVisualization.Charting.ChartArea';
20 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';
25
+	public $class = 'System.Windows.Forms.DataVisualization.Charting.Legend';
26 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';
31
+	public $class = 'System.Windows.Forms.DataVisualization.Charting.Series';
32 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';
37
+	public $class = 'System.Windows.Forms.DataVisualization.Charting.Title';
38 38
 	public $namespace = 'System.Windows.Forms.DataVisualization';
39 39
 }
Please login to merge, or discard this patch.
engine/components/ListView.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -11,9 +11,9 @@  discard block
 block discarded – undo
11 11
 {
12 12
     public $class = 'System.Windows.Forms.ListViewItem';
13 13
 
14
-    public function __construct (string $text = '')
14
+    public function __construct(string $text = '')
15 15
     {
16
-        parent::__construct (null, $this->class);
16
+        parent::__construct(null, $this->class);
17 17
 
18 18
         $this->text = $text;
19 19
     }
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 {
24 24
     public $class = 'System.Windows.Forms.ColumnHeader';
25 25
 
26
-    public function __construct (string $text = '')
26
+    public function __construct(string $text = '')
27 27
     {
28
-        parent::__construct (null, $this->class);
28
+        parent::__construct(null, $this->class);
29 29
 
30 30
         $this->text = $text;
31 31
     }
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
 {
36 36
     public $class = 'System.Windows.Forms.ListViewGroup';
37 37
 
38
-    public function __construct (string $text = '')
38
+    public function __construct(string $text = '')
39 39
     {
40
-        parent::__construct (null, $this->class);
40
+        parent::__construct(null, $this->class);
41 41
 
42 42
         $this->header = $text;
43 43
     }
Please login to merge, or discard this patch.
core/script.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,14 +8,14 @@
 block discarded – undo
8 8
 chdir (CORE_DIR);
9 9
 
10 10
 if (file_exists ('../engine/VoidEngine.php'))
11
-	require '../engine/VoidEngine.php';
11
+    require '../engine/VoidEngine.php';
12 12
 
13 13
 elseif (file_exists (FRAMEWORK_DIR .'/engine/VoidEngine.php'))
14
-	require FRAMEWORK_DIR .'/engine/VoidEngine.php';
14
+    require FRAMEWORK_DIR .'/engine/VoidEngine.php';
15 15
 
16 16
 else message ('VoidEngine not founded');
17 17
 
18 18
 $app = '../../app/start.php';
19 19
 
20 20
 if (file_exists ($app))
21
-	require $app;
21
+    require $app;
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,20 +2,20 @@
 block discarded – undo
2 2
 
3 3
 namespace VoidEngine;
4 4
 
5
-define ('FRAMEWORK_DIR', getenv ('AppData') .'\VoidFramework');
5
+define('FRAMEWORK_DIR', getenv('AppData').'\VoidFramework');
6 6
 
7 7
 const CORE_DIR = __DIR__;
8
-chdir (CORE_DIR);
8
+chdir(CORE_DIR);
9 9
 
10
-if (file_exists ('../engine/VoidEngine.php'))
10
+if (file_exists('../engine/VoidEngine.php'))
11 11
 	require '../engine/VoidEngine.php';
12 12
 
13
-elseif (file_exists (FRAMEWORK_DIR .'/engine/VoidEngine.php'))
14
-	require FRAMEWORK_DIR .'/engine/VoidEngine.php';
13
+elseif (file_exists(FRAMEWORK_DIR.'/engine/VoidEngine.php'))
14
+	require FRAMEWORK_DIR.'/engine/VoidEngine.php';
15 15
 
16
-else message ('VoidEngine not founded');
16
+else message('VoidEngine not founded');
17 17
 
18 18
 $app = '../../app/start.php';
19 19
 
20
-if (file_exists ($app))
20
+if (file_exists($app))
21 21
 	require $app;
Please login to merge, or discard this patch.
Braces   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -7,15 +7,16 @@
 block discarded – undo
7 7
 const CORE_DIR = __DIR__;
8 8
 chdir (CORE_DIR);
9 9
 
10
-if (file_exists ('../engine/VoidEngine.php'))
10
+if (file_exists ('../engine/VoidEngine.php')) {
11 11
 	require '../engine/VoidEngine.php';
12
-
13
-elseif (file_exists (FRAMEWORK_DIR .'/engine/VoidEngine.php'))
12
+} elseif (file_exists (FRAMEWORK_DIR .'/engine/VoidEngine.php')) {
14 13
 	require FRAMEWORK_DIR .'/engine/VoidEngine.php';
15
-
16
-else message ('VoidEngine not founded');
14
+} else {
15
+    message ('VoidEngine not founded');
16
+}
17 17
 
18 18
 $app = '../../app/start.php';
19 19
 
20
-if (file_exists ($app))
20
+if (file_exists ($app)) {
21 21
 	require $app;
22
+}
Please login to merge, or discard this patch.