Passed
Pull Request — master (#6)
by coExp
01:49
created
tests/MultipleBarTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     public function test_one_line()
44 44
     {
45 45
         $mb = (new MultipleBar($this->output))
46
-            ->setTitle(__METHOD__.': '.(new DateTime())->format(DATE_ATOM))
46
+            ->setTitle(__METHOD__ . ': ' . (new DateTime())->format(DATE_ATOM))
47 47
             ->addProgressBar();
48 48
 
49 49
         $mb->getProgressBarByIndex(0)
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         $this->assertInstanceOf(ProgressBar::class, $mb->getProgressBarByIndex(0));
53 53
         $this->assertNull($mb->getProgressBarByIndex(1));
54 54
 
55
-        for ($i = 0 ; $i < 20 ; $i++) {
55
+        for ($i = 0; $i < 20; $i++) {
56 56
             $mb->getProgressBarByIndex(0)->advance();
57 57
             $mb->show();
58 58
             //usleep(100000);
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $mb = (new MultipleBar($this->output))
70 70
             ->setStdError(true)
71
-            ->setTitle(__METHOD__.': '.(new DateTime())->format(DATE_ATOM))
71
+            ->setTitle(__METHOD__ . ': ' . (new DateTime())->format(DATE_ATOM))
72 72
             ->addProgressBar();
73 73
 
74 74
         $mb->getProgressBarByIndex(0)
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $this->assertInstanceOf(ProgressBar::class, $mb->getProgressBarByIndex(0));
78 78
         $this->assertNull($mb->getProgressBarByIndex(1));
79 79
 
80
-        for ($i = 0 ; $i < 20 ; $i++) {
80
+        for ($i = 0; $i < 20; $i++) {
81 81
             $mb->getProgressBarByIndex(0)->advance();
82 82
             $mb->show();
83 83
             // usleep(100000);
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     public function test_two_line_unknown_length()
90 90
     {
91 91
         $mb = (new MultipleBar($this->output))
92
-            ->setTitle(__METHOD__.': '.(new DateTime())->format(DATE_ATOM))
92
+            ->setTitle(__METHOD__ . ': ' . (new DateTime())->format(DATE_ATOM))
93 93
             ->addProgressBarByName(['Master']);
94 94
 
95 95
         /** @see https://symfony.com/doc/current/components/console/helpers/progressbar.html#custom-formats */
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
         $this->assertInstanceOf(ProgressBar::class, $mb->getProgressBarByName('Master'));
104 104
         $this->assertNull($mb->getProgressBarByName('Child'));
105 105
 
106
-        for ($i = 0 ; $i < 4 ; $i++) {
106
+        for ($i = 0; $i < 4; $i++) {
107 107
             $mb->addProgressBarByName(['Child']);
108 108
 
109 109
             $this->assertInstanceOf(ProgressBar::class, $mb->getProgressBarByName('Child'));
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $length = [23, 24, 25, 26]; // total = 98
135 135
 
136 136
         $mb = (new MultipleBar($this->output))
137
-            ->setTitle(__METHOD__.': '.(new DateTime())->format(DATE_ATOM))
137
+            ->setTitle(__METHOD__ . ': ' . (new DateTime())->format(DATE_ATOM))
138 138
             ->addProgressBarByName(['Master', 'Child']);
139 139
 
140 140
         /** @see https://symfony.com/doc/current/components/console/helpers/progressbar.html#custom-formats */
Please login to merge, or discard this patch.