diff --git a/Utils/Git/Commit.php b/Utils/Git/Commit.php index 074b95d1c..ddd9d56ab 100644 --- a/Utils/Git/Commit.php +++ b/Utils/Git/Commit.php @@ -116,7 +116,7 @@ class Commit * @since 1.0.0 * @author Dennis Eichhorn */ - public function getId() + public function getId() : string { return $this->id; } @@ -126,16 +126,20 @@ class Commit * * @param string $path File path * + * @return bool + * * @since 1.0.0 * @author Dennis Eichhorn */ - public function addFile(string $path) + public function addFile(string $path) : bool { - $path = escapeshellarg($path); - if (!isset($this->files[$path])) { $this->files[$path] = []; + + return true; } + + return false; } /**