The switch statement has no default case. This can lead to logical errors when the defined cases do not handle all possibilities. Thus, further code can lead to errors or vulnerabilities.
classes/class-p4-search.php Line: 376
switch ($filter['id']) {
classes/class-p4-search.php Line: 351
switch ($type) {
classes/class-p4-search.php Line: 541
switch ($type) {
classes/class-p4-elasticsearch.php Line: 28
switch ($filter['id']) {
classes/class-p4-elasticsearch.php Line: 26
switch ($type) {