Code Duplication    Length = 18-18 lines in 2 locations

components/SeriesPosts.php 1 location

@@ 46-63 (lines=18) @@
43
    /**
44
     * @return array
45
     */
46
    public function defineProperties(): array
47
    {
48
        return [
49
                'series' => [
50
                    'title'       => Plugin::LOCALIZATION_KEY . 'components.series_posts.series_title',
51
                    'description' => Plugin::LOCALIZATION_KEY . 'components.series_posts.series_description',
52
                    'type'        => 'string',
53
                    'default'     => '{{ :series }}',
54
                ],
55
                'includeTaggedPosts' => [
56
                    'title'         => Plugin::LOCALIZATION_KEY . 'components.series_posts.include_tagged_posts_title',
57
                    'description'   => Plugin::LOCALIZATION_KEY . 'components.series_posts.include_tagged_posts_description',
58
                    'default'       => false,
59
                    'type'          => 'checkbox',
60
                    'showExternalParam' => false
61
                ]
62
            ] + parent::defineProperties();
63
    }
64
65
    /**
66
     * @inheritDoc

components/TagPosts.php 1 location

@@ 45-62 (lines=18) @@
42
     * Component Properties
43
     * @return array
44
     */
45
    public function defineProperties(): array
46
    {
47
        return [
48
            'tag' => [
49
                'title'         => Plugin::LOCALIZATION_KEY . 'components.tag_posts.tag_title',
50
                'description'   => Plugin::LOCALIZATION_KEY . 'components.tag_posts.tag_description',
51
                'default'       => '{{ :tag }}',
52
                'type'          => 'string'
53
            ],
54
            'includeSeriesPosts' => [
55
                'title'         => Plugin::LOCALIZATION_KEY . 'components.tag_posts.include_series_posts_title',
56
                'description'   => Plugin::LOCALIZATION_KEY . 'components.tag_posts.include_series_posts_description',
57
                'default'       => false,
58
                'type'          => 'checkbox',
59
                'showExternalParam' => false
60
            ]
61
        ] + parent::defineProperties();
62
    }
63
64
    /**
65
     * @inheritDoc