Test Failed
Push — develop ( 55c79d...550055 )
by Paul
09:38
created

Select2Ajax   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 8
c 1
b 0
f 0
dl 0
loc 14
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_default_settings() 0 7 1
A get_type() 0 3 1
1
<?php
2
3
namespace GeminiLabs\SiteReviews\Integrations\Elementor\Controls;
4
5
use Elementor\Control_Select2;
6
7
class Select2Ajax extends Control_Select2
8
{
9
    public function get_type(): string
10
    {
11
        return 'select2_ajax';
12
    }
13
14
    protected function get_default_settings(): array {
15
        return [
16
            'include' => '',
17
            'lockedOptions' => [],
18
            'multiple' => false,
19
            'options' => [],
20
            'select2options' => [],
21
        ];
22
    }
23
}
24