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