@@ 51-55 (lines=5) @@ | ||
48 | $subCommand = strtoupper($subCommand); |
|
49 | //TODO: control flow improvement |
|
50 | switch ($subCommand) { |
|
51 | case 'GET' : { |
|
52 | @list ($type, $offset) = $param; |
|
53 | $args = [$key, $subCommand, $type, $offset]; |
|
54 | break; |
|
55 | } |
|
56 | case 'SET' : { |
|
57 | @list ($type, $offset, $value) = $param; |
|
58 | $args = [$key, $subCommand, $type, $offset, $value]; |
|
@@ 56-60 (lines=5) @@ | ||
53 | $args = [$key, $subCommand, $type, $offset]; |
|
54 | break; |
|
55 | } |
|
56 | case 'SET' : { |
|
57 | @list ($type, $offset, $value) = $param; |
|
58 | $args = [$key, $subCommand, $type, $offset, $value]; |
|
59 | break; |
|
60 | } |
|
61 | case 'INCRBY' : { |
|
62 | @list ($type, $offset, $increment) = $param; |
|
63 | $args = [$key, $type, $offset, $increment]; |