@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function up(): void |
| 26 | 26 | { |
| 27 | - Schema::create('sense_request_summaries', function (Blueprint $table) { |
|
| 27 | + Schema::create('sense_request_summaries', function(Blueprint $table) { |
|
| 28 | 28 | $table->bigIncrements('id'); |
| 29 | 29 | $table->uuid('request_id'); |
| 30 | 30 | $table->string('method'); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | */ |
| 26 | 26 | public function up(): void |
| 27 | 27 | { |
| 28 | - Schema::create('sense_statements', function (Blueprint $table) { |
|
| 28 | + Schema::create('sense_statements', function(Blueprint $table) { |
|
| 29 | 29 | $table->bigIncrements('id'); |
| 30 | 30 | $table->mediumText('value'); |
| 31 | 31 | $table->timestamps(); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function up(): void |
| 26 | 26 | { |
| 27 | - Schema::create('sense_statement_summaries', function (Blueprint $table) { |
|
| 27 | + Schema::create('sense_statement_summaries', function(Blueprint $table) { |
|
| 28 | 28 | $table->bigIncrements('id'); |
| 29 | 29 | $table->char('request_id', 36); |
| 30 | 30 | $table->unsignedBigInteger('statement_id'); |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | */ |
| 34 | 34 | public static function check(Request $request): bool |
| 35 | 35 | { |
| 36 | - return (static::$using ?: function () { |
|
| 36 | + return (static::$using ?: function() { |
|
| 37 | 37 | return app()->environment('local'); |
| 38 | 38 | })($request); |
| 39 | 39 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | 'prefix' => config('sense.uri', 'sense'), |
| 62 | 62 | 'namespace' => 'Cog\Laravel\Sense\Http\Controllers', |
| 63 | 63 | 'middleware' => config('sense.middleware', 'web'), |
| 64 | - ], function () { |
|
| 64 | + ], function() { |
|
| 65 | 65 | $this->loadRoutesFrom(__DIR__ . '/../../routes/web.php'); |
| 66 | 66 | }); |
| 67 | 67 | } |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | // TODO: Add body |
| 128 | 128 | ]); |
| 129 | 129 | |
| 130 | - DB::listen(function (QueryExecuted $query) use ($requestId, $requestSummary) { |
|
| 130 | + DB::listen(function(QueryExecuted $query) use ($requestId, $requestSummary) { |
|
| 131 | 131 | if ($this->isQueryShouldBeStored($query)) { |
| 132 | 132 | $this->storeStatement($requestId, $query); |
| 133 | 133 | $this->updateRequestSummary($requestSummary, $query); |