Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogobbosouza committed Jul 25, 2022
1 parent 8749471 commit 696c1a4
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
8 changes: 4 additions & 4 deletions config/tallkit.php
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@
'icon-right' => [],

'text' => [
'class' => 'flex-1 text-left'
'class' => 'flex-1 text-left',
],

'colors' => [
Expand Down Expand Up @@ -1395,7 +1395,7 @@
'text' => 'Options',
'tooltip' => 'Options',
'color' => 'none',
'icon' => '<svg class="mx-auto w-4 h-4" viewBox="0 0 192 512"><path fill="currentColor" d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"></path></svg>'
'icon' => '<svg class="mx-auto w-4 h-4" viewBox="0 0 192 512"><path fill="currentColor" d="M96 184c39.8 0 72 32.2 72 72s-32.2 72-72 72-72-32.2-72-72 32.2-72 72-72zM24 80c0 39.8 32.2 72 72 72s72-32.2 72-72S135.8 8 96 8 24 40.2 24 80zm0 352c0 39.8 32.2 72 72 72s72-32.2 72-72-32.2-72-72-72-72 32.2-72 72z"></path></svg>',
],

'show' => [
Expand Down Expand Up @@ -2253,7 +2253,7 @@
'turbo' => true,

'meta' => [
'turbo-cache-control' => 'no-preview'
'turbo-cache-control' => 'no-preview',
],

'google-fonts' => [
Expand Down Expand Up @@ -2311,7 +2311,7 @@
'turbo' => true,

'meta' => [
'turbo-cache-control' => 'no-preview'
'turbo-cache-control' => 'no-preview',
],

'google-fonts' => [
Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/buttons/button.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
->merge($bordered && $colorName ? [
'class' => 'border border-'.$colorName.'-'.$colorHover,
] : [])
->merge(!$outlined && !$linkText && $colorName ? [
->merge(! $outlined && ! $linkText && $colorName ? [
'class' => 'bg-'.$colorName.'-'.$colorWeight.' hover:bg-'.$colorName.'-'.$colorHover.' text-white',
] : [])
->merge($isActive() ? $attributes->mergeOnlyThemeProvider($themeProvider, 'active')->getAttributes() : [])
->merge($tooltip ? ['data-tippy-content' => __($tooltip)] : [], false)
}}
@if ($href) href="{{ $href }}" @endif
@if (!$href) type="{{ $type }}" @endif
@if (! $href) type="{{ $type }}" @endif
@if ($href && $target) target="{{ $target }}" @endif
@if ($click) @click="{{ $click }}" @endif
@if ($wireClick) wire:click="{{ $wireClick }}" @endif
Expand Down
2 changes: 1 addition & 1 deletion resources/views/components/forms/select.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
multiple
@endif
>
@if ($emptyOption && !$multiple)
@if ($emptyOption && ! $multiple)
<option value="">{{ $emptyOption === true ? '---' : $emptyOption }}</option>
@endif

Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/scripts/google-fonts.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@if ($noscript && !$useStylesheet)
@if ($noscript && ! $useStylesheet)
<noscript><link rel="stylesheet" href="{!! $url !!}" /></noscript>
@endif

@if (!$noscript)
@if (! $noscript)
@if ($prefetch)
<link rel="dns-prefetch" href="https://fonts.gstatic.com/" />
@endif
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Buttons/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public function isActive()
return true;
}

if (!$this->href) {
if (! $this->href) {
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Components/Crud/CrudActions.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public function __construct(
$theme
);

$this->actions = $this->actions->concat($this->getDefaultActions())->map(function($action, $name) {
$this->actions = $this->actions->concat($this->getDefaultActions())->map(function ($action, $name) {
return Arr::set($action, 'route', Arr::get($action, 'route', $this->getRoute($name, $action)));
})->filter(function($action) {
})->filter(function ($action) {
return $action['route'];
});

Expand Down
4 changes: 2 additions & 2 deletions src/Components/Scripts/GoogleFonts.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function __construct(
$this->preload = $preload ?? false;
$this->useStylesheet = $useStylesheet ?? false;

if (!$display && $this->preload) {
if (! $display && $this->preload) {
$display = 'swap';
}

Expand All @@ -79,7 +79,7 @@ private function constructUrl($families, $display = null)
return $families;
}

$params = Collection::make($families)->map(function($family) {
$params = Collection::make($families)->map(function ($family) {
return 'family='.$family;
});

Expand Down

0 comments on commit 696c1a4

Please sign in to comment.