[ENTITY][Actor] Add missing 'break' statements in switches in getUr{i,l}
This commit is contained in:
parent
25900d38bd
commit
6a8144003f
@ -505,7 +505,7 @@ class Actor extends Entity
|
|||||||
break;
|
break;
|
||||||
case self::GROUP:
|
case self::GROUP:
|
||||||
$uri = Router::url('group_actor_view_id', ['id' => $this->getId()], $type);
|
$uri = Router::url('group_actor_view_id', ['id' => $this->getId()], $type);
|
||||||
// no break
|
break;
|
||||||
default:
|
default:
|
||||||
throw new BugFoundException('Actor type added but `Actor::getUri` was not updated');
|
throw new BugFoundException('Actor type added but `Actor::getUri` was not updated');
|
||||||
}
|
}
|
||||||
@ -531,7 +531,7 @@ class Actor extends Entity
|
|||||||
break;
|
break;
|
||||||
case self::GROUP:
|
case self::GROUP:
|
||||||
$url = Router::url('group_actor_view_nickname', ['nickname' => $this->getNickname()], $type);
|
$url = Router::url('group_actor_view_nickname', ['nickname' => $this->getNickname()], $type);
|
||||||
// no break
|
break;
|
||||||
default:
|
default:
|
||||||
throw new BugFoundException('Actor type added but `Actor::getUrl` was not updated');
|
throw new BugFoundException('Actor type added but `Actor::getUrl` was not updated');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user