Skip to content

Commit 08b3c46

Browse files
authored
Merge pull request #222 from mamazu/adding_int_to_commands
Adding `int` return type on `execute` method of the command
2 parents f6142f6 + a63388d commit 08b3c46

File tree

78 files changed

+78
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+78
-78
lines changed

src/PHPCR/Shell/Console/Command/Phpcr/AccessControlPrivilegeListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ protected function configure(): void
5555
$this->requiresDescriptor(RepositoryInterface::OPTION_ACCESS_CONTROL_SUPPORTED, true);
5656
}
5757

58-
public function execute(InputInterface $input, OutputInterface $output)
58+
public function execute(InputInterface $input, OutputInterface $output): int
5959
{
6060
$session = $this->get('phpcr.session');
6161
$supported = $input->getOption('supported');

src/PHPCR/Shell/Console/Command/Phpcr/LockInfoCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function configure(): void
3939
$this->dequiresDescriptor('jackalope.not_implemented.get_lock');
4040
}
4141

42-
public function execute(InputInterface $input, OutputInterface $output)
42+
public function execute(InputInterface $input, OutputInterface $output): int
4343
{
4444
$session = $this->get('phpcr.session');
4545
$path = $session->getAbsPath($input->getArgument('path'));

src/PHPCR/Shell/Console/Command/Phpcr/LockLockCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ protected function configure(): void
6767
$this->dequiresDescriptor('jackalope.not_implemented.get_lock');
6868
}
6969

70-
public function execute(InputInterface $input, OutputInterface $output)
70+
public function execute(InputInterface $input, OutputInterface $output): int
7171
{
7272
$session = $this->get('phpcr.session');
7373
$workspace = $session->getWorkspace();

src/PHPCR/Shell/Console/Command/Phpcr/LockRefreshCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function configure(): void
3737
$this->dequiresDescriptor('jackalope.not_implemented.get_lock');
3838
}
3939

40-
public function execute(InputInterface $input, OutputInterface $output)
40+
public function execute(InputInterface $input, OutputInterface $output): int
4141
{
4242
$session = $this->get('phpcr.session');
4343
$workspace = $session->getWorkspace();

src/PHPCR/Shell/Console/Command/Phpcr/LockTokenAddCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function configure(): void
3636
$this->dequiresDescriptor('jackalope.not_implemented.lock_token');
3737
}
3838

39-
public function execute(InputInterface $input, OutputInterface $output)
39+
public function execute(InputInterface $input, OutputInterface $output): int
4040
{
4141
$session = $this->get('phpcr.session');
4242
$workspace = $session->getWorkspace();

src/PHPCR/Shell/Console/Command/Phpcr/LockTokenListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function configure(): void
3636
$this->dequiresDescriptor('jackalope.not_implemented.lock_token');
3737
}
3838

39-
public function execute(InputInterface $input, OutputInterface $output)
39+
public function execute(InputInterface $input, OutputInterface $output): int
4040
{
4141
$session = $this->get('phpcr.session');
4242
$workspace = $session->getWorkspace();

src/PHPCR/Shell/Console/Command/Phpcr/LockTokenRemoveCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure(): void
3333
$this->dequiresDescriptor('jackalope.not_implemented.lock_token');
3434
}
3535

36-
public function execute(InputInterface $input, OutputInterface $output)
36+
public function execute(InputInterface $input, OutputInterface $output): int
3737
{
3838
$session = $this->get('phpcr.session');
3939
$workspace = $session->getWorkspace();

src/PHPCR/Shell/Console/Command/Phpcr/LockUnlockCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function configure(): void
4040
$this->dequiresDescriptor('jackalope.not_implemented.get_lock');
4141
}
4242

43-
public function execute(InputInterface $input, OutputInterface $output)
43+
public function execute(InputInterface $input, OutputInterface $output): int
4444
{
4545
$session = $this->get('phpcr.session');
4646
$workspace = $session->getWorkspace();

src/PHPCR/Shell/Console/Command/Phpcr/NodeCloneCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ protected function configure(): void
5858
);
5959
}
6060

