refactoring

This commit is contained in:
kristuff 2020-06-27 11:39:08 +02:00
commit eb4e1d6d69

View file

@ -170,14 +170,12 @@ abstract class ApiDefintion
*/
protected function getCategoryIndex(string $value, int $index)
{
$i = -1;
$i = 0;
foreach ($this->aipdbApiCategories as $cat){
$i++;
if ($cat[$index] === $value) {
return $i;
}
$i++;
}
// not found