Skip to content

Commit 29f313b

Browse files
committed
use ternary operator when possible
1 parent ef85b23 commit 29f313b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/HeroTrait.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ public function phpFatalErrorHandler($buffer): string
3333
return $buffer;
3434
}
3535

36-
if ($this->result === '') {
37-
return $buffer;
38-
}
39-
40-
return $this->result;
36+
return $this->result === '' ? $buffer : $this->result;
4137
}
4238

4339
public function execOnShutdown() : void

0 commit comments

Comments
 (0)