@@ -79,7 +79,7 @@ class AppSettingsCommand extends Command
7979 * AppSettingsCommand constructor.
8080 *
8181 * @param \Illuminate\Contracts\Config\Repository $config
82- * @param \Illuminate\Contracts\Console\Kernel $command
82+ * @param \Illuminate\Contracts\Console\Kernel $command
8383 */
8484 public function __construct (ConfigRepository $ config , Kernel $ command )
8585 {
@@ -102,41 +102,41 @@ public function handle()
102102
103103 $ this ->output ->comment (trans ('command/messages.environment.app.author_help ' ));
104104 $ this ->variables ['APP_SERVICE_AUTHOR ' ] = $ this ->option ('author ' ) ?? $ this ->ask (
105- trans ('command/messages.environment.app.author ' ), $ this ->config ->get ('pterodactyl.service.author ' , 'unknown@unknown.com ' )
106- );
105+ trans ('command/messages.environment.app.author ' ), $ this ->config ->get ('pterodactyl.service.author ' , 'unknown@unknown.com ' )
106+ );
107107
108108 $ this ->output ->comment (trans ('command/messages.environment.app.app_url_help ' ));
109109 $ this ->variables ['APP_URL ' ] = $ this ->option ('url ' ) ?? $ this ->ask (
110- trans ('command/messages.environment.app.app_url ' ), $ this ->config ->get ('app.url ' , 'http://example.org ' )
111- );
110+ trans ('command/messages.environment.app.app_url ' ), $ this ->config ->get ('app.url ' , 'http://example.org ' )
111+ );
112112
113113 $ this ->output ->comment (trans ('command/messages.environment.app.timezone_help ' ));
114114 $ this ->variables ['APP_TIMEZONE ' ] = $ this ->option ('timezone ' ) ?? $ this ->anticipate (
115- trans ('command/messages.environment.app.timezone ' ),
116- DateTimeZone::listIdentifiers (DateTimeZone::ALL ),
117- $ this ->config ->get ('app.timezone ' )
118- );
115+ trans ('command/messages.environment.app.timezone ' ),
116+ DateTimeZone::listIdentifiers (DateTimeZone::ALL ),
117+ $ this ->config ->get ('app.timezone ' )
118+ );
119119
120120 $ selected = $ this ->config ->get ('cache.default ' , 'redis ' );
121121 $ this ->variables ['CACHE_DRIVER ' ] = $ this ->option ('cache ' ) ?? $ this ->choice (
122- trans ('command/messages.environment.app.cache_driver ' ),
123- self ::ALLOWED_CACHE_DRIVERS ,
124- array_key_exists ($ selected , self ::ALLOWED_CACHE_DRIVERS ) ? $ selected : null
125- );
122+ trans ('command/messages.environment.app.cache_driver ' ),
123+ self ::ALLOWED_CACHE_DRIVERS ,
124+ array_key_exists ($ selected , self ::ALLOWED_CACHE_DRIVERS ) ? $ selected : null
125+ );
126126
127127 $ selected = $ this ->config ->get ('session.driver ' , 'redis ' );
128128 $ this ->variables ['SESSION_DRIVER ' ] = $ this ->option ('session ' ) ?? $ this ->choice (
129- trans ('command/messages.environment.app.session_driver ' ),
130- self ::ALLOWED_SESSION_DRIVERS ,
131- array_key_exists ($ selected , self ::ALLOWED_SESSION_DRIVERS ) ? $ selected : null
132- );
129+ trans ('command/messages.environment.app.session_driver ' ),
130+ self ::ALLOWED_SESSION_DRIVERS ,
131+ array_key_exists ($ selected , self ::ALLOWED_SESSION_DRIVERS ) ? $ selected : null
132+ );
133133
134134 $ selected = $ this ->config ->get ('queue.default ' , 'redis ' );
135135 $ this ->variables ['QUEUE_CONNECTION ' ] = $ this ->option ('queue ' ) ?? $ this ->choice (
136- trans ('command/messages.environment.app.queue_driver ' ),
137- self ::ALLOWED_QUEUE_DRIVERS ,
138- array_key_exists ($ selected , self ::ALLOWED_QUEUE_DRIVERS ) ? $ selected : null
139- );
136+ trans ('command/messages.environment.app.queue_driver ' ),
137+ self ::ALLOWED_QUEUE_DRIVERS ,
138+ array_key_exists ($ selected , self ::ALLOWED_QUEUE_DRIVERS ) ? $ selected : null
139+ );
140140
141141 if (! is_null ($ this ->option ('settings-ui ' ))) {
142142 $ this ->variables ['APP_ENVIRONMENT_ONLY ' ] = $ this ->option ('settings-ui ' ) == 'true ' ? 'false ' : 'true ' ;
@@ -166,8 +166,8 @@ private function checkForRedis()
166166
167167 $ this ->output ->note (trans ('command/messages.environment.app.using_redis ' ));
168168 $ this ->variables ['REDIS_HOST ' ] = $ this ->option ('redis-host ' ) ?? $ this ->ask (
169- trans ('command/messages.environment.app.redis_host ' ), $ this ->config ->get ('database.redis.default.host ' )
170- );
169+ trans ('command/messages.environment.app.redis_host ' ), $ this ->config ->get ('database.redis.default.host ' )
170+ );
171171
172172 $ askForRedisPassword = true ;
173173 if (! empty ($ this ->config ->get ('database.redis.default.password ' ))) {
@@ -178,16 +178,16 @@ private function checkForRedis()
178178 if ($ askForRedisPassword ) {
179179 $ this ->output ->comment (trans ('command/messages.environment.app.redis_pass_help ' ));
180180 $ this ->variables ['REDIS_PASSWORD ' ] = $ this ->option ('redis-pass ' ) ?? $ this ->output ->askHidden (
181- trans ('command/messages.environment.app.redis_password ' )
182- );
181+ trans ('command/messages.environment.app.redis_password ' )
182+ );
183183 }
184184
185185 if (empty ($ this ->variables ['REDIS_PASSWORD ' ])) {
186186 $ this ->variables ['REDIS_PASSWORD ' ] = 'null ' ;
187187 }
188188
189189 $ this ->variables ['REDIS_PORT ' ] = $ this ->option ('redis-port ' ) ?? $ this ->ask (
190- trans ('command/messages.environment.app.redis_port ' ), $ this ->config ->get ('database.redis.default.port ' )
191- );
190+ trans ('command/messages.environment.app.redis_port ' ), $ this ->config ->get ('database.redis.default.port ' )
191+ );
192192 }
193193}
0 commit comments