Skip to content

Commit 8e0eadb

Browse files
Nickson256github-actions[bot]
authored andcommitted
Fix styling
1 parent bdcd69e commit 8e0eadb

File tree

4 files changed

+16
-21
lines changed

4 files changed

+16
-21
lines changed

packages/bpmn/src/BpmnServiceProvider.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function configureMoox(Package $package): void
2424
->hasMigrations()
2525
->hasCommands()
2626
->hasAssets(); // exposes public assets
27-
27+
2828
// Load config from composer.json
29-
$mooxConfig = $this->getMooxConfig();
29+
$mooxConfig = $this->getMooxConfig();
3030
$mooxPackage = $this->getMooxPackage();
3131

3232
// Map dynamic config → Moox package metadata
@@ -53,7 +53,7 @@ public function boot(): void
5353
parent::boot();
5454

5555
// Ensure Blade views load
56-
$this->loadViewsFrom(__DIR__ . '/../resources/views', 'bpmn');
56+
$this->loadViewsFrom(__DIR__.'/../resources/views', 'bpmn');
5757

5858
// Register <x-bpmn-viewer />
5959
Blade::component('bpmn-viewer', BpmnViewer::class);
@@ -68,7 +68,7 @@ public function boot(): void
6868
private function getMooxConfig(): array
6969
{
7070
$composer = json_decode(
71-
file_get_contents(__DIR__ . '/../composer.json'),
71+
file_get_contents(__DIR__.'/../composer.json'),
7272
true
7373
);
7474

packages/bpmn/src/Forms/Components/BpmnViewer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
use Filament\Forms\Components\Field;
88
use Illuminate\Support\Facades\Storage;
9+
use Illuminate\View\View;
910
use Moox\Media\Models\Media;
1011
use Moox\Press\Models\WpMedia;
11-
use Illuminate\View\View;
1212

1313
class BpmnViewer extends Field
1414
{

packages/bpmn/src/View/Components/BpmnViewer.php

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
namespace Moox\Bpmn\View\Components;
66

7+
use Illuminate\Support\Facades\Storage;
8+
use Illuminate\View\Component;
79
use Illuminate\View\View;
810
use Moox\Media\Models\Media;
9-
use Illuminate\View\Component;
1011
use Moox\Press\Models\WpMedia;
11-
use Illuminate\Support\Facades\Storage;
1212

1313
class BpmnViewer extends Component
1414
{
@@ -24,13 +24,12 @@ public function __construct(
2424
$this->validateProps();
2525
}
2626

27-
2827
public function render(): View
2928
{
3029
return view('bpmn::components.bpmn-viewer', [
31-
'bpmnSource' => $this->getBpmnSource(),
32-
'canEdit' => $this->canEdit(),
33-
'canView' => $this->canView(),
30+
'bpmnSource' => $this->getBpmnSource(),
31+
'canEdit' => $this->canEdit(),
32+
'canView' => $this->canView(),
3433
'bpmnContent' => $this->getBpmnContent(),
3534
]);
3635
}
@@ -63,7 +62,7 @@ public function getBpmnContent(): ?string
6362
$content = Storage::disk('public')->get($normalized);
6463
} else {
6564
// fallback: absolute path
66-
$absolutePath = storage_path('app/public/' . $normalized);
65+
$absolutePath = storage_path('app/public/'.$normalized);
6766
if (file_exists($absolutePath)) {
6867
$content = file_get_contents($absolutePath);
6968
}
@@ -81,14 +80,14 @@ public function getBpmnSource(): array
8180
if ($this->mediaId) {
8281
return [
8382
'type' => 'media',
84-
'id' => $this->mediaId,
83+
'id' => $this->mediaId,
8584
];
8685
}
8786

8887
if ($this->wpMediaId) {
8988
return [
9089
'type' => 'wp-media',
91-
'id' => $this->wpMediaId,
90+
'id' => $this->wpMediaId,
9291
];
9392
}
9493

@@ -97,12 +96,11 @@ public function getBpmnSource(): array
9796
'type' => 'file',
9897
'path' => str_replace('\\', '/', $this->filePath),
9998
];
100-
10199
}
102-
100+
103101
return [
104102
'type' => 'none',
105-
'id' => null,
103+
'id' => null,
106104
];
107105
}
108106

@@ -139,7 +137,7 @@ private function validateProps(): void
139137
);
140138
}
141139

142-
if (!in_array($this->mode, ['view', 'edit'])) {
140+
if (! in_array($this->mode, ['view', 'edit'])) {
143141
throw new \InvalidArgumentException('Mode must be either "view" or "edit".');
144142
}
145143
}

packages/user/src/Models/User.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
use Illuminate\Notifications\Notifiable;
1212
use Illuminate\Support\Facades\Storage;
1313
use Spatie\Image\Enums\Fit;
14-
use Spatie\MediaLibrary\HasMedia;
15-
use Spatie\MediaLibrary\InteractsWithMedia;
1614
use Spatie\MediaLibrary\MediaCollections\Models\Media;
17-
use Spatie\Permission\Traits\HasRoles;
1815

1916
/**
2017
* @property string|null $avatar_url

0 commit comments

Comments
 (0)