Code Duplication    Length = 19-19 lines in 2 locations

src/Entry/EntryPresenter.php 2 locations

@@ 113-131 (lines=19) @@
110
     *
111
     * @return string
112
     */
113
    public function editUrl()
114
    {
115
        return url(
116
            implode(
117
                '/',
118
                array_unique(
119
                    array_filter(
120
                        [
121
                            'admin',
122
                            $this->object->getStreamNamespace(),
123
                            $this->object->getStreamSlug(),
124
                            'edit',
125
                            $this->object->getId(),
126
                        ]
127
                    )
128
                )
129
            )
130
        );
131
    }
132
133
    /**
134
     * Return the edit link.
@@ 148-166 (lines=19) @@
145
     *
146
     * @return string
147
     */
148
    public function viewUrl()
149
    {
150
        return url(
151
            implode(
152
                '/',
153
                array_unique(
154
                    array_filter(
155
                        [
156
                            'admin',
157
                            $this->object->getStreamNamespace(),
158
                            $this->object->getStreamSlug(),
159
                            'view',
160
                            $this->object->getId(),
161
                        ]
162
                    )
163
                )
164
            )
165
        );
166
    }
167
168
    /**
169
     * Return the view link.