From e1482ced6da74c2b3080a060957e6848c025627f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danyi=20D=C3=A1vid?= Date: Sun, 23 Jun 2019 19:14:34 +0200 Subject: [PATCH] * REGEXP fixed * wok express added * planet sushi added --- src/App/Service/KoinService.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/App/Service/KoinService.php b/src/App/Service/KoinService.php index 850012b..37382c1 100644 --- a/src/App/Service/KoinService.php +++ b/src/App/Service/KoinService.php @@ -30,7 +30,7 @@ class KoinService * 4 - currency * 5 - pos info */ - const OTP_SMS_PATTERN = '#([0-9]{6}) ([0-9]{1,2}:[0-9]{1,2}) K[áà]rty[áà]s v[áà]s[áà]rl[áà]s(?:/z[áà]rol[áà]s)?: -([0-9,.]+) ([A-Z]{2,3}); (.*?); K[áà]rtyasz[áà]m: ...[0-9]{4}; Egyenleg: \+[0-9.]+ HUF - OTPdirekt#msiu'; + const OTP_SMS_PATTERN = '#([0-9]{6}) ([0-9]{1,2}:[0-9]{1,2}) K[áà]rty[áà]s v[áà]s[áà]rl[áà]s(?:/z[áà]rol[áà]s)?: -([0-9,.]+) ([A-Z]{2,3}); (.*?); K[áà]rtyasz[áà]m: ...[0-9]{4}; Egy(?:\.|enleg): \+[0-9.]+ HUF - OTPdirekt#msiu'; /** @var Client */ private $httpClient; @@ -139,10 +139,18 @@ class KoinService return 'Étel'; } + if (false !== strpos($posInfo, "Wok Express")) { + return 'Étel'; + } + if (false !== strpos($posInfo, "FIRPO BURGER")) { return 'Étel'; } + if (false !== strpos($posInfo, "Planet Sushi")) { + return 'Étel'; + } + if (false !== strpos($posInfo, "VENDIT AUTOMATÁK")) { return 'Étel'; } @@ -268,9 +276,14 @@ class KoinService } elseif (false !== strpos($posInfo, "HAI NAM BISTRÓ")) { $tags[] = 'Hai Nam Bistro'; $tags[] = 'Vietnámi'; + } elseif (false !== strpos($posInfo, "Wok Express")) { + $tags[] = 'Wok Express'; + $tags[] = 'Ramen'; } elseif (false !== strpos($posInfo, "FIRPO BURGER")) { $tags[] = 'Firpo Burger'; $tags[] = 'Burger'; + } elseif (false !== strpos($posInfo, "Planet Sushi")) { + $tags[] = 'Planet Sushi'; } elseif (false !== strpos($posInfo, "VENDIT AUTOMATÁK")) { $tags[] = 'Junk food'; $tags[] = 'Automata';