Skip to content

Commit ee525b7

Browse files
committed
coding style
1 parent 2730ed9 commit ee525b7

File tree

2 files changed

+33
-33
lines changed

2 files changed

+33
-33
lines changed

src/Framework/DataProvider.php

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -77,23 +77,23 @@ public static function testQuery(string $input, string $query): bool
7777
private static function compare($l, string $operator, $r): bool
7878
{
7979
switch ($operator) {
80-
case '>':
81-
return $l > $r;
82-
case '=>':
83-
case '>=':
84-
return $l >= $r;
85-
case '<':
86-
return $l < $r;
87-
case '=<':
88-
case '<=':
89-
return $l <= $r;
90-
case '=':
91-
case '==':
92-
return $l == $r;
93-
case '!':
94-
case '!=':
95-
case '<>':
96-
return $l != $r;
80+
case '>':
81+
return $l > $r;
82+
case '=>':
83+
case '>=':
84+
return $l >= $r;
85+
case '<':
86+
return $l < $r;
87+
case '=<':
88+
case '<=':
89+
return $l <= $r;
90+
case '=':
91+
case '==':
92+
return $l == $r;
93+
case '!':
94+
case '!=':
95+
case '<>':
96+
return $l != $r;
9797
}
9898
throw new \InvalidArgumentException("Unknown operator $operator.");
9999
}

src/Runner/CliTester.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -193,22 +193,22 @@ private function createRunner(): Runner
193193
$runner->setTempDirectory($this->options['--temp']);
194194
}
195195

196-
if ($this->options['-o'] !== 'none') {
197-
switch ($this->options['-o']) {
198-
case 'tap':
199-
$runner->outputHandlers[] = new Output\TapPrinter;
200-
break;
201-
case 'junit':
202-
$runner->outputHandlers[] = new Output\JUnitPrinter;
203-
break;
204-
default:
205-
$runner->outputHandlers[] = new Output\ConsolePrinter(
206-
$runner,
207-
(bool) $this->options['-s'],
208-
'php://output',
209-
(bool) $this->options['--cider']
210-
);
211-
}
196+
switch ($this->options['-o']) {
197+
case 'none':
198+
break;
199+
case 'tap':
200+
$runner->outputHandlers[] = new Output\TapPrinter;
201+
break;
202+
case 'junit':
203+
$runner->outputHandlers[] = new Output\JUnitPrinter;
204+
break;
205+
default:
206+
$runner->outputHandlers[] = new Output\ConsolePrinter(
207+
$runner,
208+
(bool) $this->options['-s'],
209+
'php://output',
210+
(bool) $this->options['--cider']
211+
);
212212
}
213213

214214
if ($this->options['--log']) {

0 commit comments

Comments
 (0)