public static function setStatusLabels(array $data, int $index) : array
    {
        $view = new View();
        $statusLabels = [
            ImportResultsTable::STATUS_SUCCESS => 'success',
            ImportResultsTable::STATUS_PENDING => 'warning',
            ImportResultsTable::STATUS_FAIL => 'danger'
        ];
        foreach ($data as $key => $value) {
            $data[$key][$index] = $view->Html->tag('span', $value[$index], [
                'class' => 'label label-' . $statusLabels[$value[$index]]
            ]);
        }

        return $data;
    }