mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-14 06:01:39 +00:00
chore: decrease sellIn value for all other items
This commit is contained in:
parent
da3c2f5554
commit
a7d48bbf13
@ -48,9 +48,8 @@ final class GildedRose
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($item->name != 'Sulfuras, Hand of Ragnaros') {
|
|
||||||
$item->sellIn = $item->sellIn - 1;
|
$item->sellIn--;
|
||||||
}
|
|
||||||
|
|
||||||
if ($item->sellIn < 0) {
|
if ($item->sellIn < 0) {
|
||||||
if ($item->name === 'Aged Brie') {
|
if ($item->name === 'Aged Brie') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user