Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
nikuscs authored and github-actions[bot] committed Dec 18, 2022
1 parent 242374f commit c031d6b
Show file tree
Hide file tree
Showing 52 changed files with 117 additions and 117 deletions.
4 changes: 2 additions & 2 deletions src/Core/Components/Concerns/HasErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasErrors
{
protected string | Closure | null $errors = null;
protected string|Closure|null $errors = null;

public function errors(string | Closure | null $errors): static
public function errors(string|Closure|null $errors): static
{
$this->errors = $errors;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Components/Concerns/HasFavoriteCountries.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasFavoriteCountries
{
protected array | Closure $favoriteCountries = ['US', 'GB', 'PT', 'FR', 'DE'];
protected array|Closure $favoriteCountries = ['US', 'GB', 'PT', 'FR', 'DE'];

public function favoriteCountries(array | Closure $countries = ['US', 'GB', 'PT', 'FR', 'DE']): static
public function favoriteCountries(array|Closure $countries = ['US', 'GB', 'PT', 'FR', 'DE']): static
{
$this->favoriteCountries = $countries;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Components/Concerns/HasFeedback.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasFeedback
{
protected string | Closure | null $feedback = null;
protected string|Closure|null $feedback = null;

public function feedback(string | Closure | null $feedback): static
public function feedback(string|Closure|null $feedback): static
{
$this->feedback = $feedback;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Components/Concerns/HasHTMLAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasHTMLAttributes
{
protected Closure | array $attributes = [];
protected Closure|array $attributes = [];

public function attributes(array | Closure $attributes): static
public function attributes(array|Closure $attributes): static
{
$this->attributes = $attributes;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Components/Concerns/HasLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

trait HasLabel
{
protected string | Closure | null $label = null;
protected string|Closure|null $label = null;

protected bool $shouldTranslateLabel = false;

public function label(string | Closure | null $label): static
public function label(string|Closure|null $label): static
{
$this->label = $label;

Expand Down
12 changes: 6 additions & 6 deletions src/Core/Components/Concerns/HasOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@

trait HasOptions
{
protected array | Closure $options = [];
protected array|Closure $options = [];

protected string | Closure $optionTextAttribute = 'text';
protected string|Closure $optionTextAttribute = 'text';

protected string | Closure $optionLabelAttribute = 'value';
protected string|Closure $optionLabelAttribute = 'value';

public function options(array | Closure $optionsOrClosure): static
public function options(array|Closure $optionsOrClosure): static
{
$this->options = Option::make()->fromArray($this->evaluate($optionsOrClosure));

return $this;
}

public function optionTextAttribute(string | Closure $optionTextAttribute): static
public function optionTextAttribute(string|Closure $optionTextAttribute): static
{
$this->optionTextAttribute = $optionTextAttribute;

return $this;
}

public function optionLabelAttribute(string | Closure $optionLabelAttribute): static
public function optionLabelAttribute(string|Closure $optionLabelAttribute): static
{
$this->optionLabelAttribute = $optionLabelAttribute;

Expand Down
6 changes: 3 additions & 3 deletions src/Core/Components/Concerns/HasPlaceholder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@

trait HasPlaceholder
{
protected string | Closure | null $placeholder = null;
protected string|Closure|null $placeholder = null;

public function placeholder(string | Closure | null $placeholder): static
public function placeholder(string|Closure|null $placeholder): static
{
$this->placeholder = $placeholder;

return $this;
}

public function getPlaceholder(): string | null
public function getPlaceholder(): string|null
{
return $this->evaluate($this->placeholder);
}
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Confirmation/Concerns/CanBeEnabledOrDisabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait CanBeEnabledOrDisabled
{
protected bool | Closure $isEnabled = true;
protected bool|Closure $isEnabled = true;

public function enabled(bool | Closure $condition = true): static
public function enabled(bool|Closure $condition = true): static
{
$this->isEnabled = $condition;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Confirmation/Concerns/CanBeRaw.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait CanBeRaw
{
protected bool | Closure $isRaw = false;
protected bool|Closure $isRaw = false;

public function raw(bool | Closure $condition = true): static
public function raw(bool|Closure $condition = true): static
{
$this->isRaw = $condition;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Confirmation/Concerns/HasButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasButtons
{
protected null | string | Closure $confirmButtonLabel = 'Ok, got it';
protected null|string|Closure $confirmButtonLabel = 'Ok, got it';

protected null | string | Closure $cancelButtonLabel = 'Nah, cancel';
protected null|string|Closure $cancelButtonLabel = 'Nah, cancel';

public function buttons(string|null|Closure $confirmButtonText = 'Ok, got it', string|null|Closure $cancelButtonText = 'Nah, cancel'): static
{
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Confirmation/Concerns/HasClasses.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

trait HasClasses
{
protected array | Closure $classes = [
protected array|Closure $classes = [
'title' => '',
'subtitle' => '',
'text' => '',
];

public function classes(array | Closure $classes): static
public function classes(array|Closure $classes): static
{
$this->classes = $classes;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Confirmation/Concerns/HasLevel.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasLevel
{
protected string | Closure $level = 'info';
protected string|Closure $level = 'info';

public function level(string | Closure $level): static
public function level(string|Closure $level): static
{
$this->level = $level;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Confirmation/Concerns/HasSubtitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasSubtitle
{
protected string | Closure $subtitle = '';
protected string|Closure $subtitle = '';

public function subtitle(string | Closure $title): static
public function subtitle(string|Closure $title): static
{
$this->subtitle = $title;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Confirmation/Concerns/HasText.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasText
{
protected string | Closure $text = '';
protected string|Closure $text = '';

public function text(string | Closure $title): static
public function text(string|Closure $title): static
{
$this->text = $title;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Confirmation/Concerns/HasTitle.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasTitle
{
protected string | Closure | null $title = '';
protected string|Closure|null $title = '';

public function title(string | Closure | null $title): static
public function title(string|Closure|null $title): static
{
$this->title = $title;

Expand Down
2 changes: 1 addition & 1 deletion src/Core/Option/Concerns/CanBeDisabled.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ trait CanBeDisabled
{
protected string $disabledKey = 'disabled';

protected bool | Closure $isDisabled = false;
protected bool|Closure $isDisabled = false;

public function disabled(bool|Closure $condition = true): static
{
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Option/Concerns/HasChildren.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ trait HasChildren
{
protected string $childrenKey = 'children';

protected array | Closure $children = [];
protected array|Closure $children = [];

public function children(array | Closure | null $options): static
public function children(array|Closure|null $options): static
{
$options = $this->evaluate($options);
if (! is_array($options)) {
Expand Down
4 changes: 2 additions & 2 deletions src/Core/Polling/Concerns/CanBeStopped.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait CanBeStopped
{
protected bool | Closure $stopWhenDataChanges = false;
protected bool|Closure $stopWhenDataChanges = false;

public function stopOnDataChange(bool | Closure $condition = true): static
public function stopOnDataChange(bool|Closure $condition = true): static
{
$this->stopWhenDataChanges = $condition;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Polling/Concerns/CanBeToggled.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait CanBeToggled
{
protected bool | Closure $isEnabled = false;
protected bool|Closure $isEnabled = false;

public function enabled(bool | Closure $condition = true): static
public function enabled(bool|Closure $condition = true): static
{
$this->isEnabled = $condition;

Expand Down
4 changes: 2 additions & 2 deletions src/Core/Polling/Concerns/HasInterval.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ trait HasInterval

protected int|float $poolDuring = 120;

public function every(int | float | Closure $secondsOrClosure = 5): static
public function every(int|float|Closure $secondsOrClosure = 5): static
{
$this->poolEvery = $secondsOrClosure;

return $this;
}

public function during(int | float | Closure $secondsOrClosure = 120): static
public function during(int|float|Closure $secondsOrClosure = 120): static
{
$this->poolDuring = $secondsOrClosure;

Expand Down
4 changes: 2 additions & 2 deletions src/Datatables/Actions/Concerns/CanBeExecuted.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

trait CanBeExecuted
{
protected null | Closure | string $executeUsing = null;
protected null|Closure|string $executeUsing = null;

protected ?string $executeUsingMethod = null;

Expand All @@ -24,7 +24,7 @@ public function using(Closure|null|string $closureOrInvokable = null, ?string $m
return $this;
}

protected function getExecuteUsing(): null | Closure | string
protected function getExecuteUsing(): null|Closure|string
{
return $this->executeUsing;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Datatables/Actions/Concerns/CanClearSelected.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

trait CanClearSelected
{
public function clearSelectionAfterAction(bool | Closure $clear = true): static
public function clearSelectionAfterAction(bool|Closure $clear = true): static
{
$this->after['clearSelected'] = $this->evaluate($clear);

Expand Down
2 changes: 1 addition & 1 deletion src/Datatables/Actions/Concerns/CanRefresh.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

trait CanRefresh
{
public function refreshAfterExecuted(bool | Closure $refresh = false): static
public function refreshAfterExecuted(bool|Closure $refresh = false): static
{
$this->after['refresh'] = $this->evaluate($refresh);

Expand Down
2 changes: 1 addition & 1 deletion src/Datatables/Actions/Concerns/CanResetFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

trait CanResetFilters
{
public function clearFilters(bool | Closure $clear = false): static
public function clearFilters(bool|Closure $clear = false): static
{
$this->after['resetFilters'] = $this->evaluate($clear);

Expand Down
2 changes: 1 addition & 1 deletion src/Datatables/Actions/Concerns/HasAfter.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

trait HasAfter
{
protected array | Closure $after = [];
protected array|Closure $after = [];

public function after(array|Closure $after = []): static
{
Expand Down
2 changes: 1 addition & 1 deletion src/Datatables/Actions/Concerns/HasBefore.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

trait HasBefore
{
protected array | Closure $before = [];
protected array|Closure $before = [];

public function before(array|Closure $before = []): static
{
Expand Down
2 changes: 1 addition & 1 deletion src/Datatables/Actions/Concerns/HasFields.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

trait HasFields
{
protected array| Closure $fields = [];
protected array|Closure $fields = [];

public function fields(array $fields): static
{
Expand Down
8 changes: 4 additions & 4 deletions src/Datatables/Actions/Concerns/HasHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

trait HasHooks
{
protected null | Closure $onBefore = null;
protected null|Closure $onBefore = null;

protected null | Closure $onAfter = null;
protected null|Closure $onAfter = null;

protected null | Closure $onFinished = null;
protected null|Closure $onFinished = null;

protected null | Closure $onFailed = null;
protected null|Closure $onFailed = null;

public function onBefore(Closure|null $closure = null): static
{
Expand Down
4 changes: 2 additions & 2 deletions src/Datatables/Actions/Concerns/HasLabel.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@

trait HasLabel
{
protected string | Closure | null $label = null;
protected string|Closure|null $label = null;

protected bool $shouldTranslateLabel = false;

public function label(string | Closure | null $label): static
public function label(string|Closure|null $label): static
{
$this->label = $label;

Expand Down
4 changes: 2 additions & 2 deletions src/Datatables/Actions/Concerns/HasName.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

trait HasName
{
protected string | Closure | null $name = null;
protected string|Closure|null $name = null;

public function name(string | Closure $name): static
public function name(string|Closure $name): static
{
$this->name = $name;

Expand Down
Loading

0 comments on commit c031d6b

Please sign in to comment.