Corrected conditional statements.

This commit is contained in:
Povilas Brilius 2020-05-01 20:30:10 +03:00
parent efb4e9b9bf
commit 82dc714539

View File

@ -65,8 +65,9 @@ final class GildedRose
} }
} else { } else {
if ($item->quality < 50) { if ($item->quality < 50) {
$item->quality++; if ($item->name === 'Aged Brie') {
if ($item->name === 'Backstage passes to a TAFKAL80ETC concert') { $item->quality++;
} else if ($item->name === 'Backstage passes to a TAFKAL80ETC concert') {
if ($item->sell_in <= 10) { if ($item->sell_in <= 10) {
$item->quality += 2; $item->quality += 2;
} }