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.
Completed
Push — master ( 21e795...aea957 )
by
unknown
11s
created

code/actions/SimpleApprovalWorkflowAction.php (1 issue)

Upgrade to new PHP Analysis Engine

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
The property $icon is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
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