@@ -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 | } |
@@ -148,30 +148,30 @@ discard block |
||
| 148 | 148 | |
| 149 | 149 | $container = new Container(); |
| 150 | 150 | |
| 151 | - $container->singleton('files', function () { |
|
| 151 | + $container->singleton('files', function() { |
|
| 152 | 152 | return new Filesystem(); |
| 153 | 153 | }); |
| 154 | 154 | |
| 155 | - $container->singleton('view.finder', function ($app) use ($viewPaths) { |
|
| 155 | + $container->singleton('view.finder', function($app) use ($viewPaths) { |
|
| 156 | 156 | return new FileViewFinder($app['files'], $viewPaths); |
| 157 | 157 | }); |
| 158 | 158 | |
| 159 | - $container->singleton('blade.compiler', function ($app) use ($cachePaths) { |
|
| 159 | + $container->singleton('blade.compiler', function($app) use ($cachePaths) { |
|
| 160 | 160 | return new BladeCompiler($app['files'], $cachePaths); |
| 161 | 161 | }); |
| 162 | 162 | |
| 163 | - $container->singleton('view.engine.resolver', function ($app) { |
|
| 163 | + $container->singleton('view.engine.resolver', function($app) { |
|
| 164 | 164 | $resolver = new EngineResolver(); |
| 165 | 165 | |
| 166 | 166 | // Register Blade engine |
| 167 | - $resolver->register('blade', function () use ($app) { |
|
| 167 | + $resolver->register('blade', function() use ($app) { |
|
| 168 | 168 | return new CompilerEngine($app['blade.compiler']); |
| 169 | 169 | }); |
| 170 | 170 | |
| 171 | 171 | return $resolver; |
| 172 | 172 | }); |
| 173 | 173 | |
| 174 | - $container->singleton('view', function ($app) { |
|
| 174 | + $container->singleton('view', function($app) { |
|
| 175 | 175 | $resolver = $app['view.engine.resolver']; |
| 176 | 176 | $finder = $app['view.finder']; |
| 177 | 177 | $dispatcher = new Dispatcher($app); |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | * @param array|string $path |
| 235 | 235 | * @return void |
| 236 | 236 | */ |
| 237 | - public function setTemplatesPath(array|string $path): void |
|
| 237 | + public function setTemplatesPath(array | string $path): void |
|
| 238 | 238 | { |
| 239 | 239 | if (is_array($path)) { |
| 240 | 240 | self::$templatesPath = array_merge($path, self::$templatesPath); |
@@ -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; |