<commit_before><?php

declare(strict_types=1);

namespace App\Orchid\Layouts\Category;

use Orchid\Screen\Layouts\Table;
use Orchid\Screen\TD;

class CategoryListLayout extends Table
{
    /**
     * @var string
     */
    public $data = 'category';

    /**
     * HTTP data filters.
     *
     * @return array
     */
    public function filters(): array
    {
        return [];
    }

    /**
     * @return array
     */
    public function fields(): array
    {
        return [
            TD::set('name', __('Name'))
                ->setRender(function ($category) {
                    return '<a href="' . route('platform.systems.category.edit',
                            $category->id) . '">' . $category->delimiter . ' ' . $category->term->GetContent('name') . '</a>';
                }),
            TD::set('slug', __('Slug'))
                ->setRender(function ($category) {
                    return $category->term->slug;
                }),
            TD::set('created_at', __('Created'))
                ->setRender(function ($category) {
                    return $category->term->created_at;
                }),
        ];
    }
}<commit_msg>Apply fixes from StyleCI<commit_after><?php

declare(strict_types=1);

namespace App\Orchid\Layouts\Category;

use Orchid\Screen\TD;
use Orchid\Screen\Layouts\Table;

class CategoryListLayout extends Table
{
    /**
     * @var string
     */
    public $data = 'category';

    /**
     * HTTP data filters.
     *
     * @return array
     */
    public function filters(): array
    {
        return [];
    }

    /**
     * @return array
     */
    public function fields(): array
    {
        return [
            TD::set('name', __('Name'))
                ->setRender(function ($category) {
                    return '<a href="'.route('platform.systems.category.edit',
                            $category->id).'">'.$category->delimiter.' '.$category->term->GetContent('name').'</a>';
                }),
            TD::set('slug', __('Slug'))
                ->setRender(function ($category) {
                    return $category->term->slug;
                }),
            TD::set('created_at', __('Created'))
                ->setRender(function ($category) {
                    return $category->term->created_at;
                }),
        ];
    }
}
{'fraction_non_alphanumeric': 0.1603411513859275, 'fraction_numerical': 0.0008528784648187633, 'mean_word_length': 1.578021978021978, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4497980', 'n_tokens_mistral': 664, 'n_tokens_neox': 634, 'n_words': 116}