diff --git a/php/src/GildedRose.php b/php/src/GildedRose.php index 54c921cb..735c0a0e 100644 --- a/php/src/GildedRose.php +++ b/php/src/GildedRose.php @@ -24,16 +24,16 @@ final class GildedRose public function updateQuality(): void { foreach ($this->items as $item) { - if ($item->name != 'Aged Brie' and $item->name != 'Backstage passes to a TAFKAL80ETC concert') { + if ($item->name !== 'Aged Brie' and $item->name !== 'Backstage passes to a TAFKAL80ETC concert') { if ($item->quality > 0) { - if ($item->name != 'Sulfuras, Hand of Ragnaros') { + if ($item->name !== 'Sulfuras, Hand of Ragnaros') { $item->quality = $item->quality - 1; } } } else { if ($item->quality < 50) { $item->quality = $item->quality + 1; - if ($item->name == 'Backstage passes to a TAFKAL80ETC concert') { + if ($item->name === 'Backstage passes to a TAFKAL80ETC concert') { if ($item->sellIn < 11) { if ($item->quality < 50) { $item->quality = $item->quality + 1; @@ -48,15 +48,15 @@ final class GildedRose } } - if ($item->name != 'Sulfuras, Hand of Ragnaros') { + if ($item->name !== 'Sulfuras, Hand of Ragnaros') { $item->sellIn = $item->sellIn - 1; } if ($item->sellIn < 0) { - if ($item->name != 'Aged Brie') { - if ($item->name != 'Backstage passes to a TAFKAL80ETC concert') { + if ($item->name !== 'Aged Brie') { + if ($item->name !== 'Backstage passes to a TAFKAL80ETC concert') { if ($item->quality > 0) { - if ($item->name != 'Sulfuras, Hand of Ragnaros') { + if ($item->name !== 'Sulfuras, Hand of Ragnaros') { $item->quality = $item->quality - 1; } }