Skip to content
This repository was archived by the owner on Jun 22, 2022. It is now read-only.

Commit 91222e2

Browse files
style: Apply fixes from StyleCI (#1)
Co-authored-by: Mitul Golakiya <mitulgolakiya@users.noreply.github.com>
1 parent c54b4d0 commit 91222e2

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

src/CoreUIPreset.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,19 @@ public function __construct(Command $command)
2323
/**
2424
* Update the given package array.
2525
*
26-
* @param array $packages
26+
* @param array $packages
27+
*
2728
* @return array
2829
*/
2930
protected static function updatePackageArray(array $packages)
3031
{
3132
return [
32-
'bootstrap' => '^4.1.0',
33-
'jquery' => '^3.2',
34-
'popper.js' => '^1.12',
35-
'@coreui/coreui' => '^3.2.2',
36-
"@coreui/icons" => "^1.0.1",
37-
] + $packages;
33+
'bootstrap' => '^4.1.0',
34+
'jquery' => '^3.2',
35+
'popper.js' => '^1.12',
36+
'@coreui/coreui' => '^3.2.2',
37+
'@coreui/icons' => '^1.0.1',
38+
] + $packages;
3839
}
3940

4041
public function install()
@@ -97,7 +98,7 @@ protected function scaffoldController()
9798
mkdir($directory, 0755, true);
9899
}
99100

100-
$filesystem = new Filesystem;
101+
$filesystem = new Filesystem();
101102

102103
collect($filesystem->allFiles(base_path('vendor/laravel/ui/stubs/Auth')))
103104
->each(function (SplFileInfo $file) use ($filesystem) {
@@ -118,8 +119,7 @@ protected function scaffoldAuth()
118119
FILE_APPEND
119120
);
120121

121-
tap(new Filesystem, function ($filesystem) {
122-
122+
tap(new Filesystem(), function ($filesystem) {
123123
$filesystem->copyDirectory(__DIR__.'/../coreui-stubs/auth', resource_path('views/auth'));
124124
$filesystem->copyDirectory(__DIR__.'/../coreui-stubs/layouts', resource_path('views/layouts'));
125125
$filesystem->copy(__DIR__.'/../coreui-stubs/home.blade.php', resource_path('views/home.blade.php'));

src/CoreUIPresetServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class CoreUIPresetServiceProvider extends ServiceProvider
1010
public function boot()
1111
{
1212
UiCommand::macro('coreui', function (UiCommand $command) {
13-
1413
$coreUIPreset = new CoreUIPreset($command);
1514
$coreUIPreset->install();
1615

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy