Skip to content

Commit

Permalink
Adds detection for myPhone (PL) and rename MyPhone to MyPhone (PH) (m…
Browse files Browse the repository at this point in the history
…atomo-org#7770)

* Adds detection for myPhone (PL)
* migrate models for MyPhone brand to MyPhone (PH)
* migrate models for MyPhone brand to MyPhone (PH)
  • Loading branch information
liviuconcioiu authored Aug 12, 2024
1 parent c05eb97 commit 41bac95
Show file tree
Hide file tree
Showing 30 changed files with 201 additions and 167 deletions.
3 changes: 2 additions & 1 deletion Parser/Device/AbstractDeviceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,8 @@ abstract class AbstractDeviceParser extends AbstractParser
'1R' => 'Multilaser',
'MPS' => 'MultiPOS',
'1M' => 'MYFON',
'MY' => 'MyPhone',
'MY1' => 'myPhone (PL)',
'MY' => 'MyPhone (PH)',
'51' => 'Myros',
'M8' => 'Myria',
'6M' => 'Mystery',
Expand Down
2 changes: 1 addition & 1 deletion Tests/fixtures/smartphone-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9310,7 +9310,7 @@
engine_version: ""
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: my27
os_family: Android
browser_family: Android Browser
Expand Down
8 changes: 4 additions & 4 deletions Tests/fixtures/smartphone-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
engine_version: 39.0.0.0
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: INFINITY II LTE
os_family: Android
browser_family: Chrome
Expand All @@ -49,7 +49,7 @@
engine_version: 74.0.3729.136
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: myA17
os_family: Android
browser_family: Chrome
Expand All @@ -67,7 +67,7 @@
engine_version: 75.0.3770.143
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Pocket 18x9
os_family: Android
browser_family: Chrome
Expand All @@ -85,7 +85,7 @@
engine_version: 75.0.3770.101
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Q-Smart III
os_family: Android
browser_family: Chrome
Expand Down
10 changes: 5 additions & 5 deletions Tests/fixtures/smartphone-18.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2189,7 +2189,7 @@
engine_version: 79.0.3945.93
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Pocket 2
os_family: Android
browser_family: Chrome
Expand Down Expand Up @@ -2441,7 +2441,7 @@
engine_version: 84.0.4147.111
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: myX12
os_family: Android
browser_family: Chrome
Expand All @@ -2459,7 +2459,7 @@
engine_version: 85.0.4183.81
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: myXI1 Plus
os_family: Android
browser_family: Chrome
Expand All @@ -2477,7 +2477,7 @@
engine_version: 85.0.4183.101
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: myXI1 Pro
os_family: Android
browser_family: Chrome
Expand All @@ -2495,7 +2495,7 @@
engine_version: 84.0.4147.89
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: myXI3
os_family: Android
browser_family: Chrome
Expand Down
2 changes: 1 addition & 1 deletion Tests/fixtures/smartphone-19.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@
engine_version: 86.0.4240.99
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Prime 4 Lite
os_family: Android
browser_family: Chrome
Expand Down
4 changes: 2 additions & 2 deletions Tests/fixtures/smartphone-20.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5095,7 +5095,7 @@
engine_version: 85.0.4183.81
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Q-Smart BE
os_family: Android
browser_family: Chrome
Expand Down Expand Up @@ -6841,7 +6841,7 @@
engine_version: 85.0.4183.81
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Prime 18x9
os_family: Android
browser_family: Chrome
Expand Down
12 changes: 6 additions & 6 deletions Tests/fixtures/smartphone-21.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
engine_version: 85.0.4183.101
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Prime 3 Lite
os_family: Android
browser_family: Chrome
Expand All @@ -31,7 +31,7 @@
engine_version: 85.0.4183.127
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Prime 18x9 LTE
os_family: Android
browser_family: Chrome
Expand Down Expand Up @@ -7789,7 +7789,7 @@
engine_version: 81.0.4044.138
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: Agua Rio
os_family: Android
browser_family: Chrome
Expand All @@ -7807,7 +7807,7 @@
engine_version: 76.0.3809.132
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: Agua Rio Lite
os_family: Android
browser_family: Chrome
Expand All @@ -7825,7 +7825,7 @@
engine_version: 30.0.0.0
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: Agua Rio Fun
os_family: Android
browser_family: Chrome
Expand All @@ -7843,7 +7843,7 @@
engine_version: 81.0.4044.138
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: Agua Infinity
os_family: Android
browser_family: Chrome
Expand Down
4 changes: 2 additions & 2 deletions Tests/fixtures/smartphone-22.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6591,7 +6591,7 @@
engine_version: 89.0.4389.105
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: FUN 18x9
os_family: Android
browser_family: Chrome
Expand Down Expand Up @@ -8967,7 +8967,7 @@
engine_version: 88.0.4324.182
device:
type: smartphone
brand: MyPhone
brand: MyPhone (PH)
model: Brown 1
os_family: Android
browser_family: Unknown
Expand Down
14 changes: 7 additions & 7 deletions Tests/fixtures/smartphone-25.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3055,7 +3055,7 @@
engine_version: 90.0.4430.210
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Pocket Pro
os_family: Android
browser_family: Opera
Expand Down Expand Up @@ -3667,7 +3667,7 @@
engine_version: 90.0.4430.91
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: FUN 4
os_family: Android
browser_family: Chrome
Expand Down Expand Up @@ -6819,7 +6819,7 @@
engine_version: 90.0.4430.210
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Pocket Pro
os_family: Android
browser_family: Opera
Expand Down Expand Up @@ -6873,7 +6873,7 @@
engine_version: 90.0.4430.91
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: FUN 4
os_family: Android
browser_family: Chrome
Expand Down Expand Up @@ -8079,7 +8079,7 @@
engine_version: 91.0.4472.120
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: FUN 6 Lite
os_family: Android
browser_family: Chrome
Expand All @@ -8097,7 +8097,7 @@
engine_version: 91.0.4472.164
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: FUN 7 LTE
os_family: Android
browser_family: Chrome
Expand All @@ -8115,7 +8115,7 @@
engine_version: 91.0.4472.77
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: FUN 18x9
os_family: Android
browser_family: Chrome
Expand Down
8 changes: 4 additions & 4 deletions Tests/fixtures/smartphone-26.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@
engine_version: 92.0.4515.159
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Prime 3
os_family: Android
browser_family: Chrome
Expand Down Expand Up @@ -5653,7 +5653,7 @@
engine_version: 83.0.4103.106
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Luna II
os_family: Android
browser_family: Chrome
Expand Down Expand Up @@ -8817,7 +8817,7 @@
engine_version: 93.0.4577.62
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: City 2
os_family: Android
browser_family: Chrome
Expand All @@ -8835,7 +8835,7 @@
engine_version: 93.0.4577.62
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Fun 6
os_family: Android
browser_family: Chrome
Expand Down
2 changes: 1 addition & 1 deletion Tests/fixtures/smartphone-27.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4633,7 +4633,7 @@
engine_version: 93.0.4577.82
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Prime 5
os_family: Android
browser_family: Chrome
Expand Down
2 changes: 1 addition & 1 deletion Tests/fixtures/smartphone-28.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5353,7 +5353,7 @@
engine_version: 94.0.4606.61
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Now eSIM
os_family: Android
browser_family: Chrome
Expand Down
2 changes: 1 addition & 1 deletion Tests/fixtures/smartphone-29.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5893,7 +5893,7 @@
engine_version: 88.0.4324.181
device:
type: smartphone
brand: MyPhone
brand: myPhone (PL)
model: Hammer Axe M LTE
os_family: Android
browser_family: Chrome
Expand Down
Loading

0 comments on commit 41bac95

Please sign in to comment.