diff --git a/library/Director/Web/Controller/ObjectController.php b/library/Director/Web/Controller/ObjectController.php index 73ae7ae6..c1a0d4e3 100644 --- a/library/Director/Web/Controller/ObjectController.php +++ b/library/Director/Web/Controller/ObjectController.php @@ -237,11 +237,15 @@ abstract class ObjectController extends ActionController return $this; } + /** + * @return $this + * @throws NotFoundError + */ protected function addActionUsage() { $type = $this->getType(); $object = $this->requireObject(); - if ($object->isTemplate() && ! $type === 'serviceSet') { + if ($object->isTemplate() && $type !== 'serviceSet') { $this->actions()->add([ Link::create( $this->translate('Usage'),