Completed
Push — master ( 9d12f9...1540ef )
by Gaetano
04:25
created
Core/WorkflowServiceFacade.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,9 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $workflowDefinitions = $this->getValidWorkflowsDefinitionsForSignal($signalName);
47 47
 
48
-        if ($this->logger) $this->logger->debug("Found " . count($workflowDefinitions) . " workflow definitions for signal '$signalName'");
48
+        if ($this->logger) {
49
+            $this->logger->debug("Found " . count($workflowDefinitions) . " workflow definitions for signal '$signalName'");
50
+        }
49 51
 
50 52
         if (count($workflowDefinitions)) {
51 53
 
@@ -59,7 +61,9 @@  discard block
 block discarded – undo
59 61
             foreach ($workflowDefinitions as $workflowDefinition) {
60 62
 
61 63
                 if (self::$workflowExecuting > 0 && $workflowDefinition->avoidRecursion) {
62
-                    if ($this->logger) $this->logger->debug("Skipping workflow '{$workflowDefinition->name}' to avoid recursion (workflow already executing)");
64
+                    if ($this->logger) {
65
+                        $this->logger->debug("Skipping workflow '{$workflowDefinition->name}' to avoid recursion (workflow already executing)");
66
+                    }
63 67
                     return;
64 68
                 }
65 69
 
@@ -83,7 +87,9 @@  discard block
 block discarded – undo
83 87
                 self::$workflowExecuting += 1;
84 88
                 try {
85 89
 
86
-                    if ($this->logger) $this->logger->debug("Executing workflow '{$workflowDefinition->name}' with parameters: " . preg_replace("/\n+/s", ' ', preg_replace('/^(Array| +|\(|\))/m', '', print_r($workflowParameters, true))));
90
+                    if ($this->logger) {
91
+                        $this->logger->debug("Executing workflow '{$workflowDefinition->name}' with parameters: " . preg_replace("/\n+/s", ' ', preg_replace('/^(Array| +|\(|\))/m', '', print_r($workflowParameters, true))));
92
+                    }
87 93
 
88 94
                     /// @todo allow setting of default lang ?
89 95
                     $this->innerService->executeMigration($wfd, $workflowDefinition->useTransaction, null, $workflowDefinition->runAs, $workflowParameters);
Please login to merge, or discard this patch.
ezpublish_legacy/ezworkflowenginebridge/settings/workflow.ini.append.php 1 patch
Braces   +1 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,22 +1,1 @@
 block discarded – undo
1
-<?php /*
2
-
3
-[EventSettings]
4
-ExtensionDirectories[]=ezworkflowenginebridge
5
-AvailableEventTypes[]=event_ezworkflowenginehook
6
-
7
-[OperationSettings]
8
-# enable all operations supported by eZ 4.1 and up
9
-AvailableOperationList[]=content_sort
10
-AvailableOperationList[]=content_move
11
-AvailableOperationList[]=content_swap
12
-AvailableOperationList[]=content_updatemainassignment
13
-AvailableOperationList[]=content_addlocation
14
-AvailableOperationList[]=content_removelocation
15
-AvailableOperationList[]=content_updatepriority
16
-AvailableOperationList[]=content_hide
17
-AvailableOperationList[]=content_delete
18
-AvailableOperationList[]=content_updatesection
19
-AvailableOperationList[]=content_updateinitiallanguage
20
-AvailableOperationList[]=content_updatealwaysavailable
21
-AvailableOperationList[]=content_removetranslation
22
-AvailableOperationList[]=content_updateobjectstate
1
+<?php 
23 2
\ No newline at end of file
Please login to merge, or discard this patch.
ezpublish_legacy/ezworkflowenginebridge/settings/design.ini.append.php 1 patch
Braces   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,1 @@
 block discarded – undo
1
-<?php /*
2
-
3
-[ExtensionSettings]
4
-DesignExtensions[]=ezworkflowenginebridge
5
-
1
+<?php 
6 2
\ No newline at end of file
Please login to merge, or discard this patch.