61-
public function execute(InputInterface $input, OutputInterface $output)
61+
public function execute(InputInterface $input, OutputInterface $output): int
6262
{
6363
$session = $this->get('phpcr.session');
6464
$srcWorkspace = $input->getArgument('srcWorkspace');

src/PHPCR/Shell/Console/Command/Phpcr/NodeCopyCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function configure(): void
3939
);
4040
}
4141

42-
public function execute(InputInterface $input, OutputInterface $output)
42+
public function execute(InputInterface $input, OutputInterface $output): int
4343
{
4444
$session = $this->get('phpcr.session');
4545
$srcAbsPath = $session->getAbsPath($input->getArgument('srcPath'));

src/PHPCR/Shell/Console/Command/Phpcr/NodeCorrespondingCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function configure(): void
3232
);
3333
}
3434

35-
public function execute(InputInterface $input, OutputInterface $output)
35+
public function execute(InputInterface $input, OutputInterface $output): int
3636
{
3737
$session = $this->get('phpcr.session');
3838
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeCreateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function configure(): void
4545
);
4646
}
4747

48-
public function execute(InputInterface $input, OutputInterface $output)
48+
public function execute(InputInterface $input, OutputInterface $output): int
4949
{
5050
$session = $this->get('phpcr.session');
5151
$pathHelper = $this->get('helper.path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeEditCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function configure(): void
4545
);
4646
}
4747

48-
public function execute(InputInterface $input, OutputInterface $output)
48+
public function execute(InputInterface $input, OutputInterface $output): int
4949
{
5050
$session = $this->get('phpcr.session');
5151
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeFileImportCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected function configure(): void
6262
);
6363
}
6464

65-
public function execute(InputInterface $input, OutputInterface $output)
65+
public function execute(InputInterface $input, OutputInterface $output): int
6666
{
6767
$this->session = $this->get('phpcr.session');
6868

src/PHPCR/Shell/Console/Command/Phpcr/NodeInfoCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function configure(): void
3535
);
3636
}
3737

38-
public function execute(InputInterface $input, OutputInterface $output)
38+
public function execute(InputInterface $input, OutputInterface $output): int
3939
{
4040
$session = $this->get('phpcr.session');
4141
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeLifecycleFollowCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected function configure(): void
4242
$this->requiresDescriptor(RepositoryInterface::OPTION_LIFECYCLE_SUPPORTED, true);
4343
}
4444

45-
public function execute(InputInterface $input, OutputInterface $output)
45+
public function execute(InputInterface $input, OutputInterface $output): int
4646
{
4747
$session = $this->get('phpcr.session');
4848
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeLifecycleListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure(): void
3333
$this->requiresDescriptor(RepositoryInterface::OPTION_LIFECYCLE_SUPPORTED, true);
3434
}
3535

36-
public function execute(InputInterface $input, OutputInterface $output)
36+
public function execute(InputInterface $input, OutputInterface $output): int
3737
{
3838
$session = $this->get('phpcr.session');
3939
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function configure(): void
6565
);
6666
}
6767

68-
public function execute(InputInterface $input, OutputInterface $output)
68+
public function execute(InputInterface $input, OutputInterface $output): int
6969
{
7070
$globHelper = $this->get('dtl.glob.helper');
7171
$this->formatter = $this->get('helper.result_formatter');

src/PHPCR/Shell/Console/Command/Phpcr/NodeMixinAddCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function configure(): void
3636
);
3737
}
3838

39-
public function execute(InputInterface $input, OutputInterface $output)
39+
public function execute(InputInterface $input, OutputInterface $output): int
4040
{
4141
$session = $this->get('phpcr.session');
4242
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeMixinRemoveCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function configure(): void
3535
);
3636
}
3737

38-
public function execute(InputInterface $input, OutputInterface $output)
38+
public function execute(InputInterface $input, OutputInterface $output): int
3939
{
4040
$session = $this->get('phpcr.session');
4141
$mixinName = $input->getArgument('mixinName');

src/PHPCR/Shell/Console/Command/Phpcr/NodeMoveCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function configure(): void
3535
);
3636
}
3737

38-
public function execute(InputInterface $input, OutputInterface $output)
38+
public function execute(InputInterface $input, OutputInterface $output): int
3939
{
4040
$session = $this->get('phpcr.session');
4141
$srcPath = $input->getArgument('srcPath');

src/PHPCR/Shell/Console/Command/Phpcr/NodeOrderBeforeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function configure(): void
4040
);
4141
}
4242

