How will you refactor this PHP code block? Use this as helper
<?php
namespace NOTIMPORTANT_NOW;
class NOTIMPORTANT_NOW extends NOTIMPORTANT_NOW
{
public function map(array $data): array
{
return $this->mapWithCondition(
$data,
// TODO: Refacoring needed here
readonlyCondition: fn ($row) => ( in_array($row['readonly'], config('User::user-management.roles.readonly')) || $row['super'] ) || $row['access_status'] === config('User::upload.access_statuses.deleted')
);
}
}