From e70159c1bb32182d1e81433ddb0365c8d26598b0 Mon Sep 17 00:00:00 2001 From: rugk Date: Mon, 18 Jul 2016 18:37:18 +0200 Subject: [PATCH] Avoid unused local variables Funnily you introduced this in a "code quality improve commit" (https://github.com/PrivateBin/PrivateBin/commit/b53efda6352f487ff6ae45a6055f413d9d668629), but Codacy complained about it... --- tst/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/model.php b/tst/model.php index 42fbf52..e7aef4b 100644 --- a/tst/model.php +++ b/tst/model.php @@ -236,7 +236,7 @@ class modelTest extends PHPUnit_Framework_TestCase $this->assertTrue($store->exists($ids[$key]), "paste $key exists after storing it"); } $this->_model->purge(10); - foreach ($ids as $key => $id) + foreach ($ids as $key) { if (in_array($key, array('x', 'y', 'z'))) {