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

@@ 49-65 (lines=17) @@
46
    /**
47
     * {@inheritdoc}
48
     */
49
    public function connector()
50
    {
51
        return [
52
            [
53
                [
54
                    'param'    => 'post_type',
55
                    'operator' => '==',
56
                    'value'    => 'page',
57
                ],
58
                [
59
                    'param'    => 'page_template',
60
                    'operator' => '==',
61
                    'value'    => $this->name,
62
                ],
63
            ],
64
        ];
65
    }
66
67
    /**
68
     * {@inheritdoc}