Code Duplication    Length = 8-8 lines in 2 locations

Src/Router/Dispatcher/Dispatcher.php 2 locations

@@ 327-334 (lines=8) @@
324
     * @param $options
325
     * @throws DispatchException
326
     */
327
    protected function _checkWhiteList($controller, $options)
328
    {
329
        if (isset($options['blacklist'])) {
330
            if (!$this->_checkInList($controller, $options['blacklist'])) {
331
                throw new DispatchException("Controller: {$controller}, not part of allowed whitelist.");
332
            }
333
        }
334
    }
335
336
    /**
337
     * Internal function for checking controller instance against class list.
@@ 361-368 (lines=8) @@
358
     * @param $options
359
     * @throws DispatchException
360
     */
361
    protected function _checkBlackList($controller, $options)
362
    {
363
        if (isset($options['blacklist'])) {
364
            if ($this->_checkInList($controller, $options['blacklist'])) {
365
                throw new DispatchException("Controller: {$controller}, found on blacklist.");
366
            }
367
        }
368
    }
369
370
    /**
371
     * Create a new PSR-7 Response.