Skip to content

Commit f590e2d

Browse files
committed
Fix CS
1 parent c011c4f commit f590e2d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Queue.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ public function __construct($client, string $name)
2828
{
2929
if ($client instanceof Client) {
3030
$client = new ClientAdapter($client);
31-
} else if (!$client instanceof \Tarantool) {
32-
throw new \InvalidArgumentException(sprintf(
31+
} elseif (!$client instanceof \Tarantool) {
32+
throw new \InvalidArgumentException(\sprintf(
3333
'%s() expects parameter 1 to be Tarantool or %s, %s given.',
3434
__METHOD__, Client::class, \is_object($client) ? \get_class($client) : \gettype($client)
3535
));
@@ -129,9 +129,9 @@ public function truncate() : void
129129
/**
130130
* @param string|null $path
131131
*
132-
* @return array|int
133-
*
134132
* @throws \InvalidArgumentException
133+
*
134+
* @return array|int
135135
*/
136136
public function stats(string $path = null)
137137
{
@@ -142,9 +142,9 @@ public function stats(string $path = null)
142142
}
143143

144144
$result = $result[0][0];
145-
foreach (explode('.', $path) as $key) {
145+
foreach (\explode('.', $path) as $key) {
146146
if (!isset($result[$key])) {
147-
throw new \InvalidArgumentException(sprintf('Invalid path "%s".', $path));
147+
throw new \InvalidArgumentException(\sprintf('Invalid path "%s".', $path));
148148
}
149149
$result = $result[$key];
150150
}

0 commit comments

Comments
 (0)