@@ -42,7 +42,7 @@ |
||
42 | 42 | { |
43 | 43 | parent::boot(); |
44 | 44 | |
45 | - self::creating(function (self $model) { |
|
45 | + self::creating(function(self $model) { |
|
46 | 46 | $model->method = strtoupper($model->method); |
47 | 47 | $model->params = json_encode($model->params); |
48 | 48 | }); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | $config = Helper::getConfig(); |
13 | 13 | |
14 | - Schema::connection($config['database_connection'])->create($config['table_name'], function (Blueprint $table) { |
|
14 | + Schema::connection($config['database_connection'])->create($config['table_name'], function(Blueprint $table) { |
|
15 | 15 | $table->bigIncrements('id'); |
16 | 16 | $table->string('client', 50)->index(); |
17 | 17 | $table->string('method', 6); |
@@ -11,6 +11,6 @@ |
||
11 | 11 | { |
12 | 12 | $config = version_compare(Application::VERSION, '5.0', '<') ? 'laravel-http-request-api-log::config' : 'http-request-api-log'; |
13 | 13 | |
14 | - return Config::get($config . ($configName ? '.'.$configName : ''), $default); |
|
14 | + return Config::get($config.($configName ? '.'.$configName : ''), $default); |
|
15 | 15 | } |
16 | 16 | } |