Backstage passes numerical quantitative measures

and PHPUnit cache.
This commit is contained in:
Povilas Brilius 2020-05-01 18:37:51 +03:00
parent 60f38118f9
commit 34de975747
2 changed files with 6 additions and 3 deletions

5
.gitignore vendored
View File

@ -3,4 +3,7 @@ obj
*.sln.DotSettings.user *.sln.DotSettings.user
.vs .vs
vendor vendor
.vscode .vscode
# PHPUnit cache
.phpunit.result.cache

View File

@ -24,12 +24,12 @@ final class GildedRose {
if ($item->name == 'Backstage passes to a TAFKAL80ETC concert') { if ($item->name == 'Backstage passes to a TAFKAL80ETC concert') {
if ($item->sell_in < 11) { if ($item->sell_in < 11) {
if ($item->quality < 50) { if ($item->quality < 50) {
$item->quality = $item->quality + 1; $item->quality = $item->quality + 2;
} }
} }
if ($item->sell_in < 6) { if ($item->sell_in < 6) {
if ($item->quality < 50) { if ($item->quality < 50) {
$item->quality = $item->quality + 1; $item->quality = $item->quality + 3;
} }
} }
} }