Commit 1344abd0 authored by Oana-Eliza Alexa's avatar Oana-Eliza Alexa
Browse files

fix phpstan

1 merge request!74Draft: Resolve "Redesign audit class"
Pipeline #32335 passed with stages
in 19 seconds
Showing with 2 additions and 3 deletions
+2 -3
...@@ -4,12 +4,11 @@ class Audit implements EndpointInterface ...@@ -4,12 +4,11 @@ class Audit implements EndpointInterface
{ {
private TaskGateway $gateway; private TaskGateway $gateway;
private string $errorMessage; private string $errorMessage = 'No audit requiring removal';
public function __construct (TaskGateway $gateway) public function __construct (TaskGateway $gateway)
{ {
$this->gateway = $gateway; $this->gateway = $gateway;
$this->errorMessage = 'No audit requiring removal';
} }
/** /**
...@@ -81,7 +80,7 @@ class Audit implements EndpointInterface ...@@ -81,7 +80,7 @@ class Audit implements EndpointInterface
* @return array * @return array
* @throws Exception * @throws Exception
*/ */
private function processScheduledTask(array $task): array private function processScheduledTask (array $task): array
{ {
// Retrieve data from the main task. // Retrieve data from the main task.
$auditMainTask = $this->getAuditMainTask($task['fdtasksgranularmaster'][0]); $auditMainTask = $this->getAuditMainTask($task['fdtasksgranularmaster'][0]);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment