Skip to content

Commit 0f83054

Browse files
tomschlickStyleCIBot
authored andcommitted
Apply fixes from StyleCI
[ci skip] [skip ci]
1 parent a5db98e commit 0f83054

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

src/Console/Commands/MakeModelAuditLogTable.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ public function generateAuditModelName($subject_model, array $config) : string
7575
return class_basename($subject_model) . $config['model_suffix'];
7676
}
7777

78-
7978
/**
8079
* @param Model $subject_model
8180
*
82-
* @return string
8381
* @throws \ReflectionException
82+
*
83+
* @return string
8484
*/
8585
public function getModelNamespace($subject_model) : string
8686
{
@@ -100,7 +100,7 @@ public function createModel($subject_model, array $config) : void
100100
$stub = $this->getStubWithReplacements($config['model_stub'], [
101101
'{TABLE_NAME}' => $this->generateAuditTableName($subject_model, $config),
102102
'{CLASS_NAME}' => $modelname,
103-
'{NAMESPACE}' => $this->getModelNamespace($subject_model),
103+
'{NAMESPACE}' => $this->getModelNamespace($subject_model),
104104
]);
105105

106106
$filename = $config['model_path'] . DIRECTORY_SEPARATOR . $modelname . '.php';
@@ -120,11 +120,11 @@ public function createMigration($subject_model, array $config) : void
120120
$fileslug = "create_{$tablename}_table";
121121

122122
$stub = $this->getStubWithReplacements($config['migration_stub'], [
123-
'{TABLE_NAME}' => $tablename,
124-
'{CLASS_NAME}' => $this->generateMigrationClassname($fileslug),
125-
'{PROCESS_IDS_SETUP}' => $this->generateMigrationProcessStamps($config),
123+
'{TABLE_NAME}' => $tablename,
124+
'{CLASS_NAME}' => $this->generateMigrationClassname($fileslug),
125+
'{PROCESS_IDS_SETUP}' => $this->generateMigrationProcessStamps($config),
126126
'{FOREIGN_KEY_SUBJECT}' => $this->generateMigrationSubjectForeignKeys($subject_model, $config),
127-
'{FOREIGN_KEY_USER}' => $this->generateMigrationUserForeignKeys($config),
127+
'{FOREIGN_KEY_USER}' => $this->generateMigrationUserForeignKeys($config),
128128
]);
129129

130130
$filename = $config['migration_path'] . DIRECTORY_SEPARATOR . $this->generateMigrationFilename($fileslug);
@@ -156,7 +156,7 @@ public function generateMigrationClassname(string $fileslug) : string
156156

157157
/**
158158
* @param string $file
159-
* @param array $replacements
159+
* @param array $replacements
160160
*
161161
* @return string
162162
*/
@@ -169,7 +169,6 @@ public function getStubWithReplacements(string $file, array $replacements) : str
169169
);
170170
}
171171

172-
173172
/**
174173
* @param Model $subject_model
175174
* @param array $config
@@ -195,7 +194,7 @@ public function generateMigrationSubjectForeignKeys($subject_model, array $confi
195194
public function generateMigrationUserForeignKeys(array $config) : string
196195
{
197196
$user_model = new $config['user_model']();
198-
if (Arr::get($config, 'enable_user_foreign_keys') === true && !empty($user_model)) {
197+
if (Arr::get($config, 'enable_user_foreign_keys') === true && ! empty($user_model)) {
199198
$user_table = $user_model->getTable();
200199
$user_primary = $user_model->getKeyName();
201200

0 commit comments

Comments
 (0)