Skip to content

Commit

Permalink
Switched to using shorthand for default values
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Carter committed Aug 14, 2015
1 parent 2a186e9 commit 1ba8caa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Command/DaemonRunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class DaemonRunCommand extends Command
*/
public function __construct($kernel, DaemonFactoryInterface $daemonFactory = null, $name = null, $description = null)
{
$daemonFactory = ($daemonFactory === null) ? new DaemonFactory : $daemonFactory;
$name = ($name === null) ? self::DEFAULT_NAME : $name;
$description = ($description === null) ? self::DEFAULT_DESCRIPTION : $description;
$daemonFactory = $daemonFactory ?: new DaemonFactory;
$name = $name ?: self::DEFAULT_NAME;
$description = $description ?: self::DEFAULT_DESCRIPTION;

parent::__construct($name);

Expand Down

0 comments on commit 1ba8caa

Please sign in to comment.