Skip to content

Adding void return type to command #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class AccessControlPrivilegeListCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('access-control:privilege:list');
$this->setDescription('List the privileges of the repository or a specific node');
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/Phpcr/LockInfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class LockInfoCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('lock:info');
$this->setDescription('Show details of the lock that applies to the specified node path');
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/Phpcr/LockLockCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class LockLockCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('lock:lock');
$this->setDescription('Lock the node at the given path');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class LockRefreshCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('lock:refresh');
$this->setDescription('Refresh the TTL of the lock of the node at the given path');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class LockTokenAddCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('lock:token:add');
$this->setDescription('Add a lock token to the current session');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class LockTokenListCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('lock:token:list');
$this->setDescription('List a lock token to the current session');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class LockTokenRemoveCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('lock:token:remove');
$this->setDescription('Remove a lock token to the current session');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class LockUnlockCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('lock:unlock');
$this->setDescription('Unlock the node at the given path');
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/Phpcr/NodeCloneCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodeCloneCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:clone');
$this->setDescription('Clone a node (immediate)');
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/Phpcr/NodeCopyCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeCopyCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:copy');
$this->setDescription('Copy a node (immediate)');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeCorrespondingCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:corresponding');
$this->setDescription('Show the path for the current nodes corresponding path in named workspace');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeCreateCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:create');
$this->setDescription('Create a node at the current path');
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/Phpcr/NodeEditCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

class NodeEditCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:edit');
$this->setDescription('Edit the given node in the EDITOR configured by the system');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class NodeFileImportCommand extends BasePhpcrCommand
*/
protected $session;

protected function configure()
protected function configure(): void
{
$this->setName('file:import');
$this->setDescription('Import a file at the given path');
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/Phpcr/NodeInfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodeInfoCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:info');
$this->setDescription('Show information about the current node');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodeLifecycleFollowCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:lifecycle:follow');
$this->setDescription('Causes the lifecycle state of this node to undergo the specified transition.');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodeLifecycleListCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:lifecycle:list');
$this->setDescription('Returns the list of valid state transitions for this node.');
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/Phpcr/NodeListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class NodeListCommand extends BasePhpcrCommand
protected $nbNodes = 0;
protected $nbProperties = 0;

protected function configure()
protected function configure(): void
{
$this->setName('node:list');
$this->setDescription('List the children / properties of this node at the given path or with the given UUID');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeMixinAddCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:mixin:add');
$this->setDescription('Add the named mixin to the node (can include wildcards)');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeMixinRemoveCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:mixin:remove');
$this->setDescription('Remove the named mixin to the current node');
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/Phpcr/NodeMoveCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeMoveCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:move');
$this->setDescription('Move a node in the current session');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeOrderBeforeCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:order-before');
$this->setDescription('Reorder a child node of the current node');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodePropertyRemoveCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:property:remove');
$this->setDescription('Remove the property at the given absolute path');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class NodePropertySetCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:property:set');
$this->setDescription('Rename the node at the current path');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodePropertyShowCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:property:show');
$this->setDescription('Show the property at the given path');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodeReferencesCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:references');
$this->setDescription('Returns all REFERENCE properties that refer to this node');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodeRemoveCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:remove');
$this->setDescription('Remove the node at path (can include wildcards)');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeRenameCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:rename');
$this->setDescription('Rename the node at the current path');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeSetPrimaryTypeCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:set-primary-type');
$this->setDescription('Set the primary type of the current node');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodeSharedShowCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:shared:show');
$this->setDescription('Show all the nodes are in the shared set of this node');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

class NodeTypeEditCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node-type:edit');
$this->setDescription('Edit or create a node type');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodeTypeListCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node-type:list');
$this->setDescription('List registered node types');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class NodeTypeLoadCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node-type:load');
$this->setDescription('Load or create a node type');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class NodeTypeShowCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node-type:show');
$this->setDescription('Show the CND of a node type');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeTypeUnregisterCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node-type:unregister');
$this->setDescription('Unregister a node type UNSUPPORTED / TODO');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class NodeUpdateCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('node:update');
$this->setDescription('Updates a node corresponding to the given path in the given workspace');
Expand Down
2 changes: 1 addition & 1 deletion src/PHPCR/Shell/Console/Command/Phpcr/QueryCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class QueryCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('query');
$this->setDescription('Execute a SELECT query (advanced)');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class QueryDeleteCommand extends BaseQueryCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('delete');
$this->setDescription('Execute a DELETE query (non standard)');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class QuerySelectCommand extends BaseQueryCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('select');
$this->setDescription('Execute a SELECT query (JCR-SQL2)');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class QueryUpdateCommand extends BaseQueryCommand
*/
protected $output;

protected function configure()
protected function configure(): void
{
$this->setName('update');
$this->setDescription('Execute an UPDATE query (non-standard)');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class RepositoryDescriptorListCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('repository:descriptor:list');
$this->setDescription('List the descriptors for the current repository');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class RetentionHoldAddCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('retention:hold:add');
$this->setDescription('Adds a retention hold UNSUPPORTED');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

class RetentionHoldListCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('retention:hold:list');
$this->setDescription('List retention holds at given absolute path UNSUPPORTED');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

class RetentionHoldRemoveCommand extends BasePhpcrCommand
{
protected function configure()
protected function configure(): void
{
$this->setName('retention:hold:remove');
$this->setDescription('Removes a retention hold UNSUPPORTED');
Expand Down
Loading