@@ -5,7 +5,7 @@ use Symfony\Component\Console\Application;
55use Symfony \Component \Console \Helper \HelperSet ;
66use PHPCR \Util \Console \Command ;
77
8- if (!class_exists (' \Symfony\Component\Console\ Application' )) {
8+ if (!class_exists (Application::class )) {
99 if (is_file (__DIR__ .'/../vendor/autoload.php ' )) {
1010 require __DIR__ .'/../vendor/autoload.php ' ;
1111 } elseif (is_file (__DIR__ .'/../../../autoload.php ' )) {
@@ -30,7 +30,7 @@ if (file_exists($configFile)) {
3030 require $ configFile ;
3131
3232 foreach ($ GLOBALS as $ helperSetCandidate ) {
33- if ($ helperSetCandidate instanceof \ Symfony \ Component \ Console \ Helper \ HelperSet) {
33+ if ($ helperSetCandidate instanceof HelperSet) {
3434 $ helperSet = $ helperSetCandidate ;
3535 break ;
3636 }
@@ -48,7 +48,7 @@ $cli = new Application('PHPCR Command Line Interface', '0.1');
4848$ cli ->setCatchExceptions (true );
4949$ cli ->setHelperSet ($ helperSet );
5050
51- $ cli ->addCommands (array (
51+ $ cli ->addCommands ([
5252 new Command \NodeDumpCommand (),
5353 new Command \NodeMoveCommand (),
5454 new Command \NodeRemoveCommand (),
@@ -62,7 +62,7 @@ $cli->addCommands(array(
6262 new Command \WorkspaceImportCommand (),
6363 new Command \WorkspacePurgeCommand (),
6464 new Command \WorkspaceQueryCommand (),
65- ) );
65+ ] );
6666
6767$ cli ->run ();
6868
0 commit comments