mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
Corrected conditional statements.
This commit is contained in:
parent
efb4e9b9bf
commit
82dc714539
@ -65,8 +65,9 @@ final class GildedRose
|
||||
}
|
||||
} else {
|
||||
if ($item->quality < 50) {
|
||||
$item->quality++;
|
||||
if ($item->name === 'Backstage passes to a TAFKAL80ETC concert') {
|
||||
if ($item->name === 'Aged Brie') {
|
||||
$item->quality++;
|
||||
} else if ($item->name === 'Backstage passes to a TAFKAL80ETC concert') {
|
||||
if ($item->sell_in <= 10) {
|
||||
$item->quality += 2;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user