43-
public function execute(InputInterface $input, OutputInterface $output)
43+
public function execute(InputInterface $input, OutputInterface $output): int
4444
{
4545
$session = $this->get('phpcr.session');
4646
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodePropertyRemoveCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function configure(): void
3131
);
3232
}
3333

34-
public function execute(InputInterface $input, OutputInterface $output)
34+
public function execute(InputInterface $input, OutputInterface $output): int
3535
{
3636
$session = $this->get('phpcr.session');
3737
$absPath = $input->getArgument('absPath');

src/PHPCR/Shell/Console/Command/Phpcr/NodePropertySetCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function configure(): void
4747
);
4848
}
4949

50-
public function execute(InputInterface $input, OutputInterface $output)
50+
public function execute(InputInterface $input, OutputInterface $output): int
5151
{
5252
$session = $this->get('phpcr.session');
5353
$pathHelper = $this->get('helper.path');

src/PHPCR/Shell/Console/Command/Phpcr/NodePropertyShowCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected function configure(): void
3131
);
3232
}
3333

34-
public function execute(InputInterface $input, OutputInterface $output)
34+
public function execute(InputInterface $input, OutputInterface $output): int
3535
{
3636
$session = $this->get('phpcr.session');
3737
$path = $session->getAbsPath($input->getArgument('path'));

src/PHPCR/Shell/Console/Command/Phpcr/NodeReferencesCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function configure(): void
3737
);
3838
}
3939

40-
public function execute(InputInterface $input, OutputInterface $output)
40+
public function execute(InputInterface $input, OutputInterface $output): int
4141
{
4242
$session = $this->get('phpcr.session');
4343
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeRemoveCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function configure(): void
3636
);
3737
}
3838

39-
public function execute(InputInterface $input, OutputInterface $output)
39+
public function execute(InputInterface $input, OutputInterface $output): int
4040
{
4141
$session = $this->get('phpcr.session');
4242
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeRenameCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function configure(): void
3535
);
3636
}
3737

38-
public function execute(InputInterface $input, OutputInterface $output)
38+
public function execute(InputInterface $input, OutputInterface $output): int
3939
{
4040
$session = $this->get('phpcr.session');
4141
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeSetPrimaryTypeCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function configure(): void
3434
);
3535
}
3636

37-
public function execute(InputInterface $input, OutputInterface $output)
37+
public function execute(InputInterface $input, OutputInterface $output): int
3838
{
3939
$session = $this->get('phpcr.session');
4040
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeSharedShowCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function configure(): void
3838
$this->requiresDescriptor(RepositoryInterface::OPTION_SHAREABLE_NODES_SUPPORTED, true);
3939
}
4040

41-
public function execute(InputInterface $input, OutputInterface $output)
41+
public function execute(InputInterface $input, OutputInterface $output): int
4242
{
4343
$session = $this->get('phpcr.session');
4444
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeEditCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function configure(): void
4141
);
4242
}
4343

44-
public function execute(InputInterface $input, OutputInterface $output)
44+
public function execute(InputInterface $input, OutputInterface $output): int
4545
{
4646
$session = $this->get('phpcr.session');
4747
$editor = $this->get('helper.editor');

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure(): void
3333
);
3434
}
3535

36-
public function execute(InputInterface $input, OutputInterface $output)
36+
public function execute(InputInterface $input, OutputInterface $output): int
3737
{
3838
$session = $this->get('phpcr.session');
3939
$workspace = $session->getWorkspace();

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeLoadCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ protected function configure(): void
4040
);
4141
}
4242

43-
public function execute(InputInterface $input, OutputInterface $output)
43+
public function execute(InputInterface $input, OutputInterface $output): int
4444
{
4545
$session = $this->get('phpcr.session');
4646
$cndFile = $input->getArgument('cndFile');

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeShowCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function configure(): void
3232
);
3333
}
3434

