Passed
Push — main ( 4b1d5b...63f1e2 )
by Gaetano
08:10
created
Core/WorkflowServiceFacade.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,9 @@  discard block
 block discarded – undo
43 43
     {
44 44
         $workflowDefinitions = $this->getValidWorkflowsDefinitionsForSignal($signalName);
45 45
 
46
-        if ($this->logger) $this->logger->debug("Found " . count($workflowDefinitions) . " workflow definitions for signal '$signalName'");
46
+        if ($this->logger) {
47
+            $this->logger->debug("Found " . count($workflowDefinitions) . " workflow definitions for signal '$signalName'");
48
+        }
47 49
 
48 50
         if (count($workflowDefinitions)) {
49 51
 
@@ -57,7 +59,9 @@  discard block
 block discarded – undo
57 59
             foreach ($workflowDefinitions as $workflowDefinition) {
58 60
 
59 61
                 if (self::$workflowExecuting > 0 && $workflowDefinition->avoidRecursion) {
60
-                    if ($this->logger) $this->logger->debug("Skipping workflow '{$workflowDefinition->name}' to avoid recursion (workflow already executing)");
62
+                    if ($this->logger) {
63
+                        $this->logger->debug("Skipping workflow '{$workflowDefinition->name}' to avoid recursion (workflow already executing)");
64
+                    }
61 65
                     return;
62 66
                 }
63 67
 
@@ -81,7 +85,9 @@  discard block
 block discarded – undo
81 85
                 self::$workflowExecuting += 1;
82 86
                 try {
83 87
 
84
-                    if ($this->logger) $this->logger->debug("Executing workflow '{$workflowDefinition->name}' with parameters: " . preg_replace("/\n+/s", ' ', preg_replace('/^(Array| +|\(|\))/m', '', print_r($workflowParameters, true))));
88
+                    if ($this->logger) {
89
+                        $this->logger->debug("Executing workflow '{$workflowDefinition->name}' with parameters: " . preg_replace("/\n+/s", ' ', preg_replace('/^(Array| +|\(|\))/m', '', print_r($workflowParameters, true))));
90
+                    }
85 91
 
86 92
                     /// @todo allow setting of default lang, user and userGroup content types ?
87 93
                     $this->innerService->executeMigration($wfd, array(
Please login to merge, or discard this patch.