From a99117b26f15e75e36b54facc65002c1a7b1ef34 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Wed, 31 Jan 2024 15:24:09 +1300 Subject: [PATCH] MNT Run module-standardiser --- composer.json | 4 +++- phpstan.neon.dist | 3 +++ src/DataObjects/WorkflowAction.php | 1 - src/DataObjects/WorkflowActionInstance.php | 4 ++-- 4 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 phpstan.neon.dist diff --git a/composer.json b/composer.json index 545fe227..a3b78293 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,9 @@ }, "require-dev": { "phpunit/phpunit": "^9.6", - "squizlabs/php_codesniffer": "^3" + "squizlabs/php_codesniffer": "^3", + "silverstripe/standards": "^1", + "phpstan/extension-installer": "^1.3" }, "extra": { "expose": [ diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 00000000..beb9de3c --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,3 @@ +parameters: + paths: + - src diff --git a/src/DataObjects/WorkflowAction.php b/src/DataObjects/WorkflowAction.php index 90fa7d9d..d962f6a7 100644 --- a/src/DataObjects/WorkflowAction.php +++ b/src/DataObjects/WorkflowAction.php @@ -22,7 +22,6 @@ * the action(s) that occur while in that state. An action can then have * subsequent transitions out of the current state. * - * @method WorkflowDefinition WorkflowDef() * @author marcus@symbiote.com.au * @license BSD License (http://silverstripe.org/bsd-license/) * @package advancedworkflow diff --git a/src/DataObjects/WorkflowActionInstance.php b/src/DataObjects/WorkflowActionInstance.php index 6ce8bedd..133ca3c9 100644 --- a/src/DataObjects/WorkflowActionInstance.php +++ b/src/DataObjects/WorkflowActionInstance.php @@ -23,8 +23,8 @@ * @license BSD License (http://silverstripe.org/bsd-license/) * @package advancedworkflow * - * @method WorkFlowInstance Workflow() - * @method WorkflowAction Baseaction() + * @method WorkflowInstance Workflow() + * @method WorkflowAction BaseAction() * @method Member Member() */ class WorkflowActionInstance extends DataObject