From d69799f5de46a4ae29773d3cacf9ebabe62e4594 Mon Sep 17 00:00:00 2001 From: magdev Date: Wed, 5 Jun 2019 09:46:21 +0200 Subject: [PATCH] fixed renaming bugs --- src/Service/GitService.php | 2 +- src/Service/SystemService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Service/GitService.php b/src/Service/GitService.php index bfdd495..592bb05 100644 --- a/src/Service/GitService.php +++ b/src/Service/GitService.php @@ -90,7 +90,7 @@ class GitService if (!$this->isGitRepository()) { return $this->config->get('output.docname'); } - return $this->system->exec('git branch | grep \\\* | cut -d \' \' -f2', self::MODE_LASTLINE); + return $this->system->exec('git branch | grep \\\* | cut -d \' \' -f2', SystemService::MODE_LASTLINE); } diff --git a/src/Service/SystemService.php b/src/Service/SystemService.php index 2d4c12e..6cfdf05 100644 --- a/src/Service/SystemService.php +++ b/src/Service/SystemService.php @@ -46,7 +46,7 @@ class SystemService * @param int $return * @return string|int|array */ - protected function exec(string $cmd, int $mode = self::MODE_OUTPUT, &$output = array(), int &$return = 0) + public function exec(string $cmd, int $mode = self::MODE_OUTPUT, &$output = array(), int &$return = 0) { $lastline = exec($cmd, $output, $return); switch ($mode) {