Skip to content

Commit

Permalink
Merge branch 'main' of github.com:kiwilan/steward-laravel
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilan-riviere committed Jun 29, 2024
2 parents bbcaa75 + 823e3fc commit 423e279
Show file tree
Hide file tree
Showing 107 changed files with 121 additions and 257 deletions.
3 changes: 1 addition & 2 deletions src/Components/BladeApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public function __construct(
public bool $dark = false,
public string $tile = '#da532c',
public string $theme = '#ffffff',
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public function __construct(
public ?string $href = null,
public bool $external = false,
public mixed $slot = null,
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/ColorMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ class ColorMode extends Component
*/
public function __construct(
//
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class Dropdown extends Component
* Create a new component instance.
*/
public function __construct(
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Favicon.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ class Favicon extends Component
public function __construct(
public bool $dark = true,
public string $url = 'http://localhost:8000',
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Field/Checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
public string $name = 'checkbox',
public string $label = '',
public bool $checked = false,
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Field/RichEditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
public array $options = [],
public bool $footer = false,
public string $id = '',
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Field/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public function __construct(
public string $label = '',
public ?string $default = null,
public array $options = [],
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Field/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ public function __construct(
public mixed $regex = null,
public mixed $min = null,
public mixed $max = null,
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Field/Tiptap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public function __construct(
public string $label = '',
public array $options = [],
public bool $footer = false,
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Field/Toggle.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
public string $name = 'toggle',
public ?string $hint = null,
public string $label = '',
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Field/UploadFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public function __construct(
public ?string $accept = 'image/jpeg,image/png,image/webp',
public ?string $accepted = null,
public ?string $size = '1MB',
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Components/Listing/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public function __construct(

public mixed $filters = null, // slot
public mixed $sorters = null, // slot
) {
}
) {}

public function render(): Closure|View|string
{
Expand Down
3 changes: 1 addition & 2 deletions src/Components/MetaTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ public function __construct(
public ?string $domain = null,
public ?string $author = null,
public ?string $color = '#000000',
) {
}
) {}

/**
* Get the view / contents that represent the component.
Expand Down
3 changes: 1 addition & 2 deletions src/Docs/Strategies/ApplicationParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class ApplicationParameter extends Strategy
public function __construct(
public mixed $routeName,
public ?array $urlParams = []
) {
}
) {}

/**
* @see https://scribe.knuckles.wtf/laravel/advanced/plugins
Expand Down
3 changes: 1 addition & 2 deletions src/Docs/Strategies/ApplicationQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ class ApplicationQuery extends Strategy
public function __construct(
public mixed $routeName,
public ?array $urlParams = []
) {
}
) {}

/**
* @see https://scribe.knuckles.wtf/laravel/advanced/plugins
Expand Down
3 changes: 1 addition & 2 deletions src/Engines/SearchEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ protected function __construct(
protected int $count = 0,
protected ?Collection $results = null,
protected ?string $resource = null,
) {
}
) {}

/**
* Search for models.
Expand Down
3 changes: 1 addition & 2 deletions src/Filament/Config/FilamentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ public function __construct(
protected ?int $minItems = null,
protected ?int $maxItems = null,
protected mixed $instance = null,
) {
}
) {}

public static function make(string $builder): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class WordpressBuilderFaker
{
public function __construct(
protected Generator $faker,
) {
}
) {}

public static function make(): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Filament/Config/FilamentBuilder/FilamentBuilderBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ public function __construct(
protected string $name = 'block',
protected ?string $icon = null,
protected int $columns = 2,
) {
}
) {}

public static function make(array $fields): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ public function __construct(
protected ?int $minItems = null,
protected ?int $maxItems = null,
protected int $columnSpan = 2,
) {
}
) {}

public static function make(array $content): self
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ protected function __construct(
protected ?int $offset = null,
protected ?string $pretty_offset = null,
protected ?string $label = null,
) {
}
) {}

public static function make(bool $sort_utc = false): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Filament/Config/FilamentChart.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ class FilamentChart
public array $stats = [];

public function __construct(
) {
}
) {}

public static function chartBy(string $table, string $field, ?string $limit_year = null, bool $published = false): FilamentChart
{
Expand Down
3 changes: 1 addition & 2 deletions src/Filament/Config/FilamentChart/ChartByMonth.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ protected function __construct(
protected ?Collection $data = null,
protected ?int $startMonth = null,
protected ?int $endMonth = null,
) {
}
) {}

/**
* Create a new chart instance.
Expand Down
3 changes: 1 addition & 2 deletions src/Filament/Config/FilamentLayout.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ public function __construct(
protected Form $form,
protected int $width = 3,
protected array $schema = [],
) {
}
) {}

public static function make(Form $form): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Filament/Config/FilamentLayout/FilamentLayoutColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ public function __construct(
protected array $sections = [],
protected int $width = 2,
protected bool|Closure $hidden = false,
) {
}
) {}

/**
* @param FilamentLayoutSection[] $sections
Expand Down
3 changes: 1 addition & 2 deletions src/Filament/Config/FilamentLayout/FilamentLayoutSection.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ class FilamentLayoutSection
{
protected function __construct(
protected array $fields = [],
) {
}
) {}

/**
* @param Component[] $fields
Expand Down
3 changes: 1 addition & 2 deletions src/Jobs/ProcessFavicon.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ class ProcessFavicon implements ShouldQueue
* Create a new job instance.
*/
public function __construct(
) {
}
) {}

/**
* Execute the job.
Expand Down
4 changes: 1 addition & 3 deletions src/Jobs/ProcessManifest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ class ProcessManifest implements ShouldQueue
/**
* Create a new job instance.
*/
public function __construct()
{
}
public function __construct() {}

/**
* Execute the job.
Expand Down
3 changes: 1 addition & 2 deletions src/Jobs/ProcessOpenGraph.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ class ProcessOpenGraph implements ShouldQueue
* Create a new job instance.
*/
public function __construct(
) {
}
) {}

/**
* Execute the job.
Expand Down
3 changes: 1 addition & 2 deletions src/Jobs/ProcessPublish.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ public function __construct(
public string $model,
public bool $unpublish = false,
public array $recipients = [],
) {
}
) {}

/**
* Execute the job.
Expand Down
3 changes: 1 addition & 2 deletions src/Livewire/Traits/LiveNotify.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public function __construct(
protected ?string $message = 'Notification message',
protected string $icon = 'heroicon-o-information-circle',
protected string $iconColor = 'primary',
) {
}
) {}

/**
* Set notification title.
Expand Down
3 changes: 1 addition & 2 deletions src/Queries/ExportQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ protected function __construct(
protected ?string $path = null,
protected bool $toSave = false,
protected bool $skipExcel = false,
) {
}
) {}

public static function make(Collection $data, QueryBuilder $query, string $name, ?string $export = null, ?string $path = null, bool $skipExcel = false): self
{
Expand Down
3 changes: 1 addition & 2 deletions src/Queries/Filter/GlobalSearchFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ class GlobalSearchFilter implements Filter
{
public function __construct(
public array $fields,
) {
}
) {}

public function __invoke(Builder $query, $value, string $property)
{
Expand Down
6 changes: 2 additions & 4 deletions src/Queries/QueryResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ protected function __construct(
public ?string $prev_page_url = null,
public ?int $to = null,
public ?int $total = null,
) {
}
) {}

public static function make(LengthAwarePaginator|Collection $original, string $defaultSort): self
{
Expand Down Expand Up @@ -83,8 +82,7 @@ protected function __construct(
public ?string $url,
public ?string $label,
public bool $active = false,
) {
}
) {}

public static function toArray(array $links): array
{
Expand Down
3 changes: 1 addition & 2 deletions src/Services/ClassParser/ClassParserItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ protected function __construct(
protected ?Model $model = null,
protected ?ReflectionClass $reflect = null,
protected ?MetaClassItem $meta = null,
) {
}
) {}

/**
* Parse class to get some informations about.
Expand Down
3 changes: 1 addition & 2 deletions src/Services/ClassParser/MetaClassItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ protected function __construct(
protected ?string $classSlugPlural = null,
protected ?string $firstChar = null,
protected array $traits = [],
) {
}
) {}

/**
* Create a new MetaClass instance.
Expand Down
3 changes: 1 addition & 2 deletions src/Services/Datayable/DatayableItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,5 @@ public function __construct(
public bool $with_at = false,
public bool $is_active = true,
public bool $is_link = true,
) {
}
) {}
}
3 changes: 1 addition & 2 deletions src/Services/GravatarService.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ protected function __construct(
protected int $size = 200,
protected string $rating = 'g', // g, pg, r, x
protected ?string $email = null,
) {
}
) {}

public static function make(): self
{
Expand Down
Loading

0 comments on commit 423e279

Please sign in to comment.