Skip to content

Commit 7222201

Browse files
authored
Apply fixes from StyleCI (#68)
1 parent a3f8ba9 commit 7222201

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Printer.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ class _ResultPrinter extends \PHPUnit\TextUI\ResultPrinter
2525
{
2626
public function startTest(\PHPUnit\Framework\Test $test): void
2727
{
28-
2928
$this->className = get_class($test);
3029
parent::startTest($test);
3130
}
@@ -136,7 +135,7 @@ public function __construct(
136135
$this->configuration = new Config($this->configFileName);
137136

138137
$this->maxNumberOfColumns = $this->getWidth();
139-
$this->maxClassNameLength = min((int)($this->maxNumberOfColumns / 2), $this->maxClassNameLength);
138+
$this->maxClassNameLength = min((int) ($this->maxNumberOfColumns / 2), $this->maxClassNameLength);
140139

141140
// setup module options
142141
$this->printerOptions = $this->configuration->all();
@@ -364,7 +363,7 @@ private function getWidth()
364363

365364
// 'stty size' output example: 36 120
366365
if (\count($out) > 0) {
367-
$width = (int)explode(' ', array_pop($out))[1];
366+
$width = (int) explode(' ', array_pop($out))[1];
368367
}
369368

370369
// handle CircleCI case (probably the same with TravisCI as well)

0 commit comments

Comments
 (0)