Thanks to visit codestin.com
Credit goes to github.com

Skip to content
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
2 changes: 1 addition & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
->setRules([
'@Symfony' => true,
'single_line_throw' => false,
'visibility_required' => ['elements' => ['method', 'property']], // const only possible once we drop PHP 5.6 support
'trailing_comma_in_multiline' => ['elements' => ['arrays']], // trailing comma on parameters / arguments not compatible with PHP 7
])
->setFinder($finder)
;
8 changes: 4 additions & 4 deletions src/PHPCR/ImportUUIDBehaviorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@ interface ImportUUIDBehaviorInterface
*
* @api
*/
const IMPORT_UUID_COLLISION_REMOVE_EXISTING = 1;
public const IMPORT_UUID_COLLISION_REMOVE_EXISTING = 1;

/**
* When importing replace existing item upon collision.
*
* @api
*/
const IMPORT_UUID_COLLISION_REPLACE_EXISTING = 2;
public const IMPORT_UUID_COLLISION_REPLACE_EXISTING = 2;

/**
* When importing throw exception upon collision.
*
* @api
*/
const IMPORT_UUID_COLLISION_THROW = 3;
public const IMPORT_UUID_COLLISION_THROW = 3;

/**
* When importing create new UUIDs.
*
* @api
*/
const IMPORT_UUID_CREATE_NEW = 0;
public const IMPORT_UUID_CREATE_NEW = 0;
}
24 changes: 12 additions & 12 deletions src/PHPCR/NamespaceRegistryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,84 +34,84 @@ interface NamespaceRegistryInterface extends \Traversable
*
* @api
*/
const PREFIX_JCR = 'jcr';
public const PREFIX_JCR = 'jcr';

/**
* A constant for the predefined namespace prefix "nt".
*
* @api
*/
const PREFIX_NT = 'nt';
public const PREFIX_NT = 'nt';

/**
* A constant for the predefined namespace prefix "sv".
*
* @api
*/
const PREFIX_SV = 'sv';
public const PREFIX_SV = 'sv';

/**
* A constant for the predefined namespace prefix "mix".
*
* @api
*/
const PREFIX_MIX = 'mix';
public const PREFIX_MIX = 'mix';

/**
* A constant for the predefined namespace prefix "xml".
*
* @api
*/
const PREFIX_XML = 'xml';
public const PREFIX_XML = 'xml';

/**
* A constant for the predefined namespace prefix "" (the empty prefix).
*
* @api
*/
const PREFIX_EMPTY = '';
public const PREFIX_EMPTY = '';

/**
* A constant for the predefined namespace mapped by default to the prefix "jcr".
*
* @api
*/
const NAMESPACE_JCR = 'http://www.jcp.org/jcr/1.0';
public const NAMESPACE_JCR = 'http://www.jcp.org/jcr/1.0';

/**
* A constant for the predefined namespace mapped by default to the prefix "nt".
*
* @api
*/
const NAMESPACE_NT = 'http://www.jcp.org/jcr/nt/1.0';
public const NAMESPACE_NT = 'http://www.jcp.org/jcr/nt/1.0';

/**
* A constant for the predefined namespace mapped by default to the prefix "sv".
*
* @api
*/
const NAMESPACE_SV = 'http://www.jcp.org/jcr/sv/1.0';
public const NAMESPACE_SV = 'http://www.jcp.org/jcr/sv/1.0';

/**
* A constant for the predefined namespace mapped by default to the prefix "mix".
*
* @api
*/
const NAMESPACE_MIX = 'http://www.jcp.org/jcr/mix/1.0';
public const NAMESPACE_MIX = 'http://www.jcp.org/jcr/mix/1.0';

/**
* A constant for the predefined namespace mapped by default to the prefix "xml".
*
* @api
*/
const NAMESPACE_XML = 'http://www.w3.org/XML/1998/namespace';
public const NAMESPACE_XML = 'http://www.w3.org/XML/1998/namespace';

/**
* A constant for the predefined namespace mapped by default to the prefix "" (the empty prefix).
*
* @api
*/
const NAMESPACE_EMPTY = '';
public const NAMESPACE_EMPTY = '';

/**
* Sets a one-to-one mapping between prefix and uri in the global namespace
Expand Down
12 changes: 6 additions & 6 deletions src/PHPCR/NodeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,42 +37,42 @@ interface NodeInterface extends ItemInterface, Traversable
*
* @api
*/
const JCR_CONTENT = '{http://www.jcp.org/jcr/1.0}content';
public const JCR_CONTENT = '{http://www.jcp.org/jcr/1.0}content';

/**
* A constant for the node name jcr:propertyDefinition declared in nt:nodeType.
*
* @api
*/
const JCR_PROPERTY_DEFINITION = '{http://www.jcp.org/jcr/1.0}propertyDefinition';
public const JCR_PROPERTY_DEFINITION = '{http://www.jcp.org/jcr/1.0}propertyDefinition';

/**
* A constant for the node name jcr:childNodeDefinition declared in nt:nodeType.
*
* @api
*/
const JCR_CHILD_NODE_DEFINITION = '{http://www.jcp.org/jcr/1.0}childNodeDefinition';
public const JCR_CHILD_NODE_DEFINITION = '{http://www.jcp.org/jcr/1.0}childNodeDefinition';

/**
* A constant for the node name jcr:rootVersion declared in nt:versionHistory.
*
* @api
*/
const JCR_ROOT_VERSION = '{http://www.jcp.org/jcr/1.0}rootVersion';
public const JCR_ROOT_VERSION = '{http://www.jcp.org/jcr/1.0}rootVersion';

/**
* A constant for the node name jcr:versionLabels declared in nt:versionHistory.
*
* @api
*/
const JCR_VERSION_LABELS = '{http://www.jcp.org/jcr/1.0}versionLabels';
public const JCR_VERSION_LABELS = '{http://www.jcp.org/jcr/1.0}versionLabels';

/**
* A constant for the node name jcr:frozenNode declared in nt:version.
*
* @api
*/
const JCR_FROZEN_NODE = '{http://www.jcp.org/jcr/1.0}frozenNode';
public const JCR_FROZEN_NODE = '{http://www.jcp.org/jcr/1.0}frozenNode';

/**
* Creates a new node at the specified $relPath.
Expand Down
Loading
Loading