src/mako/redis/Redis.php
protected function buildCommand(string $name): array
	{
		$command = strtoupper(str_replace('_', ' ', Str::camel2underscored($name)));

		if(strpos($command, ' ') === false)
		{
			return [$command];
		}

		$command = explode(' ', $command, 2);

		if(strpos($command[1], ' ') !== false)
		{
			$command[1] = str_replace(' ', '-', $command[1]);
		}

		return $command;
	}
protected function buildCommand(string $name): array
	{
		$command = strtoupper(str_replace('_', ' ', Str::camel2underscored($name)));

		if(strpos($command, ' ') === false)
		{
			return [$command];
		}

		$command = explode(' ', $command, 2);

		if(strpos($command[1], ' ') !== false)
		{
			$command[1] = str_replace(' ', '-', $command[1]);
		}

		return $command;
	}
protected function buildCommand ( string $ name ) : array { $ command = strtoupper ( str_replace ( '_' , ' ' , Str :: camel2underscored ( $ name ) ) ) ; if ( strpos ( $ command , ' ' ) === false ) { return [ $ command ] ; } $ command = explode ( ' ' , $ command , 2 ) ; if ( strpos ( $ command [ 1 ] , ' ' ) !== false ) { $ command [ 1 ] = str_replace ( ' ' , '-' , $ command [ 1 ] ) ; } return $ command ; }
Builds command from method name.

@param  string $name Method name
@return array
Builds command from method name .