These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Symbiote\AdvancedWorkflow\Actions; |
||
4 | |||
5 | use Symbiote\AdvancedWorkflow\DataObjects\WorkflowAction; |
||
6 | use Symbiote\AdvancedWorkflow\DataObjects\WorkflowInstance; |
||
7 | |||
8 | /** |
||
9 | * A simple approval step that waits for any assigned user to trigger one of the relevant |
||
10 | * transitions |
||
11 | * |
||
12 | * A more complicated workflow might use a majority, quorum or other type of |
||
13 | * approval functionality |
||
14 | * |
||
15 | * @author [email protected] |
||
16 | * @license BSD License (http://silverstripe.org/bsd-license/) |
||
17 | * @package advancedworkflow |
||
18 | * @subpackage actions |
||
19 | */ |
||
20 | class SimpleApprovalWorkflowAction extends WorkflowAction |
||
21 | { |
||
22 | private static $icon = 'advancedworkflow/images/approval.png'; |
||
0 ignored issues
–
show
|
|||
23 | |||
24 | private static $table_name = 'SimpleApprovalWorkflowAction'; |
||
25 | |||
26 | public function execute(WorkflowInstance $workflow) |
||
27 | { |
||
28 | // we don't need to do anything for this execution, |
||
29 | // as we're relying on the fact that there's at least 2 outbound transitions |
||
30 | // which will cause the workflow to block and wait. |
||
31 | return true; |
||
32 | } |
||
33 | } |
||
34 |
This check marks private properties in classes that are never used. Those properties can be removed.