@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | { |
| 44 | 44 | if (is_null($config = config('database.connections.sense'))) { |
| 45 | 45 | $defaultConnection = config('database.default'); |
| 46 | - if (is_null($fallbackConfig = config("database.connections.{$defaultConnection}"))){ |
|
| 46 | + if (is_null($fallbackConfig = config("database.connections.{$defaultConnection}"))) { |
|
| 47 | 47 | throw new \Exception('Database connection [sense] has not been configured.'); |
| 48 | 48 | } |
| 49 | 49 | config(['database.connections.sense' => $fallbackConfig]); |
@@ -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); |
@@ -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'); |