Completed
Pull Request — master (#22)
by
unknown
01:47
created
Command/SmokeTestRunCommand.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             $testNames = $this->getTestNames();
133 133
             $smokeTests = \array_filter(
134 134
                 $smokeTests,
135
-                function ($key) use ($test) {
135
+                function($key) use ($test) {
136 136
                     return $key === $test;
137 137
                 },
138 138
                 ARRAY_FILTER_USE_KEY
@@ -150,8 +150,7 @@  discard block
 block discarded – undo
150 150
             // If no label was passed as parameter it will filter by skip (wip) labels
151 151
             if (!$allTests) {
152 152
                 $smokeTests = !empty($labels) ?
153
-                    $this->filterByLabels($smokeTests, $labels, $skipped) :
154
-                    $this->filterSkipLabels($smokeTests, $skipLabels, $skipped);;
153
+                    $this->filterByLabels($smokeTests, $labels, $skipped) : $this->filterSkipLabels($smokeTests, $skipLabels, $skipped); ;
155 154
             }
156 155
 
157 156
             // filter by skiptTests (id) options
@@ -343,7 +342,7 @@  discard block
 block discarded – undo
343 342
      */
344 343
     public function filterSkipLabels($smokeTests = [], $skipLabels, &$skipped): array
345 344
     {
346
-        return array_filter($smokeTests, function ($smokeTestInfo) use ($skipLabels, &$skipped) {
345
+        return array_filter($smokeTests, function($smokeTestInfo) use ($skipLabels, &$skipped) {
347 346
             $key = $smokeTestInfo['id'];
348 347
             if (!\in_array($skipLabels[0], $smokeTestInfo['labels'])) {
349 348
                 return $smokeTestInfo;
@@ -360,7 +359,7 @@  discard block
 block discarded – undo
360 359
      */
361 360
     public function filterByLabels($smokeTests = [], $labels, &$skipped): array
362 361
     {
363
-        return \array_filter($smokeTests, function ($smokeTestInfo) use ($labels, &$skipped) {
362
+        return \array_filter($smokeTests, function($smokeTestInfo) use ($labels, &$skipped) {
364 363
             $key = $smokeTestInfo['id'];
365 364
             if (!empty(\array_intersect($labels, $smokeTestInfo['labels']))) {
366 365
                 return $smokeTestInfo;
@@ -380,7 +379,7 @@  discard block
 block discarded – undo
380 379
         if (!empty($skipTests)) {
381 380
             $smokeTests = \array_filter(
382 381
                 $smokeTests,
383
-                function ($smokeTestInfo) use ($skipTests, &$skipped) {
382
+                function($smokeTestInfo) use ($skipTests, &$skipped) {
384 383
                     $key = $smokeTestInfo['id'];
385 384
                     if (\in_array($key, $skipTests)) {
386 385
                         $skipped[$key] = $smokeTestInfo;
Please login to merge, or discard this patch.