Code Duplication    Length = 10-11 lines in 2 locations

src/LIN3S/WPSymfonyForm/Admin/Views/Components/WpListTables/FormsTable.php 1 location

@@ 30-39 (lines=10) @@
27
     *
28
     * @param Storage $storage The storage
29
     */
30
    public function __construct(Storage $storage)
31
    {
32
        parent::__construct([
33
            'singular' => __('Form', \WPSymfonyForm::TRANSLATION_DOMAIN),
34
            'plural'   => __('Forms', \WPSymfonyForm::TRANSLATION_DOMAIN),
35
            'ajax'     => false,
36
        ]);
37
38
        $this->storage = $storage;
39
    }
40
41
    /**
42
     * {@inheritdoc}

src/LIN3S/WPSymfonyForm/Admin/Views/Components/WpListTables/LogsTable.php 1 location

@@ 38-48 (lines=11) @@
35
     * @param string  $formType The form type name
36
     * @param Storage $storage  The storage
37
     */
38
    public function __construct($formType, Storage $storage)
39
    {
40
        parent::__construct([
41
            'singular' => __('Log', \WPSymfonyForm::TRANSLATION_DOMAIN),
42
            'plural'   => __('Logs', \WPSymfonyForm::TRANSLATION_DOMAIN),
43
            'ajax'     => false,
44
        ]);
45
46
        $this->formType = $formType;
47
        $this->storage = $storage;
48
    }
49
50
    /**
51
     * {@inheritdoc}