From 8e061b2daf975ec77aead394aa51b600613113cf Mon Sep 17 00:00:00 2001 From: Jan Pecha Date: Wed, 27 Apr 2022 14:17:55 +0200 Subject: [PATCH] GitRepository: method parameter $params renamed to $options --- src/GitRepository.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/GitRepository.php b/src/GitRepository.php index 98fc99e..4da289d 100644 --- a/src/GitRepository.php +++ b/src/GitRepository.php @@ -342,13 +342,13 @@ public function renameFile($file, $to = NULL) * Commits changes * `git commit -m ` * @param string $message - * @param string[] $params param => value + * @param array|NULL $options * @throws GitException * @return static */ - public function commit($message, $params = NULL) + public function commit($message, $options = NULL) { - $this->run('commit', $params, [ + $this->run('commit', $options, [ '-m' => $message, ]); return $this; @@ -460,13 +460,13 @@ public function hasChanges() /** * Pull changes from a remote * @param string|NULL $remote - * @param array|NULL $params + * @param array|NULL $options * @return static * @throws GitException */ - public function pull($remote = NULL, array $params = NULL) + public function pull($remote = NULL, array $options = NULL) { - $this->run('pull', $params, '--end-of-options', $remote); + $this->run('pull', $options, '--end-of-options', $remote); return $this; } @@ -474,13 +474,13 @@ public function pull($remote = NULL, array $params = NULL) /** * Push changes to a remote * @param string|NULL $remote - * @param array|NULL $params + * @param array|NULL $options * @return static * @throws GitException */ - public function push($remote = NULL, array $params = NULL) + public function push($remote = NULL, array $options = NULL) { - $this->run('push', $params, '--end-of-options', $remote); + $this->run('push', $options, '--end-of-options', $remote); return $this; } @@ -488,13 +488,13 @@ public function push($remote = NULL, array $params = NULL) /** * Run fetch command to get latest branches * @param string|NULL $remote - * @param array|NULL $params + * @param array|NULL $options * @return static * @throws GitException */ - public function fetch($remote = NULL, array $params = NULL) + public function fetch($remote = NULL, array $options = NULL) { - $this->run('fetch', $params, '--end-of-options', $remote); + $this->run('fetch', $options, '--end-of-options', $remote); return $this; } @@ -503,13 +503,13 @@ public function fetch($remote = NULL, array $params = NULL) * Adds new remote repository * @param string $name * @param string $url - * @param array|NULL $params + * @param array|NULL $options * @return static * @throws GitException */ - public function addRemote($name, $url, array $params = NULL) + public function addRemote($name, $url, array $options = NULL) { - $this->run('remote', 'add', $params, '--end-of-options', $name, $url); + $this->run('remote', 'add', $options, '--end-of-options', $name, $url); return $this; } @@ -545,13 +545,13 @@ public function removeRemote($name) * Changes remote repository URL * @param string $name * @param string $url - * @param array|NULL $params + * @param array|NULL $options * @return static * @throws GitException */ - public function setRemoteUrl($name, $url, array $params = NULL) + public function setRemoteUrl($name, $url, array $options = NULL) { - $this->run('remote', 'set-url', $params, '--end-of-options', $name, $url); + $this->run('remote', 'set-url', $options, '--end-of-options', $name, $url); return $this; }