Apply some coding style changes.

This commit is contained in:
Daniele Alessandri
2011-10-18 15:03:04 +02:00
parent 4251664095
commit 20d872a306
222 changed files with 2789 additions and 1281 deletions
+8 -4
View File
@@ -2,20 +2,24 @@
namespace Predis\Commands;
abstract class ScriptedCommand extends ServerEval {
abstract class ScriptedCommand extends ServerEval
{
public abstract function getScript();
protected function keysCount() {
protected function keysCount()
{
// The default behaviour for the base class is to use all the arguments
// passed to a scripted command to populate the KEYS table in Lua.
return count($this->getArguments());
}
protected function filterArguments(Array $arguments) {
protected function filterArguments(Array $arguments)
{
return array_merge(array($this->getScript(), $this->keysCount()), $arguments);
}
protected function getKeys() {
protected function getKeys()
{
return array_slice($this->getArguments(), 2, $this->keysCount());
}
}