Passed
Push — master ( 72f7b3...4061f4 )
by Observer
02:00
created
bin/qero-packages/winforms-php/VoidBuilder/VoidBuilder.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
 namespace VoidBuilder;
24 24
 
25
-if (is_dir ('qero-packages'))
25
+if (is_dir('qero-packages'))
26 26
     require_once 'qero-packages/autoload.php';
27 27
 
28 28
 require 'php/Builder.php';
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,8 +22,9 @@
 block discarded – undo
22 22
 
23 23
 namespace VoidBuilder;
24 24
 
25
-if (is_dir ('qero-packages'))
25
+if (is_dir ('qero-packages')) {
26 26
     require_once 'qero-packages/autoload.php';
27
+}
27 28
 
28 29
 require 'php/Builder.php';
29 30
 require 'php/Joiner.php';
Please login to merge, or discard this patch.
bin/qero-packages/winforms-php/VoidBuilder/php/Joiner.php 2 patches
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -6,17 +6,17 @@  discard block
 block discarded – undo
6 6
 {
7 7
     public $path;
8 8
 
9
-    public function __construct (string $path)
9
+    public function __construct(string $path)
10 10
     {
11
-        if (!is_file ($path))
12
-            throw new \Exception ('Wrong $path paeam');
11
+        if (!is_file($path))
12
+            throw new \Exception('Wrong $path paeam');
13 13
         
14 14
         $this->path = $path;
15 15
     }
16 16
 
17
-    public function toXML (): string
17
+    public function toXML(): string
18 18
     {
19
-        return '<File><Type>2</Type><Name>'. basename ($this->path) .'</Name><File>'. $this->path .'</File><ActiveX>False</ActiveX><ActiveXInstall>False</ActiveXInstall><Action>0</Action><OverwriteDateTime>False</OverwriteDateTime><OverwriteAttributes>False</OverwriteAttributes><PassCommandLine>False</PassCommandLine><HideFromDialogs>0</HideFromDialogs></File>';
19
+        return '<File><Type>2</Type><Name>'.basename($this->path).'</Name><File>'.$this->path.'</File><ActiveX>False</ActiveX><ActiveXInstall>False</ActiveXInstall><Action>0</Action><OverwriteDateTime>False</OverwriteDateTime><OverwriteAttributes>False</OverwriteAttributes><PassCommandLine>False</PassCommandLine><HideFromDialogs>0</HideFromDialogs></File>';
20 20
     }
21 21
 }
22 22
 
@@ -25,24 +25,24 @@  discard block
 block discarded – undo
25 25
     public $path;
26 26
     public $files = [];
27 27
 
28
-    public function __construct (string $path)
28
+    public function __construct(string $path)
29 29
     {
30
-        if (!is_dir ($path))
31
-            throw new \Exception ('Wrong $path param');
30
+        if (!is_dir($path))
31
+            throw new \Exception('Wrong $path param');
32 32
         
33 33
         $this->path = $path;
34 34
 
35
-        foreach (array_slice (scandir ($path), 2) as $file)
36
-            $this->files[] = is_dir ($file = $path .'/'. $file) ?
37
-                new Folder ($file) : new File ($file);
35
+        foreach (array_slice(scandir($path), 2) as $file)
36
+            $this->files[] = is_dir($file = $path.'/'.$file) ?
37
+                new Folder($file) : new File($file);
38 38
     }
39 39
 
40
-    public function toXML (): string
40
+    public function toXML(): string
41 41
     {
42
-        return '<File><Type>3</Type><Name>'. basename ($this->path) .'</Name><Action>0</Action><OverwriteDateTime>False</OverwriteDateTime><OverwriteAttributes>False</OverwriteAttributes><HideFromDialogs>0</HideFromDialogs><Files>'. implode ('', array_map (function ($item)
42
+        return '<File><Type>3</Type><Name>'.basename($this->path).'</Name><Action>0</Action><OverwriteDateTime>False</OverwriteDateTime><OverwriteAttributes>False</OverwriteAttributes><HideFromDialogs>0</HideFromDialogs><Files>'.implode('', array_map(function($item)
43 43
         {
44
-            return $item->toXML ();
45
-        }, $this->files)) .'</Files></File>';
44
+            return $item->toXML();
45
+        }, $this->files)).'</Files></File>';
46 46
     }
47 47
 }
48 48
 
@@ -52,44 +52,44 @@  discard block
 block discarded – undo
52 52
     public $output;
53 53
     public $files = [];
54 54
 
55
-    public function __construct (string $input, string $output)
55
+    public function __construct(string $input, string $output)
56 56
     {
57
-        if (!is_file ($input))
58
-            throw new \Exception ('Wrong $input param');
57
+        if (!is_file($input))
58
+            throw new \Exception('Wrong $input param');
59 59
 
60 60
         $this->input  = $input;
61 61
         $this->output = $output;
62 62
     }
63 63
 
64
-    public function add (string $path): Joiner
64
+    public function add(string $path): Joiner
65 65
     {
66
-        $this->files[] = is_dir ($path) ?
67
-            new Folder ($path) : new File ($path);
66
+        $this->files[] = is_dir($path) ?
67
+            new Folder($path) : new File($path);
68 68
 
69 69
         return $this;
70 70
     }
71 71
 
