protected function formatCommand(string $command, array $args) : string
    {
        foreach ($args as $key => $value) {
            $command = str_replace('{' . strtoupper($key) . '}', $value, $command);
        }
        return $command;
    }
protected function formatCommand(string $command, array $args) : string
    {
        foreach ($args as $key => $value) {
            $command = str_replace('{' . strtoupper($key) . '}', $value, $command);
        }
        return $command;
    }
protected function formatCommand ( string $ command , array $ args ) : string { foreach ( $ args as $ key => $ value ) { $ command = str_replace ( '{' . strtoupper ( $ key ) . '}' , $ value , $ command ) ; } return $ command ; }
Replace argument placeholder with their original values

This replaces the hook argument placeholder.
- prepare-commit-msg => FILE, MODE, HASH
- commit-msg         => FILE
- pre-push           => TARGET, URL
- pre-commit         => -
- post-checkout      => PREVIOUSHEAD, NEWHEAD, MODE
- post-merge         => SQUASH

@param  string $command
@param  array  $args
@return string
Replace argument placeholder with their original values