Skip to content

Commit f6142f6

Browse files
authored
Merge pull request #221 from mamazu/adding_void_to_commands
Adding `void` return type to command
2 parents a8301d9 + 30e806a commit f6142f6

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
@@ -21,7 +21,7 @@
2121

2222
class AccessControlPrivilegeListCommand extends BasePhpcrCommand
2323
{
24-
protected function configure()
24+
protected function configure(): void
2525
{
2626
$this->setName('access-control:privilege:list');
2727
$this->setDescription('List the privileges of the repository or a specific node');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class LockInfoCommand extends BasePhpcrCommand
2222
{
23-
protected function configure()
23+
protected function configure(): void
2424
{
2525
$this->setName('lock:info');
2626
$this->setDescription('Show details of the lock that applies to the specified node path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class LockLockCommand extends BasePhpcrCommand
2222
{
23-
protected function configure()
23+
protected function configure(): void
2424
{
2525
$this->setName('lock:lock');
2626
$this->setDescription('Lock the node at the given path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class LockRefreshCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('lock:refresh');
2525
$this->setDescription('Refresh the TTL of the lock of the node at the given path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class LockTokenAddCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('lock:token:add');
2525
$this->setDescription('Add a lock token to the current session');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class LockTokenListCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('lock:token:list');
2525
$this->setDescription('List a lock token to the current session');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class LockTokenRemoveCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('lock:token:remove');
2525
$this->setDescription('Remove a lock token to the current session');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class LockUnlockCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('lock:unlock');
2525
$this->setDescription('Unlock the node at the given path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodeCloneCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node:clone');
2525
$this->setDescription('Clone a node (immediate)');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeCopyCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:copy');
2424
$this->setDescription('Copy a node (immediate)');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeCorrespondingCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:corresponding');
2424
$this->setDescription('Show the path for the current nodes corresponding path in named workspace');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeCreateCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:create');
2424
$this->setDescription('Create a node at the current path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
class NodeEditCommand extends BasePhpcrCommand
2727
{
28-
protected function configure()
28+
protected function configure(): void
2929
{
3030
$this->setName('node:edit');
3131
$this->setDescription('Edit the given node in the EDITOR configured by the system');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class NodeFileImportCommand extends BasePhpcrCommand
2626
*/
2727
protected $session;
2828

29-
protected function configure()
29+
protected function configure(): void
3030
{
3131
$this->setName('file:import');
3232
$this->setDescription('Import a file at the given path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodeInfoCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node:info');
2525
$this->setDescription('Show information about the current node');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodeLifecycleFollowCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node:lifecycle:follow');
2525
$this->setDescription('Causes the lifecycle state of this node to undergo the specified transition.');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodeLifecycleListCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node:lifecycle:list');
2525
$this->setDescription('Returns the list of valid state transitions for this node.');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class NodeListCommand extends BasePhpcrCommand
3333
protected $nbNodes = 0;
3434
protected $nbProperties = 0;
3535

36-
protected function configure()
36+
protected function configure(): void
3737
{
3838
$this->setName('node:list');
3939
$this->setDescription('List the children / properties of this node at the given path or with the given UUID');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeMixinAddCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:mixin:add');
2424
$this->setDescription('Add the named mixin to the node (can include wildcards)');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeMixinRemoveCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:mixin:remove');
2424
$this->setDescription('Remove the named mixin to the current node');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeMoveCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:move');
2424
$this->setDescription('Move a node in the current session');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeOrderBeforeCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:order-before');
2424
$this->setDescription('Reorder a child node of the current node');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodePropertyRemoveCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node:property:remove');
2525
$this->setDescription('Remove the property at the given absolute path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
class NodePropertySetCommand extends BasePhpcrCommand
2424
{
25-
protected function configure()
25+
protected function configure(): void
2626
{
2727
$this->setName('node:property:set');
2828
$this->setDescription('Rename the node at the current path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodePropertyShowCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node:property:show');
2525
$this->setDescription('Show the property at the given path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodeReferencesCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node:references');
2525
$this->setDescription('Returns all REFERENCE properties that refer to this node');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodeRemoveCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node:remove');
2525
$this->setDescription('Remove the node at path (can include wildcards)');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeRenameCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:rename');
2424
$this->setDescription('Rename the node at the current path');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeSetPrimaryTypeCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:set-primary-type');
2424
$this->setDescription('Set the primary type of the current node');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodeSharedShowCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node:shared:show');
2525
$this->setDescription('Show all the nodes are in the shared set of this node');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
class NodeTypeEditCommand extends BasePhpcrCommand
2424
{
25-
protected function configure()
25+
protected function configure(): void
2626
{
2727
$this->setName('node-type:edit');
2828
$this->setDescription('Edit or create a node type');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodeTypeListCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node-type:list');
2525
$this->setDescription('List registered node types');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class NodeTypeLoadCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('node-type:load');
2525
$this->setDescription('Load or create a node type');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class NodeTypeShowCommand extends BasePhpcrCommand
2222
{
23-
protected function configure()
23+
protected function configure(): void
2424
{
2525
$this->setName('node-type:show');
2626
$this->setDescription('Show the CND of a node type');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeTypeUnregisterCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node-type:unregister');
2424
$this->setDescription('Unregister a node type UNSUPPORTED / TODO');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class NodeUpdateCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('node:update');
2424
$this->setDescription('Updates a node corresponding to the given path in the given workspace');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class QueryCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('query');
2525
$this->setDescription('Execute a SELECT query (advanced)');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class QueryDeleteCommand extends BaseQueryCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('delete');
2424
$this->setDescription('Execute a DELETE query (non standard)');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
class QuerySelectCommand extends BaseQueryCommand
1919
{
20-
protected function configure()
20+
protected function configure(): void
2121
{
2222
$this->setName('select');
2323
$this->setDescription('Execute a SELECT query (JCR-SQL2)');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class QueryUpdateCommand extends BaseQueryCommand
2323
*/
2424
protected $output;
2525

26-
protected function configure()
26+
protected function configure(): void
2727
{
2828
$this->setName('update');
2929
$this->setDescription('Execute an UPDATE query (non-standard)');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class RepositoryDescriptorListCommand extends BasePhpcrCommand
2020
{
21-
protected function configure()
21+
protected function configure(): void
2222
{
2323
$this->setName('repository:descriptor:list');
2424
$this->setDescription('List the descriptors for the current repository');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class RetentionHoldAddCommand extends BasePhpcrCommand
2222
{
23-
protected function configure()
23+
protected function configure(): void
2424
{
2525
$this->setName('retention:hold:add');
2626
$this->setDescription('Adds a retention hold UNSUPPORTED');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
class RetentionHoldListCommand extends BasePhpcrCommand
2222
{
23-
protected function configure()
23+
protected function configure(): void
2424
{
2525
$this->setName('retention:hold:list');
2626
$this->setDescription('List retention holds at given absolute path UNSUPPORTED');

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class RetentionHoldRemoveCommand extends BasePhpcrCommand
2121
{
22-
protected function configure()
22+
protected function configure(): void
2323
{
2424
$this->setName('retention:hold:remove');
2525
$this->setDescription('Removes a retention hold UNSUPPORTED');

0 commit comments

Comments
 (0)