72
-    public function getEVB (): string
72
+    public function getEVB(): string
73 73
     {
74
-        return str_replace ([
74
+        return str_replace([
75 75
             '%INPUT_FILE%',
76 76
             '%OUTPUT_FILE%',
77 77
             '%FILES%'
78 78
         ], [
79 79
             $this->input,
80 80
             $this->output,
81
-            implode ('', array_map (function ($item)
81
+            implode('', array_map(function($item)
82 82
             {
83
-                return $item->toXML ();
83
+                return $item->toXML();
84 84
             }, $this->files))
85
-        ], file_get_contents (dirname (__DIR__) .'/system/stub.evb'));
85
+        ], file_get_contents(dirname(__DIR__).'/system/stub.evb'));
86 86
     }
87 87
 
88
-    public function join (): string
88
+    public function join(): string
89 89
     {
90
-        file_put_contents (dirname (__DIR__) .'/system/temp.evb', $this->getEVB ());
91
-        $return = shell_exec ('"'. dirname (__DIR__) .'/system/enigmavbconsole.exe" "system/temp.evb"');
92
-        unlink (dirname (__DIR__) .'/system/temp.evb');
90
+        file_put_contents(dirname(__DIR__).'/system/temp.evb', $this->getEVB());
91
+        $return = shell_exec('"'.dirname(__DIR__).'/system/enigmavbconsole.exe" "system/temp.evb"');
92
+        unlink(dirname(__DIR__).'/system/temp.evb');
93 93
 
94 94
         return $return;
95 95
     }
Please login to merge, or discard this patch.
Braces   +12 added lines, -8 removed lines patch added patch discarded remove patch
@@ -8,8 +8,9 @@  discard block
 block discarded – undo
8 8
 
9 9
     public function __construct (string $path)
10 10
     {
11
-        if (!is_file ($path))
12
-            throw new \Exception ('Wrong $path paeam');
11
+        if (!is_file ($path)) {
12
+                    throw new \Exception ('Wrong $path paeam');
13
+        }
13 14
         
14 15
         $this->path = $path;
15 16
     }
@@ -27,14 +28,16 @@  discard block
 block discarded – undo
27 28
 
28 29
     public function __construct (string $path)
29 30
     {
30
-        if (!is_dir ($path))
31
-            throw new \Exception ('Wrong $path param');
31
+        if (!is_dir ($path)) {
32
+                    throw new \Exception ('Wrong $path param');
33
+        }
32 34
         
33 35
         $this->path = $path;
34 36
 
35
-        foreach (array_slice (scandir ($path), 2) as $file)
36
-            $this->files[] = is_dir ($file = $path .'/'. $file) ?
37
+        foreach (array_slice (scandir ($path), 2) as $file) {
38
+                    $this->files[] = is_dir ($file = $path .'/'. $file) ?
37 39
                 new Folder ($file) : new File ($file);
40
+        }
38 41
     }
39 42
 
40 43
     public function toXML (): string
@@ -54,8 +57,9 @@  discard block
 block discarded – undo
54 57
 
55 58
     public function __construct (string $input, string $output)
56 59
     {
57
-        if (!is_file ($input))
58
-            throw new \Exception ('Wrong $input param');
60
+        if (!is_file ($input)) {
61
+                    throw new \Exception ('Wrong $input param');
62
+        }
59 63
 
60 64
         $this->input  = $input;
61 65
         $this->output = $output;
Please login to merge, or discard this patch.
winforms-php/VoidFramework/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.
bin/qero-packages/winforms-php/VoidFramework/engine/components/MainMenu.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
 
9 9
     protected $items;
10 10
 
11
-    public function __construct ()
11
+    public function __construct()
12 12
     {
13
-        parent::__construct ($this->class);
13
+        parent::__construct($this->class);
14 14
 
15
-        $this->items = new WFObject ($this->getProperty ('MenuItems'));
15
+        $this->items = new WFObject($this->getProperty('MenuItems'));
16 16
     }
17 17
 }
18 18
 
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 
23 23
     protected $items;
24 24
 
25
-    public function __construct ()
25
+    public function __construct()
26 26
     {
27
-        parent::__construct ($this->class);
27
+        parent::__construct($this->class);
28 28
 
29
-        $this->items = new WFObject ($this->getProperty ('MenuItems'));
29
+        $this->items = new WFObject($this->getProperty('MenuItems'));
30 30
     }
31 31
 }
32 32
 
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
 
37 37
     protected $items;
38 38
 
39
-    public function __construct (string $text = '')
39
+    public function __construct(string $text = '')
40 40
     {
41
-        parent::__construct (null, $this->class);
41
+        parent::__construct(null, $this->class);
42 42
 
43 43
         $this->text  = $text;
44
-        $this->items = new WFObject ($this->getProperty ('MenuItems'));
44
+        $this->items = new WFObject($this->getProperty('MenuItems'));
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
qero-packages/winforms-php/VoidFramework/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.
qero-packages/winforms-php/VoidFramework/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.
bin/qero-packages/winforms-php/VoidFramework/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.
qero-packages/winforms-php/VoidFramework/engine/components/TabControl.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
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'));
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@  discard block
 block discarded – undo
8 8
 
9 9
     protected $items;
10 10
 
11
-    public function __construct (Component $parent = null)
11
+    public function __construct(Component $parent = null)
12 12
 	{
13
-        parent::__construct ($parent, $this->class);
13
+        parent::__construct($parent, $this->class);
14 14
 
15
-        $this->items = new WFObject ($this->getProperty ('TabPages'));
15
+        $this->items = new WFObject($this->getProperty('TabPages'));
16 16
     }
17 17
 }
18 18
 
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
 {
21 21
     public $class = 'System.Windows.Forms.TabPage';
22 22
 
23
-    public function __construct (string $text = '')
23
+    public function __construct(string $text = '')
24 24
     {
25
-        parent::__construct (null, $this->class);
25
+        parent::__construct(null, $this->class);
26 26
 
27 27
         $this->text = $text;
28 28
     }
Please login to merge, or discard this patch.
bin/qero-packages/winforms-php/VoidFramework/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.