Autofix issues detected by CodeSniffer

[MAILPOET-4617]
This commit is contained in:
Jan Jakes
2022-09-06 16:49:20 +02:00
committed by Rostislav Wolný
parent a377f0c946
commit c601aaa3eb
29 changed files with 123 additions and 80 deletions

View File

@ -5,7 +5,6 @@ namespace MailPoet\Automation\Engine\Builder;
use MailPoet\Automation\Engine\Data\Workflow;
use MailPoet\Automation\Engine\Storage\WorkflowStorage;
use MailPoet\Automation\Engine\Storage\WorkflowTemplateStorage;
use MailPoet\Automation\Integrations\MailPoet\Templates\WorkflowBuilder;
use MailPoet\UnexpectedValueException;
class CreateWorkflowFromTemplateController {
@ -26,7 +25,7 @@ class CreateWorkflowFromTemplateController {
public function createWorkflow(string $slug): Workflow {
$template = $this->templateStorage->getTemplateBySlug($slug);
if (! $template) {
if (!$template) {
throw UnexpectedValueException::create()->withMessage('Template not found.');
}