Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
atmonshi authored and github-actions[bot] committed Aug 12, 2024
1 parent 77d86e3 commit ab2314f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function getModel(string $model): string
{
return array_merge(
config('zeus-dynamic-dashboard.models'),
(new static())::get()->getModels()
(new static)::get()->getModels()
)[$model];
}

Expand Down
2 changes: 1 addition & 1 deletion src/DynamicDashboardPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function register(Panel $panel): void

public static function make(): static
{
return new self();
return new self;
}

public static function get(): static
Expand Down
4 changes: 2 additions & 2 deletions src/Facades/DynamicDashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function loadClasses(string $path, string $namespace): array
$classes = [];
$path = array_unique(Arr::wrap($path));

foreach ((new Finder())->in($path)->files() as $className) {
foreach ((new Finder)->in($path)->files() as $className) {
$classes[] = $namespace . $className->getFilenameWithoutExtension();
}

Expand Down Expand Up @@ -75,7 +75,7 @@ protected static function setLayout(array $classes): array
$allWidgets = [];

foreach ($classes as $widget) {
$widgetClass = new $widget();
$widgetClass = new $widget;

if ($widgetClass instanceof Widget && $widgetClass->enabled()) {
$allWidgets[] = $widgetClass->form();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function mount(?int $record = null): void
{
if ($record === null) {
$layoutModel = DynamicDashboardPlugin::get()->getModel('Layout');
$this->dashLayout = new $layoutModel();
$this->dashLayout = new $layoutModel;
foreach (DynamicDashboardPlugin::get()->getModel('Columns')::all() as $column) {
$this->{'widgetsFrom' . $column->key}->fill([
'widgetsData.' . $column->key => [],
Expand Down

0 comments on commit ab2314f

Please sign in to comment.