Code Duplication    Length = 15-15 lines in 2 locations

src/View/TwigView.php 2 locations

@@ 200-214 (lines=15) @@
197
     * @throws \Exception
198
     */
199
    // @codingStandardsIgnoreStart
200
    protected function _getViewFileName($name = null)
201
    {
202
        // @codingStandardsIgnoreEnd
203
        $rethrow = new \Exception('You\'re not supposed to get here');
204
        foreach ($this->extensions as $extension) {
205
            $this->_ext = $extension;
206
            try {
207
                return parent::_getViewFileName($name);
208
            } catch (\Exception $exception) {
209
                $rethrow = $exception;
210
            }
211
        }
212
213
        throw $rethrow;
214
    }
215
216
    /**
217
     * @param string|null $name
@@ 222-236 (lines=15) @@
219
     * @throws \Exception
220
     */
221
    // @codingStandardsIgnoreStart
222
    protected function _getLayoutFileName($name = null)
223
    {
224
        // @codingStandardsIgnoreEnd
225
        $rethrow = new \Exception('You\'re not supposed to get here');
226
        foreach ($this->extensions as $extension) {
227
            $this->_ext = $extension;
228
            try {
229
                return parent::_getLayoutFileName($name);
230
            } catch (\Exception $exception) {
231
                $rethrow = $exception;
232
            }
233
        }
234
235
        throw $rethrow;
236
    }
237
238
    /**
239
     * @param string $name