88use Psy \Shell ;
99
1010class InteractCommand extends Command {
11- protected static $ defaultName = " interact " ;
11+ protected static $ defaultName = ' interact ' ;
1212
1313 protected function configure () {
1414 $ this
15- ->setDescription (" Interact with your application " )
16- ->setHelp (" Interact with your application " );
15+ ->setDescription (' Interact with your application ' )
16+ ->setHelp (' Interact with your application ' );
1717 }
1818
1919 protected function execute (InputInterface $ input , OutputInterface $ output ): int
2020 {
21- $ output ->writeln (" <info>Leaf interactive shell activated</info> " );
21+ $ output ->writeln (' <info>Leaf interactive shell activated</info> ' );
2222
23- if (file_exists (" vendor/autoload.php " )) require " vendor/autoload.php " ;
24- if (file_exists (" Config/bootstrap.php " )) require " Config/bootstrap.php " ;
25- if (file_exists (" index.php " ) && !file_exists (" leaf " )) require " index.php " ;
23+ if (file_exists (' vendor/autoload.php ' )) require ' vendor/autoload.php ' ;
24+ if (file_exists (' Config/bootstrap.php ' )) require ' Config/bootstrap.php ' ;
25+ if (file_exists (' index.php ' ) && !file_exists (' leaf ' )) require ' index.php ' ;
2626
27- if (!file_exists (" vendor/autoload.php " ) && !file_exists (" Config/bootstrap.php " ) && (file_exists (" index.php " ) && file_exists (" leaf " ))) {
28- $ output ->writeln (" <info>Required files not found, starting shell running in retard mode...</info> " );
27+ if (!file_exists (' vendor/autoload.php ' ) && !file_exists (' Config/bootstrap.php ' ) && (file_exists (' index.php ' ) && file_exists (' leaf ' ))) {
28+ $ output ->writeln (' <info>Required files not found, starting shell running in retard mode...</info> ' );
2929 }
3030
3131 $ shell = new Shell ();
3232
3333 return $ output ->write ($ shell ->run ()) ? 0 : 1 ;
3434 }
35- }
35+ }
0 commit comments