Skip to content

Commit d992a7d

Browse files
committed
Merge pull request #59 from wjzijderveld/fix-set-property-value-argument
Fixed 'value' argument definition for 'node:property:set'
2 parents 7babb50 + f344852 commit d992a7d

22 files changed

+28
-28
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function configure()
1414
$this->setName('node:mixin:add');
1515
$this->setDescription('Add the named mixin to the node');
1616
$this->addArgument('path', InputArgument::REQUIRED, 'Path of node');
17-
$this->addArgument('mixinName', null, InputArgument::REQUIRED, null, 'The name of the mixin node type to be added');
17+
$this->addArgument('mixinName', InputArgument::REQUIRED, 'The name of the mixin node type to be added');
1818
$this->setHelp(<<<HERE
1919
Adds the mixin node type named <info>mixinName</info> to this node.
2020

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ protected function configure()
1313
{
1414
$this->setName('node:mixin:remove');
1515
$this->setDescription('Remove the named mixin to the current node');
16-
$this->addArgument('mixinName', null, InputArgument::REQUIRED, null, 'The name of the mixin node type to be removeed');
16+
$this->addArgument('mixinName', InputArgument::REQUIRED, 'The name of the mixin node type to be removeed');
1717
$this->setHelp(<<<HERE
1818
Removes the specified mixin node type from this node and removes
1919
mixinName from this node's jcr:mixinTypes property.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ protected function configure()
1313
{
1414
$this->setName('node:move');
1515
$this->setDescription('Move a node in the current session');
16-
$this->addArgument('srcPath', null, InputArgument::REQUIRED, 'The root of the subgraph to be moved.');
17-
$this->addArgument('destPath', null, InputArgument::REQUIRED, 'The location to which the subgraph is to be moved');
16+
$this->addArgument('srcPath', InputArgument::REQUIRED, 'The root of the subgraph to be moved.');
17+
$this->addArgument('destPath', InputArgument::REQUIRED, 'The location to which the subgraph is to be moved');
1818
$this->setHelp(<<<HERE
1919
Moves the node at <info>srcPath</info> (and its entire subgraph) to the new
2020
location at <info>destPath</info>.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ protected function configure()
1414
$this->setName('node:order-before');
1515
$this->setDescription('Reorder a child node of the current node');
1616
$this->addArgument('path', InputArgument::REQUIRED, 'Path of node');
17-
$this->addArgument('srcChildRelPath', null, InputArgument::REQUIRED, 'The relative path to the child node to be moved in the ordering');
18-
$this->addArgument('destChildRelPath', null, InputArgument::REQUIRED, 'The relative path to the child before which the node srcChildRelPath will be placed');
17+
$this->addArgument('srcChildRelPath', InputArgument::REQUIRED, 'The relative path to the child node to be moved in the ordering');
18+
$this->addArgument('destChildRelPath', InputArgument::REQUIRED, 'The relative path to the child before which the node srcChildRelPath will be placed');
1919
$this->setHelp(<<<HERE
2020
If this node supports child node ordering, this method inserts the child
2121
node at <info>srcChildRelPath</info> into the child node list at the position

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function configure()
1414
{
1515
$this->setName('node:property:remove');
1616
$this->setDescription('Remove the property at the given absolute path');
17-
$this->addArgument('absPath', null, InputArgument::REQUIRED, 'Absolute path to property');
17+
$this->addArgument('absPath', InputArgument::REQUIRED, 'Absolute path to property');
1818
$this->setHelp(<<<HERE
1919
Remove the property from the current session at the given absolute path
2020
HERE

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ protected function configure()
1717
$this->setName('node:property:set');
1818
$this->setDescription('Rename the node at the current path');
1919
$this->addArgument('path', InputArgument::REQUIRED, 'Path of property - can include the node name');
20-
$this->addArgument('value', null, InputArgument::OPTIONAL, null, 'Value for named property');
20+
$this->addArgument('value', InputArgument::OPTIONAL, 'Value for named property');
2121
$this->addOption('type', null, InputOption::VALUE_REQUIRED, 'Type of named property');
2222
$this->setHelp(<<<HERE
2323
Defines a value for a property identified by its name.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function configure()
1515
{
1616
$this->setName('node:property:show');
1717
$this->setDescription('Show the property at the given absolute path');
18-
$this->addArgument('absPath', null, InputArgument::REQUIRED, 'Absolute path to property');
18+
$this->addArgument('absPath', InputArgument::REQUIRED, 'Absolute path to property');
1919
$this->setHelp(<<<HERE
2020
Show the property at the given absolute path
2121
HERE

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function configure()
1414
$this->setName('node:rename');
1515
$this->setDescription('Rename the node at the current path');
1616
$this->addArgument('path', InputArgument::REQUIRED, 'Path of node');
17-
$this->addArgument('newName', null, InputArgument::REQUIRED, 'The name of the node to create');
17+
$this->addArgument('newName', InputArgument::REQUIRED, 'The name of the node to create');
1818
$this->setHelp(<<<HERE
1919
Renames this node to the specified <info>newName</info>. The ordering (if any) of
2020
this node among it siblings remains unchanged.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected function configure()
1414
$this->setName('node:set-primary-type');
1515
$this->setDescription('Set the primary type of the current node');
1616
$this->addArgument('path', InputArgument::REQUIRED, 'Path of node');
17-
$this->addArgument('nodeTypeName', null, InputArgument::REQUIRED, null, 'New primary node type name');
17+
$this->addArgument('nodeTypeName', InputArgument::REQUIRED, 'New primary node type name');
1818
$this->setHelp(<<<HERE
1919
Changes the primary node type of this node to nodeTypeName.
2020

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ protected function configure()
1616
{
1717
$this->setName('node-type:edit');
1818
$this->setDescription('Edit or create a node type');
19-
$this->addArgument('nodeTypeName', null, InputArgument::REQUIRED, 'The name of the node type to edit or create');
19+
$this->addArgument('nodeTypeName', InputArgument::REQUIRED, 'The name of the node type to edit or create');
2020
$this->setHelp(<<<HERE
2121
Edit the given node type name with the editor defined in the EDITOR environment variable.
2222

0 commit comments

Comments
 (0)