Skip to content

Commit 034ceb3

Browse files
authored
Apply fixes from StyleCI (#1)
1 parent 3c4b371 commit 034ceb3

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

src/Console/Commands/InstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ public function handle()
4040
copy(__DIR__.'/../../stubs/index.php', public_path('index.php'));
4141
$this->info('Laravel Shared Hosting was installed successfully.');
4242
}
43-
}
43+
}

src/LaravelSharedHostingServiceProvider.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77

88
class LaravelSharedHostingServiceProvider extends ServiceProvider
99
{
10-
1110
protected $commands = [
12-
InstallCommand::class
11+
InstallCommand::class,
1312
];
1413

1514
/**
@@ -19,7 +18,6 @@ public function boot()
1918
{
2019
// Registering package commands.
2120
if ($this->app->runningInConsole()) {
22-
2321
$this->commands(
2422
$this->commands
2523
);
@@ -29,7 +27,7 @@ public function boot()
2927
public function register()
3028
{
3129
$this->commands([
32-
InstallCommand::class
30+
InstallCommand::class,
3331
]);
3432
}
3533
}

src/stubs/index.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
<?php
22

33
/**
4-
* Laravel - A PHP Framework For Web Artisans
4+
* Laravel - A PHP Framework For Web Artisans.
55
*
6-
* @package Laravel
76
* @author Taylor Otwell <taylor@laravel.com>
87
*/
9-
108
define('LARAVEL_START', microtime(true));
119

1210
/*

tests/LaravelSharedHostingTest.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22

33
namespace Wewowweb\LaravelSharedHosting\Tests;
44

5-
use Illuminate\Support\Facades\Artisan;
65
use Orchestra\Testbench\TestCase;
6+
use Illuminate\Support\Facades\Artisan;
77
use Wewowweb\LaravelSharedHosting\LaravelSharedHostingServiceProvider;
8+
89
class LaravelSharedHostingTest extends TestCase
910
{
10-
protected function getPackageProviders($app)
11-
{
12-
return [
13-
LaravelSharedHostingServiceProvider::class
11+
protected function getPackageProviders($app)
12+
{
13+
return [
14+
LaravelSharedHostingServiceProvider::class,
1415
];
15-
}
16+
}
1617

1718
/** @test */
1819
public function test_console_install_command()
@@ -25,4 +26,4 @@ public function test_console_install_command()
2526

2627
$this->assertEquals('Laravel Shared Hosting was installed successfully.'.PHP_EOL, $output);
2728
}
28-
}
29+
}

0 commit comments

Comments
 (0)