mirror of
https://github.com/predis/predis.git
synced 2026-08-30 04:02:22 +00:00
Clean up ugly code bits.
This commit is contained in:
@@ -366,8 +366,13 @@ class Client implements ClientInterface
|
||||
*/
|
||||
protected function createTransaction(Array $options = null, $callable = null)
|
||||
{
|
||||
$transaction = new MultiExecContext($this, $options ?: array());
|
||||
return isset($callable) ? $transaction->execute($callable) : $transaction;
|
||||
$transaction = new MultiExecContext($this, $options);
|
||||
|
||||
if (isset($callable)) {
|
||||
return $transaction->execute($callable);
|
||||
}
|
||||
|
||||
return $transaction;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user