Apply fixes from StyleCI

This commit is contained in:
Franz Liedke 2019-06-12 23:33:41 +00:00 committed by StyleCI Bot
parent a1c18b4e0f
commit 49b71511d3

View File

@ -189,7 +189,7 @@ class Tag extends AbstractModel
$ids = []; $ids = [];
$hasGlobalPermission = $user->hasPermission($permission); $hasGlobalPermission = $user->hasPermission($permission);
$canForTag = function (Tag $tag) use ($user, $permission, $hasGlobalPermission) { $canForTag = function (self $tag) use ($user, $permission, $hasGlobalPermission) {
return ($hasGlobalPermission && ! $tag->is_restricted) || ($tag->is_restricted && $user->hasPermission('tag'.$tag->id.'.'.$permission)); return ($hasGlobalPermission && ! $tag->is_restricted) || ($tag->is_restricted && $user->hasPermission('tag'.$tag->id.'.'.$permission));
}; };