GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

SimpleApprovalWorkflowAction   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 7 1
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 = 'symbiote/silverstripe-advancedworkflow:images/approval.png';
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
23
24
    private static $table_name = 'SimpleApprovalWorkflowAction';
0 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
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