@@ -39,7 +39,7 @@ final protected function execute(InputInterface $input, OutputInterface $output)
3939 try {
4040 $ content = file_get_contents ($ input ->getArgument ('filepath ' ));
4141
42- if (! $ content ) {
42+ if (false === $ content ) {
4343 throw new \Exception ('Error reading file ' );
4444 }
4545
@@ -56,7 +56,6 @@ final protected function execute(InputInterface $input, OutputInterface $output)
5656 $ rejseplanenApiKey = $ config ['rejseplanenApiKey ' ] ?? null ;
5757 $ showScreenStatus = $ config ['showScreenStatus ' ] ?? null ;
5858 $ touchButtonRegions = $ config ['touchButtonRegions ' ] ?? null ;
59- $ enhancedPreview = $ config ['previewClient ' ] ?? null ;
6059 $ loginMethods = $ config ['loginMethods ' ] ?? null ;
6160
6261 if (null !== $ loginMethods ) {
@@ -72,7 +71,7 @@ final protected function execute(InputInterface $input, OutputInterface $output)
7271 null !== $ touchButtonRegions && $ io ->writeln ('ADMIN_TOUCH_BUTTON_REGIONS= ' .var_export ($ touchButtonRegions , true ));
7372 null !== $ loginMethods && $ io ->writeln ("ADMIN_LOGIN_METHODS=' " .json_encode ($ loginMethods )."' " );
7473 // This is a conversion from an url to boolean value. If the url is not empty, it is interpreted as true.
75- !empty ($ enhancedPreview ) && $ io ->writeln ('ADMIN_ENHANCED_PREVIEW=true ' );
74+ !empty ($ config [ ' previewClient ' ] ) && $ io ->writeln ('ADMIN_ENHANCED_PREVIEW=true ' );
7675 $ io ->writeln ('###< Admin configuration ### ' );
7776 } elseif ('client ' === $ type ) {
7877 $ io ->success ('Insert the following lines in .env.local ' );
0 commit comments