Clean up ugly code bits.

This commit is contained in:
Daniele Alessandri
2013-11-10 12:30:24 +01:00
parent 38c7697881
commit cdb91284f1
+7 -2
View File
@@ -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;
}
/**