Skip to content

Commit 879254a

Browse files
authored
Apply fixes from StyleCI (#29)
1 parent a2941ef commit 879254a

File tree

7 files changed

+11
-19
lines changed

7 files changed

+11
-19
lines changed

src/Http/Composers/PressMenuComposer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ protected function registerMenuPost(Dashboard $kernel): self
6060
->canSee($page->display)
6161
);
6262
});
63+
6364
return $this;
6465
}
6566
}

src/Http/Screens/Comment/CommentEditScreen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
use Illuminate\Http\Request;
88
use Orchid\Press\Http\Layouts\Comment\CommentEditLayout;
99
use Orchid\Press\Models\Comment;
10-
use Orchid\Screen\Layout;
1110
use Orchid\Screen\Actions\Link;
11+
use Orchid\Screen\Layout;
1212
use Orchid\Screen\Screen;
1313
use Orchid\Support\Facades\Alert;
1414

src/Http/Screens/EntityEditScreen.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
use Orchid\Press\Entities\EntityContract;
1010
use Orchid\Press\Entities\Many;
1111
use Orchid\Press\Models\Post;
12-
use Orchid\Screen\Layout;
1312
use Orchid\Press\Screen\Actions\Link;
1413
use Orchid\Screen\Actions\Button;
15-
use Orchid\Screen\Actions\DropDown;
14+
use Orchid\Screen\Layout;
1615
use Orchid\Screen\Screen;
1716
use Orchid\Support\Facades\Alert;
1817

src/Http/Screens/EntityListScreen.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
use Orchid\Press\Http\Layouts\EntitiesLayout;
1111
use Orchid\Press\Http\Layouts\EntitiesSelection;
1212
use Orchid\Press\Models\Post;
13-
use Orchid\Screen\Layout;
1413
use Orchid\Screen\Actions\Link;
14+
use Orchid\Screen\Layout;
1515
use Orchid\Screen\Screen;
1616
use Orchid\Support\Facades\Alert;
1717

src/Providers/PressServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ public function boot(Dashboard $dashboard)
6060
$this->dashboard
6161
//->registerEntities($this->findEntities())
6262
//->macro($this->findEntities())
63-
->registerResource('entities',$this->findEntities())
63+
->registerResource('entities', $this->findEntities())
6464
->registerPermissions($this->registerPermissionsEntities())
6565
->registerPermissions($this->registerPermissions());
66-
6766
});
6867

6968
$this->dashboard
@@ -191,6 +190,7 @@ public function findEntities(): array
191190
$resources[] = $resource;
192191
}
193192
}
193+
194194
return collect($resources)->sort()->all();
195195
}
196196

src/Screen/Actions/Link.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66

77
use Orchid\Screen\Actions\Link as BaseLink;
88

9-
109
class Link extends BaseLink
1110
{
12-
1311
/**
1412
* @param string $view
1513
*
@@ -20,6 +18,7 @@ public static function view(string $view): self
2018
$link = new static();
2119
$link->name('Locale');
2220
$link->view = $view;
21+
2322
return $link;
2423
}
2524
}

src/Support/helpers.php

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

55
use Orchid\Alert\Alert;
66
use Orchid\Screen\Builder;
7-
use Illuminate\Support\Str;
87
use Orchid\Screen\Repository;
9-
use Orchid\Filters\HttpFilter;
10-
use Orchid\Support\Facades\Setting;
11-
use Symfony\Component\Finder\Finder;
12-
use Orchid\Support\Facades\Dashboard;
138

14-
15-
if (! function_exists('generate_form')) {
9+
if (!function_exists('generate_form')) {
1610
/**
17-
*
1811
* Generate a ready-made html form for display to the user.
1912
*
2013
* @param array $fields
@@ -39,16 +32,16 @@ function generate_form(array $fields, $data = [], string $language = null, strin
3932
}
4033
}
4134

42-
if (! function_exists('theme_path')) {
35+
if (!function_exists('theme_path')) {
4336
/**
4437
* Helper function to send an alert.
4538
*
4639
* @param $img
47-
* @param string $level
40+
* @param string $level
4841
*
4942
* @return Alert
5043
*/
51-
function theme_path( $path='')
44+
function theme_path($path = '')
5245
{
5346
return '/dashboard/resources/press/'.config('press.theme').'/'.$path;
5447
}

0 commit comments

Comments
 (0)