Skip to content

Commit

Permalink
reformatting connector
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 23, 2017
1 parent 2462b1c commit da7b006
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Illuminate/Queue/Connectors/BeanstalkdConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ public function connect(array $config)
*/
protected function pheanstalk(array $config)
{
$port = Arr::get($config, 'port', PheanstalkInterface::DEFAULT_PORT);
$timeout = Arr::get($config, 'timeout', Connection::DEFAULT_CONNECT_TIMEOUT);
$persistent = Arr::get($config, 'persistent', false);

return new Pheanstalk($config['host'], $port, $timeout, $persistent);
return new Pheanstalk(
$config['host'],
Arr::get($config, 'port', PheanstalkInterface::DEFAULT_PORT),
Arr::get($config, 'timeout', Connection::DEFAULT_CONNECT_TIMEOUT),
Arr::get($config, 'persistent', false)
);
}
}

0 comments on commit da7b006

Please sign in to comment.