@@ -15,7 +15,7 @@ |
||
| 15 | 15 | |
| 16 | 16 | protected function allowedToUseTinker(): bool |
| 17 | 17 | { |
| 18 | - if (! config('web-tinker.enabled')) { |
|
| 18 | + if (!config('web-tinker.enabled')) { |
|
| 19 | 19 | return false; |
| 20 | 20 | } |
| 21 | 21 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | EncryptCookies::class, |
| 53 | 53 | StartSession::class, |
| 54 | 54 | Authorize::class, |
| 55 | - ])->group(function () { |
|
| 55 | + ])->group(function() { |
|
| 56 | 56 | Route::get('/', [WebTinkerController::class, 'index']); |
| 57 | 57 | Route::post('/', [WebTinkerController::class, 'execute']); |
| 58 | 58 | }); |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | protected function registerWebTinkerGate() |
| 64 | 64 | { |
| 65 | - Gate::define('viewWebTinker', function ($user = null) { |
|
| 65 | + Gate::define('viewWebTinker', function($user = null) { |
|
| 66 | 66 | return app()->environment('local'); |
| 67 | 67 | }); |
| 68 | 68 | |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | { |
| 80 | 80 | $tokens = collect(token_get_all("<?php\n".$code.'?>')); |
| 81 | 81 | |
| 82 | - return $tokens->reduce(function ($carry, $token) { |
|
| 82 | + return $tokens->reduce(function($carry, $token) { |
|
| 83 | 83 | if (is_string($token)) { |
| 84 | 84 | return $carry.$token; |
| 85 | 85 | } |