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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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'));

0 commit comments

Comments
 (0)