/** * Get the concat'ed commands * * @return string */ private function commands() { $full_path = Path::assemble(root_path(), $this->data->path()); $data = $this->data->toArray(); $data['full_path'] = $full_path; $data['committer'] = User::getCurrent()->toArray(); $commands = []; foreach ($this->getConfig('commands', []) as $command) { $commands[] = Parse::template($command, $data); } return join('; ', $commands); }