Skip to content

Commit

Permalink
cs
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Oct 8, 2024
1 parent fc4e3d1 commit ac74418
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
5 changes: 2 additions & 3 deletions packages/actions/src/Exports/Jobs/PrepareCsvExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Illuminate\Contracts\Filesystem\Filesystem;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Database\Connection;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
Expand Down Expand Up @@ -77,13 +76,13 @@ public function handle(): void
$originalBindings = $query->getRawBindings();

$query->reorder($qualifiedKeyName);

foreach ($originalOrders as $order) {
$query->orderBy($order['column'], $order['direction']);
}

$newBindings = $query->getRawBindings();

foreach ($originalBindings as $key => $value) {
if ($binding = array_diff($value, $newBindings[$key])) {
$query->addBinding($binding, $key);
Expand Down
20 changes: 11 additions & 9 deletions packages/forms/resources/views/components/repeater/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,15 +239,17 @@ class="absolute -top-3 left-3 px-1 text-sm font-medium"
@endif

@if ($isAddable && $addAction->isVisible())
<div @class([
'flex',
match ($getAddActionAlignment()) {
Alignment::Start, Alignment::Left => 'justify-start',
Alignment::Center, null => 'justify-center',
Alignment::End, Alignment::Right => 'justify-end',
default => $alignment,
},
])>
<div
@class([
'flex',
match ($getAddActionAlignment()) {
Alignment::Start, Alignment::Left => 'justify-start',
Alignment::Center, null => 'justify-center',
Alignment::End, Alignment::Right => 'justify-end',
default => $alignment,
},
])
>
{{ $addAction }}
</div>
@endif
Expand Down

0 comments on commit ac74418

Please sign in to comment.