Code Duplication    Length = 11-11 lines in 2 locations

src/View/ViewController.php 2 locations

@@ 309-319 (lines=11) @@
306
307
        // Search in custom view helpers
308
309
        if (class_exists($customViewHelper)) {
310
311
            /** @var AbstractViewHelper $class */
312
            $class = new $customViewHelper;
313
            $class->setView($this);
314
315
            return $this->_callUserFuncArray($class, $arguments);
316
317
        }
318
319
        // No custom view helper found, search in core view helpers
320
321
        if (class_exists($coreViewHelper)) {
322
@@ 321-331 (lines=11) @@
318
319
        // No custom view helper found, search in core view helpers
320
321
        if (class_exists($coreViewHelper)) {
322
323
            /** @var AbstractViewHelper $class */
324
            $class = new $coreViewHelper;
325
            $class->setView($this);
326
327
            return $this->_callUserFuncArray($class, $arguments);
328
329
        }
330
331
        throw new ViewHelperException('No view helper for "' . $name . '" found.');
332
    }
333
334
    /**