From 9fc06142b3b9f6ec8aa09f6b9edaf00baa272d46 Mon Sep 17 00:00:00 2001 From: Povilas Brilius Date: Fri, 1 May 2020 20:00:31 +0300 Subject: [PATCH] String comparison operators. --- php7/src/GildedRose.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/php7/src/GildedRose.php b/php7/src/GildedRose.php index 575372c4..9c1eee86 100644 --- a/php7/src/GildedRose.php +++ b/php7/src/GildedRose.php @@ -52,14 +52,14 @@ final class GildedRose if ($item->name === 'Sulfuras, Hand of Ragnaros') { continue; } - if ($item->name != 'Aged Brie' && $item->name != 'Backstage passes to a TAFKAL80ETC concert') { + if ($item->name !== 'Aged Brie' && $item->name !== 'Backstage passes to a TAFKAL80ETC concert') { if ($item->quality > 0) { $item->quality--; } } else { if ($item->quality < 50) { $item->quality++; - if ($item->name == 'Backstage passes to a TAFKAL80ETC concert') { + if ($item->name === 'Backstage passes to a TAFKAL80ETC concert') { if ($item->sell_in <= 10) { $item->quality += 2; } @@ -73,8 +73,8 @@ final class GildedRose $item->sell_in--; if ($item->sell_in < 0) { - if ($item->name != 'Aged Brie') { - if ($item->name != 'Backstage passes to a TAFKAL80ETC concert') { + if ($item->name !== 'Aged Brie') { + if ($item->name !== 'BackstageString passes to a TAFKAL80ETC concert') { if ($item->quality > 0) { $item->quality -= 2; }