Skip to content

Commit 22e826e

Browse files
committed
cs
1 parent d3c59d8 commit 22e826e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/BaseTest.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ public function getTemporaryFile(string $filename, string $content = null): stri
3535

3636
@mkdir(dirname($file), 0777, true);
3737

38-
if ($content !== null) {
39-
file_put_contents($file, $content);
40-
} else {
41-
touch($file);
42-
}
38+
$content !== null
39+
? file_put_contents($file, $content)
40+
: touch($file);
4341

4442
return $file;
4543
}

0 commit comments

Comments
 (0)