Skip to content

Commit

Permalink
CS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
escopecz committed Jan 6, 2020
1 parent 797879e commit ddcf765
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,12 +245,7 @@ public function isGranted($requestedPermission, $mode = 'MATCH_ALL', $userEntity

$parts = explode(':', $permission);
if (false === in_array(count($parts), [3, 4])) {
throw new PermissionBadFormatException(
$this->getTranslator()->trans(
'mautic.core.permissions.badformat',
['%permission%' => $permission]
)
);
throw new PermissionBadFormatException($this->getTranslator()->trans('mautic.core.permissions.badformat', ['%permission%' => $permission]));
}

if ($userEntity->isAdmin()) {
Expand Down
2 changes: 0 additions & 2 deletions app/bundles/EmailBundle/EventListener/FormSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ public function onFormBuilder(FormBuilderEvent $event)
}

/**
* @param SubmissionEvent $event
*
* @throws ORMException
*/
public function onFormSubmitActionSendEmail(SubmissionEvent $event): void
Expand Down

0 comments on commit ddcf765

Please sign in to comment.