Skip to content

Commit ea6c31a

Browse files
2 parents 09d410a + 45b5ed1 commit ea6c31a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/PrinterTrait.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function __construct(
7171

7272
$this->configFileName = $this->getConfigurationFile('phpunit-printer.yml');
7373
$this->colorsTool = new Color();
74+
7475
try {
7576
$this->configuration = new Config($this->configFileName);
7677
} catch (EmptyDirectoryException $e) {
@@ -79,7 +80,7 @@ public function __construct(
7980
}
8081

8182
$this->maxNumberOfColumns = $this->getWidth();
82-
$this->maxClassNameLength = min((int)($this->maxNumberOfColumns / 2), $this->maxClassNameLength);
83+
$this->maxClassNameLength = min((int) ($this->maxNumberOfColumns / 2), $this->maxClassNameLength);
8384

8485
// setup module options
8586
$this->printerOptions = $this->configuration->all();
@@ -153,9 +154,6 @@ public function packageName()
153154
return 'n/a';
154155
}
155156

156-
/**
157-
*
158-
*/
159157
protected function init()
160158
{
161159
if (!self::$init) {
@@ -253,7 +251,7 @@ private function getWidth()
253251

254252
// 'stty size' output example: 36 120
255253
if (\count($out) > 0) {
256-
$width = (int)explode(' ', array_pop($out))[1];
254+
$width = (int) explode(' ', array_pop($out))[1];
257255
}
258256

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

0 commit comments

Comments
 (0)