@@ -55,7 +55,7 @@ class UpdateIncidentCommandHandler
|
||||
}
|
||||
|
||||
$incident = $command->incident;
|
||||
$incident->update($this->filterIncidentData($command));
|
||||
$incident->update($this->filter($command));
|
||||
|
||||
// The incident occurred at a different time.
|
||||
if ($command->incident_date) {
|
||||
@@ -86,7 +86,7 @@ class UpdateIncidentCommandHandler
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
protected function filterIncidentData($command)
|
||||
protected function filter(UpdateIncidentCommand $command)
|
||||
{
|
||||
return array_filter([
|
||||
'name' => $command->name,
|
||||
@@ -96,7 +96,7 @@ class UpdateIncidentCommandHandler
|
||||
'component_id' => $command->component_id,
|
||||
'component_status' => $command->component_status,
|
||||
'notify' => $command->notify,
|
||||
]);
|
||||
], 'is_null');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user