@@ -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 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $query = Url::query()->whereKey($url); |
25 | 25 | |
26 | 26 | $query->with([ |
27 | - 'requests' => function (Relation $relation) { |
|
27 | + 'requests' => function(Relation $relation) { |
|
28 | 28 | $relation->latest('id'); |
29 | 29 | }, |
30 | 30 | 'requests.summary', |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $query->with([ |
27 | 27 | 'url', |
28 | 28 | 'summary', |
29 | - 'statementSummaries' => function (Relation $relation) { |
|
29 | + 'statementSummaries' => function(Relation $relation) { |
|
30 | 30 | $relation->latest('id'); |
31 | 31 | }, |
32 | 32 | 'statementSummaries.statement', |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | 'prefix' => config('sense.uri', 'sense'), |
64 | 64 | 'namespace' => 'Cog\Laravel\Sense\Http\Controllers', |
65 | 65 | 'middleware' => config('sense.middleware', 'web'), |
66 | - ], function () { |
|
66 | + ], function() { |
|
67 | 67 | $this->loadRoutesFrom(__DIR__ . '/../../routes/web.php'); |
68 | 68 | }); |
69 | 69 | } |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | ]); |
133 | 133 | $request->summary()->create(); |
134 | 134 | |
135 | - DB::listen(function (QueryExecuted $query) use ($request) { |
|
135 | + DB::listen(function(QueryExecuted $query) use ($request) { |
|
136 | 136 | if ($this->isQueryShouldBeStored($query)) { |
137 | 137 | $this->storeStatement($request, $query); |
138 | 138 | $this->updateRequestSummary($request->getAttribute('summary'), $query); |
@@ -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(); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function up(): void |
27 | 27 | { |
28 | - Schema::create('sense_urls', function (Blueprint $table) { |
|
28 | + Schema::create('sense_urls', function(Blueprint $table) { |
|
29 | 29 | $table->bigIncrements('id'); |
30 | 30 | $table->mediumText('address'); |
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->unsignedBigInteger('request_id'); |
30 | 30 | $table->unsignedBigInteger('statement_id'); |
@@ -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->unsignedBigInteger('request_id'); |
30 | 30 | $table->unsignedInteger('queries_count')->default('0'); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function up(): void |
26 | 26 | { |
27 | - Schema::create('sense_requests', function (Blueprint $table) { |
|
27 | + Schema::create('sense_requests', function(Blueprint $table) { |
|
28 | 28 | $table->bigIncrements('id'); |
29 | 29 | $table->uuid('correlation_id'); |
30 | 30 | $table->unsignedBigInteger('url_id'); |