Просмотр исходного кода

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...
rugk 10 лет назад
Родитель
Сommit
e70159c1bb
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tst/model.php

+ 1 - 1
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')))
             {