Skip to content

Commit 11b92bd

Browse files
qschmickgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 541a560 commit 11b92bd

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/Console/Commands/MakeRequestLogTable.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function handle()
3333
{
3434
$object_name = $this->argument('object-name');
3535

36-
while(! $object_name) {
36+
while (! $object_name) {
3737
$object_name = $this->ask('What is the name of the request object you are logging? (e.g. facebook becomes FacebookRequestLog)');
3838
}
3939

@@ -69,7 +69,7 @@ public function createModel(string $class_name, string $table_name, array $confi
6969
$stub = $this->getStubWithReplacements($config['model_stub'], [
7070
'{TABLE_NAME}' => $table_name,
7171
'{CLASS_NAME}' => $class_name,
72-
'{NAMESPACE}' => 'App\\' . str_replace('/', '\\', str_replace(app_path() . '/', '', $config['model_path'])),
72+
'{NAMESPACE}' => 'App\\' . str_replace('/', '\\', str_replace(app_path() . '/', '', $config['model_path'])),
7373
]);
7474

7575
$filename = $config['model_path'] . DIRECTORY_SEPARATOR . $class_name . '.php';
@@ -85,10 +85,10 @@ public function createMigration(string $object_name, array $config): void
8585
$file_slug = "create_{$table_name}_table";
8686

8787
$stub = $this->getStubWithReplacements($config['migration_stub'], [
88-
'{TABLE_NAME}' => $table_name,
89-
'{CLASS_NAME}' => Str::studly($file_slug),
90-
'{PROCESS_IDS_SETUP}' => $this->generateMigrationProcessStamps($config),
91-
'{PRECISION}' => $this->generatePrecisionValue($config),
88+
'{TABLE_NAME}' => $table_name,
89+
'{CLASS_NAME}' => Str::studly($file_slug),
90+
'{PROCESS_IDS_SETUP}' => $this->generateMigrationProcessStamps($config),
91+
'{PRECISION}' => $this->generatePrecisionValue($config),
9292
]);
9393

9494
$filename = $config['migration_path'] . DIRECTORY_SEPARATOR . $this->generateMigrationFilename($file_slug);

tests/RequestLogTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ public function test_make_from_guzzle_works()
4343
'GET',
4444
'/v1/test?test=true&log=everything',
4545
[],
46-
"['hidden' => 'value',]"
47-
,
46+
"['hidden' => 'value',]",
4847
);
4948

5049
$log = RequestLogBaseModel::makeFromGuzzle(

0 commit comments

Comments
 (0)