Skip to content

Commit 1ba8caa

Browse files
author
Andrew Carter
committed
Switched to using shorthand for default values
1 parent 2a186e9 commit 1ba8caa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Command/DaemonRunCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ class DaemonRunCommand extends Command
3636
*/
3737
public function __construct($kernel, DaemonFactoryInterface $daemonFactory = null, $name = null, $description = null)
3838
{
39-
$daemonFactory = ($daemonFactory === null) ? new DaemonFactory : $daemonFactory;
40-
$name = ($name === null) ? self::DEFAULT_NAME : $name;
41-
$description = ($description === null) ? self::DEFAULT_DESCRIPTION : $description;
39+
$daemonFactory = $daemonFactory ?: new DaemonFactory;
40+
$name = $name ?: self::DEFAULT_NAME;
41+
$description = $description ?: self::DEFAULT_DESCRIPTION;
4242

4343
parent::__construct($name);
4444

0 commit comments

Comments
 (0)