@@ -64,7 +64,7 @@ |
||
64 | 64 | { |
65 | 65 | $messages = self::$messages; |
66 | 66 | |
67 | - usort($messages, function ($itemA, $itemB) { |
|
67 | + usort($messages, function($itemA, $itemB) { |
|
68 | 68 | if ($itemA['time'] === $itemB['time']) { |
69 | 69 | return 0; |
70 | 70 | } |
@@ -41,14 +41,14 @@ |
||
41 | 41 | * |
42 | 42 | * @var JavascriptRenderer|null |
43 | 43 | */ |
44 | - private static JavascriptRenderer|null $render; |
|
44 | + private static JavascriptRenderer | null $render; |
|
45 | 45 | |
46 | 46 | /** |
47 | 47 | * DebugBar instance |
48 | 48 | * |
49 | 49 | * @var StandardDebugBar|null |
50 | 50 | */ |
51 | - private static StandardDebugBar|null $debugBar; |
|
51 | + private static StandardDebugBar | null $debugBar; |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * Initializes the Debug |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | private static function createTable() |
34 | 34 | { |
35 | - Capsule::schema()->create('migrations', function (Blueprint $table) { |
|
35 | + Capsule::schema()->create('migrations', function(Blueprint $table) { |
|
36 | 36 | $table->id(); |
37 | 37 | $table->string('migration'); |
38 | 38 | $table->integer('batch')->unsigned(); |
@@ -10,7 +10,7 @@ discard block |
||
10 | 10 | */ |
11 | 11 | public function up(): void |
12 | 12 | { |
13 | - Capsule::schema()->create('users', function (Blueprint $table) { |
|
13 | + Capsule::schema()->create('users', function(Blueprint $table) { |
|
14 | 14 | $table->id(); |
15 | 15 | $table->string('name')->unique(); |
16 | 16 | $table->string('email')->unique(); |
@@ -22,13 +22,13 @@ discard block |
||
22 | 22 | $table->timestamps(); |
23 | 23 | }); |
24 | 24 | |
25 | - Capsule::schema()->create('password_reset_tokens', function (Blueprint $table) { |
|
25 | + Capsule::schema()->create('password_reset_tokens', function(Blueprint $table) { |
|
26 | 26 | $table->string('email')->primary(); |
27 | 27 | $table->string('token'); |
28 | 28 | $table->timestamp('created_at')->nullable(); |
29 | 29 | }); |
30 | 30 | |
31 | - Capsule::schema()->create('sessions', function (Blueprint $table) { |
|
31 | + Capsule::schema()->create('sessions', function(Blueprint $table) { |
|
32 | 32 | $table->string('id')->primary(); |
33 | 33 | $table->foreignId('user_id')->nullable()->index(); |
34 | 34 | $table->string('ip_address', 45)->nullable(); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | * @return bool |
42 | 42 | * @throws DebugBarException |
43 | 43 | */ |
44 | - public static function connectDb(stdClass|null $db = null): bool |
|
44 | + public static function connectDb(stdClass | null $db = null): bool |
|
45 | 45 | { |
46 | 46 | if (static::$db !== null) { |
47 | 47 | return true; |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | * |
55 | 55 | * @var null|string |
56 | 56 | */ |
57 | - public null|string $template; |
|
57 | + public null | string $template; |
|
58 | 58 | |
59 | 59 | /** |
60 | 60 | * Contains the title of the view. |
@@ -172,30 +172,30 @@ discard block |
||
172 | 172 | |
173 | 173 | $container = new Container(); |
174 | 174 | |
175 | - $container->singleton('files', function () { |
|
175 | + $container->singleton('files', function() { |
|
176 | 176 | return new Filesystem(); |
177 | 177 | }); |
178 | 178 | |
179 | - $container->singleton('view.finder', function ($app) use ($viewPaths) { |
|
179 | + $container->singleton('view.finder', function($app) use ($viewPaths) { |
|
180 | 180 | return new FileViewFinder($app['files'], $viewPaths); |
181 | 181 | }); |
182 | 182 | |
183 | - $container->singleton('blade.compiler', function ($app) use ($cachePaths) { |
|
183 | + $container->singleton('blade.compiler', function($app) use ($cachePaths) { |
|
184 | 184 | return new BladeCompiler($app['files'], $cachePaths); |
185 | 185 | }); |
186 | 186 | |
187 | - $container->singleton('view.engine.resolver', function ($app) { |
|
187 | + $container->singleton('view.engine.resolver', function($app) { |
|
188 | 188 | $resolver = new EngineResolver(); |
189 | 189 | |
190 | 190 | // Register Blade engine |
191 | - $resolver->register('blade', function () use ($app) { |
|
191 | + $resolver->register('blade', function() use ($app) { |
|
192 | 192 | return new CompilerEngine($app['blade.compiler']); |
193 | 193 | }); |
194 | 194 | |
195 | 195 | return $resolver; |
196 | 196 | }); |
197 | 197 | |
198 | - $container->singleton('view', function ($app) { |
|
198 | + $container->singleton('view', function($app) { |
|
199 | 199 | $resolver = $app['view.engine.resolver']; |
200 | 200 | $finder = $app['view.finder']; |
201 | 201 | $dispatcher = new Dispatcher($app); |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | * @param array|string $path |
236 | 236 | * @return void |
237 | 237 | */ |
238 | - public function setTemplatesPath(array|string $path): void |
|
238 | + public function setTemplatesPath(array | string $path): void |
|
239 | 239 | { |
240 | 240 | if (is_array($path)) { |
241 | 241 | self::$templatesPath = array_merge($path, self::$templatesPath); |