35-
public function execute(InputInterface $input, OutputInterface $output)
35+
public function execute(InputInterface $input, OutputInterface $output): int
3636
{
3737
$session = $this->get('phpcr.session');
3838
$nodeTypeName = $input->getArgument('nodeTypeName');

src/PHPCR/Shell/Console/Command/Phpcr/NodeTypeUnregisterCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function configure(): void
3232
$this->dequiresDescriptor('jackalope.not_implemented.node_type.unregister');
3333
}
3434

35-
public function execute(InputInterface $input, OutputInterface $output)
35+
public function execute(InputInterface $input, OutputInterface $output): int
3636
{
3737
$session = $this->get('phpcr.session');
3838
$nodeTypeName = $input->getArgument('nodeTypeName');

src/PHPCR/Shell/Console/Command/Phpcr/NodeUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function configure(): void
4444
);
4545
}
4646

47-
public function execute(InputInterface $input, OutputInterface $output)
47+
public function execute(InputInterface $input, OutputInterface $output): int
4848
{
4949
$session = $this->get('phpcr.session');
5050
$path = $input->getArgument('path');

src/PHPCR/Shell/Console/Command/Phpcr/QueryCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ protected function configure(): void
3838
);
3939
}
4040

41-
public function execute(InputInterface $input, OutputInterface $output)
41+
public function execute(InputInterface $input, OutputInterface $output): int
4242
{
4343
$language = $input->getOption('language');
4444
$limit = $input->getOption('limit');

src/PHPCR/Shell/Console/Command/Phpcr/QueryDeleteCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ protected function configure(): void
3737
);
3838
}
3939

40-
public function execute(InputInterface $input, OutputInterface $output)
40+
public function execute(InputInterface $input, OutputInterface $output): int
4141
{
4242
$sql = $this->getQuery($input);
4343

src/PHPCR/Shell/Console/Command/Phpcr/QuerySelectCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function configure(): void
3333
);
3434
}
3535

36-
public function execute(InputInterface $input, OutputInterface $output)
36+
public function execute(InputInterface $input, OutputInterface $output): int
3737
{
3838
$sql = $this->getQuery($input);
3939
$input = $this->getQuery($input);

src/PHPCR/Shell/Console/Command/Phpcr/QueryUpdateCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected function configure(): void
6666
);
6767
}
6868

69-
public function execute(InputInterface $input, OutputInterface $output)
69+
public function execute(InputInterface $input, OutputInterface $output): int
7070
{
7171
$this->output = $output;
7272
$sql = $this->getQuery($input);

src/PHPCR/Shell/Console/Command/Phpcr/RepositoryDescriptorListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function configure(): void
3030
);
3131
}
3232

33-
public function execute(InputInterface $input, OutputInterface $output)
33+
public function execute(InputInterface $input, OutputInterface $output): int
3434
{
3535
$session = $this->get('phpcr.session');
3636
$repository = $session->getRepository();

src/PHPCR/Shell/Console/Command/Phpcr/RetentionHoldAddCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected function configure(): void
4141
$this->requiresDescriptor(RepositoryInterface::OPTION_RETENTION_SUPPORTED, true);
4242
}
4343

44-
public function execute(InputInterface $input, OutputInterface $output)
44+
public function execute(InputInterface $input, OutputInterface $output): int
4545
{
4646
$session = $this->get('phpcr.session');
4747
$retentionManager = $session->getRetentionManager();

src/PHPCR/Shell/Console/Command/Phpcr/RetentionHoldListCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ protected function configure(): void
3535
$this->requiresDescriptor(RepositoryInterface::OPTION_RETENTION_SUPPORTED, true);
3636
}
3737

38-
public function execute(InputInterface $input, OutputInterface $output)
38+
public function execute(InputInterface $input, OutputInterface $output): int
3939
{
4040
$session = $this->get('phpcr.session');
4141
$retentionManager = $session->getRetentionManager();

src/PHPCR/Shell/Console/Command/Phpcr/RetentionHoldRemoveCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ protected function configure(): void
3636
$this->requiresDescriptor(RepositoryInterface::OPTION_RETENTION_SUPPORTED, true);
3737
}
3838

39-
public function execute(InputInterface $input, OutputInterface $output)
39+
public function execute(InputInterface $input, OutputInterface $output): int
4040
{
4141
$session = $this->get('phpcr.session');
4242
$retentionManager = $session->getRetentionManager();

0 commit comments

Comments
 (0)