Skip to content

Commit 2908f2a

Browse files
Consistently throw exceptions on a single line
1 parent dc02e68 commit 2908f2a

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Session/Storage/Handler/MemcacheSessionHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ class MemcacheSessionHandler implements \SessionHandlerInterface
4343
public function __construct(\Memcache $memcache, array $options = array())
4444
{
4545
if ($diff = array_diff(array_keys($options), array('prefix', 'expiretime'))) {
46-
throw new \InvalidArgumentException(sprintf(
47-
'The following options are not supported "%s"', implode(', ', $diff)
48-
));
46+
throw new \InvalidArgumentException(sprintf('The following options are not supported "%s"', implode(', ', $diff)));
4947
}
5048

5149
$this->memcache = $memcache;

Session/Storage/Handler/MemcachedSessionHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ public function __construct(\Memcached $memcached, array $options = array())
5050
$this->memcached = $memcached;
5151

5252
if ($diff = array_diff(array_keys($options), array('prefix', 'expiretime'))) {
53-
throw new \InvalidArgumentException(sprintf(
54-
'The following options are not supported "%s"', implode(', ', $diff)
55-
));
53+
throw new \InvalidArgumentException(sprintf('The following options are not supported "%s"', implode(', ', $diff)));
5654
}
5755

5856
$this->ttl = isset($options['expiretime']) ? (int) $options['expiretime'] : 86400;

0 commit comments

Comments
 (0)