Code Duplication    Length = 17-17 lines in 2 locations

spec/PostTypes/Fields/PageFieldsSpec.php 1 location

@@ 45-61 (lines=17) @@
42
        $this->components()->shouldBeArray();
43
    }
44
45
    function it_should_connector()
46
    {
47
        $this->connector()->shouldReturn([
48
            [
49
                [
50
                    'param'    => 'post_type',
51
                    'operator' => '==',
52
                    'value'    => 'page',
53
                ],
54
                [
55
                    'param'    => 'page_template',
56
                    'operator' => '==',
57
                    'value'    => 'page',
58
                ],
59
            ],
60
        ]);
61
    }
62
63
    function it_should_be_remove_screen_attributes()
64
    {

src/PostTypes/Fields/Templates/PageFields.php 1 location

@@ 28-44 (lines=17) @@
25
    /**
26
     * {@inheritdoc}
27
     */
28
    public function connector()
29
    {
30
        return [
31
            [
32
                [
33
                    'param'    => 'post_type',
34
                    'operator' => '==',
35
                    'value'    => 'page',
36
                ],
37
                [
38
                    'param'    => 'page_template',
39
                    'operator' => '==',
40
                    'value'    => $this->name,
41
                ],
42
            ],
43
        ];
44
    }
45
46
    /**
47
     * {@inheritdoc}