Code Duplication    Length = 10-10 lines in 2 locations

src/Component/Component.php 1 location

@@ 43-52 (lines=10) @@
40
    /**
41
     * {@inheritdoc}
42
     */
43
    public function getConfigs()
44
    {
45
        return collect([
46
            'primaryKey'  => $this->getModel()->getRepository()->getKeyName(),
47
            'title'       => $this->getTitle(),
48
            'permissions' => $this->getPermissions(),
49
            'columns'     => $this->getColumns()->values(),
50
            'elements'    => $this->getElements()->values(),
51
        ]);
52
    }
53
54
    /**
55
     * @return \KodiComponents\Navigation\Contracts\NavigationInterface

src/Config/ConfigManager.php 1 location

@@ 108-117 (lines=10) @@
105
    /**
106
     * {@inheritdoc}
107
     */
108
    public function getConfigs()
109
    {
110
        return [
111
            'primaryKey'  => $this->getModel()->getRepository()->getKeyName(),
112
            'title'       => $this->getTitle(),
113
            'permissions' => $this->getPermissions(),
114
            'columns'     => $this->getColumns()->values(),
115
            'elements'    => $this->getElements()->values(),
116
        ];
117
    }
118
119
    /**
120
     * Convert the Object instance to an array.