Code Duplication    Length = 5-5 lines in 2 locations

src/Auth/SimpleRbacAuthorize.php 2 locations

@@ 77-81 (lines=5) @@
74
		extract($this->getControllerNameAndAction($request));
75
		$actionMap = $this->getActionMap();
76
77
		if (isset($actionMap[$name]['*'])) {
78
			if ($this->_isAllowedRole($user[$roleField], $actionMap[$name]['*'])) {
79
				return true;
80
			}
81
		}
82
83
		if (isset($actionMap[$name][$action])) {
84
			if ($this->_isAllowedRole($user[$roleField], $actionMap[$name][$action])) {
@@ 83-87 (lines=5) @@
80
			}
81
		}
82
83
		if (isset($actionMap[$name][$action])) {
84
			if ($this->_isAllowedRole($user[$roleField], $actionMap[$name][$action])) {
85
				return true;
86
			}
87
		}
88
89
		if ($this->config('undefinedActionsAreAllowed') === true) {
90
			return true;