mirror of
https://github.com/emilybache/GildedRose-Refactoring-Kata.git
synced 2026-02-15 22:41:30 +00:00
Backstage passes numerical quantitative measures
and PHPUnit cache.
This commit is contained in:
parent
60f38118f9
commit
34de975747
5
.gitignore
vendored
5
.gitignore
vendored
@ -3,4 +3,7 @@ obj
|
|||||||
*.sln.DotSettings.user
|
*.sln.DotSettings.user
|
||||||
.vs
|
.vs
|
||||||
vendor
|
vendor
|
||||||
.vscode
|
.vscode
|
||||||
|
|
||||||
|
# PHPUnit cache
|
||||||
|
.phpunit.result.cache
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user