From d4308ec91612b6252f2dae8c0265184d57694551 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 13 Feb 2022 23:57:54 +0100 Subject: [PATCH] remove unused param --- Utils/Git/Repository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utils/Git/Repository.php b/Utils/Git/Repository.php index c0f5bede2..32c1d6000 100644 --- a/Utils/Git/Repository.php +++ b/Utils/Git/Repository.php @@ -151,7 +151,7 @@ class Repository $branches = $this->run('branch'); $result = []; - foreach ($branches as $key => $branch) { + foreach ($branches as $branch) { $branch = \trim($branch, '* '); if ($branch !== '') { @@ -232,7 +232,7 @@ class Repository return $lines; } - foreach ($lineArray as $key => $line) { + foreach ($lineArray as $line) { $temp = \preg_replace('/\s+/', ' ', \trim($line, ' ')); if (!empty($temp)) {