Skip to content

Commit 3a46e6f

Browse files
committed
Format code with Pint
1 parent a1c04da commit 3a46e6f

16 files changed

+39
-16
lines changed

Diff for: app/Console/Kernel.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ protected function schedule(Schedule $schedule)
2525
*/
2626
protected function commands()
2727
{
28-
$this->load(__DIR__.'/Commands');
28+
$this->load(__DIR__ . '/Commands');
2929

3030
require base_path('routes/console.php');
3131
}

Diff for: app/Http/Middleware/Authenticate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Authenticate extends Middleware
1414
*/
1515
protected function redirectTo($request)
1616
{
17-
if (! $request->expectsJson()) {
17+
if (!$request->expectsJson()) {
1818
return route('login');
1919
}
2020
}

Diff for: app/Models/Request.php

+4
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
class Request
66
{
77
private string $url;
8+
89
private string $method;
10+
911
private array $headers = [];
12+
1013
private array $data = [];
14+
1115
private bool $multipartFormData = false;
1216

1317
private function __construct($url, $method)

Diff for: composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
},
1414
"require-dev": {
1515
"fakerphp/faker": "^1.9.1",
16-
"laravel/pint": "^1.0",
16+
"laravel/pint": "^1.1",
1717
"laravel/sail": "^1.0.1",
1818
"mockery/mockery": "^1.4.4",
1919
"nunomaduro/collision": "^6.1",

Diff for: composer.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: config/app.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
|
4242
*/
4343

44-
'debug' => (bool) env('APP_DEBUG', false),
44+
'debug' => (bool)env('APP_DEBUG', false),
4545

4646
/*
4747
|--------------------------------------------------------------------------

Diff for: config/broadcasting.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
'secret' => env('PUSHER_APP_SECRET'),
3737
'app_id' => env('PUSHER_APP_ID'),
3838
'options' => [
39-
'host' => env('PUSHER_HOST', 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com') ?: 'api-'.env('PUSHER_APP_CLUSTER', 'mt1').'.pusher.com',
39+
'host' => env('PUSHER_HOST', 'api-' . env('PUSHER_APP_CLUSTER', 'mt1') . '.pusher.com') ?: 'api-' . env('PUSHER_APP_CLUSTER', 'mt1') . '.pusher.com',
4040
'port' => env('PUSHER_PORT', 443),
4141
'scheme' => env('PUSHER_SCHEME', 'https'),
4242
'encrypted' => true,

Diff for: config/cache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@
105105
|
106106
*/
107107

108-
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache_'),
108+
'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache_'),
109109

110110
];

Diff for: config/database.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125

126126
'options' => [
127127
'cluster' => env('REDIS_CLUSTER', 'redis'),
128-
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'),
128+
'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_') . '_database_'),
129129
],
130130

131131
'default' => [

Diff for: config/filesystems.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
'public' => [
4040
'driver' => 'local',
4141
'root' => storage_path('app/public'),
42-
'url' => env('APP_URL').'/storage',
42+
'url' => env('APP_URL') . '/storage',
4343
'visibility' => 'public',
4444
'throw' => false,
4545
],

Diff for: config/logging.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
'handler_with' => [
8686
'host' => env('PAPERTRAIL_URL'),
8787
'port' => env('PAPERTRAIL_PORT'),
88-
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
88+
'connectionString' => 'tls://' . env('PAPERTRAIL_URL') . ':' . env('PAPERTRAIL_PORT'),
8989
],
9090
],
9191

Diff for: config/session.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128

129129
'cookie' => env(
130130
'SESSION_COOKIE',
131-
Str::slug(env('APP_NAME', 'laravel'), '_').'_session'
131+
Str::slug(env('APP_NAME', 'laravel'), '_') . '_session'
132132
),
133133

134134
/*

Diff for: pint.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"blank_line_before_statement": {
5+
"statements": ["return", "try"]
6+
},
7+
"cast_spaces": {
8+
"space": "none"
9+
},
10+
"concat_space": {
11+
"spacing": "one"
12+
},
13+
"not_operator_with_successor_space": false,
14+
"logical_operators": true
15+
},
16+
"notPath": [
17+
"tests/fixtures"
18+
]
19+
}

Diff for: public/index.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
|
1717
*/
1818

19-
if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) {
19+
if (file_exists($maintenance = __DIR__ . '/../storage/framework/maintenance.php')) {
2020
require $maintenance;
2121
}
2222

@@ -31,7 +31,7 @@
3131
|
3232
*/
3333

34-
require __DIR__.'/../vendor/autoload.php';
34+
require __DIR__ . '/../vendor/autoload.php';
3535

3636
/*
3737
|--------------------------------------------------------------------------
@@ -44,7 +44,7 @@
4444
|
4545
*/
4646

47-
$app = require_once __DIR__.'/../bootstrap/app.php';
47+
$app = require_once __DIR__ . '/../bootstrap/app.php';
4848

4949
$kernel = $app->make(Kernel::class);
5050

Diff for: routes/channels.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
*/
1515

1616
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
17-
return (int) $user->id === (int) $id;
17+
return (int)$user->id === (int)$id;
1818
});

Diff for: tests/CreatesApplication.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ trait CreatesApplication
1313
*/
1414
public function createApplication()
1515
{
16-
$app = require __DIR__.'/../bootstrap/app.php';
16+
$app = require __DIR__ . '/../bootstrap/app.php';
1717

1818
$app->make(Kernel::class)->bootstrap();
1919

0 commit comments

Comments
 (0)