Permalink
Browse files

Merge pull request #194 from pborreli/typos

Fixed typos and PHPDoc
  • Loading branch information...
2 parents 7994737 + 9390534 commit 4d19a979aa7baabdf7319c3f617b3915435aea54 @lsmith77 lsmith77 committed Dec 1, 2012
@@ -121,7 +121,7 @@ public function getDocumentNamespace($documentNamespaceAlias)
/**
* Set the document alias map
*
- * @param array $documentAliasMap
+ * @param array $documentNamespaces
* @return void
*/
public function setDocumentNamespaces(array $documentNamespaces)
@@ -87,7 +87,7 @@ public function setNodename($name)
/**
* The parent Folder document of this document.
*
- * @param object $parent Folder document that is the parent of this node.
+ * @return object Folder document that is the parent of this node.
*/
public function getParent()
{
@@ -99,7 +99,7 @@ public function setNodename($name)
/**
* The parent Folder document of this document.
*
- * @param object $parent Folder document that is the parent of this node.
+ * @return object Folder document that is the parent of this node.
*/
public function getParent()
{
@@ -56,7 +56,7 @@ class Resource
/**
* The parent File document of this Resource document.
*
- * @param object $parent File document that is the parent of this node.
+ * @return object File document that is the parent of this node.
*/
public function getParent()
{
@@ -496,7 +496,7 @@ public function createQueryBuilder()
*
* @param \PHPCR\Query\QueryInterface $query the query instance as
* acquired through createQuery()
- * @param string $documentName document class
+ * @param string $className document class
*
* @return array of document instances
*/
@@ -757,7 +757,7 @@ public function refresh($document)
* a given filter (same as PHPCR Node::getNodes)
*
* @param object $document document instance which children should be loaded
- * @param string|array $filter optional filter to filter on childrens names
+ * @param string|array $filter optional filter to filter on children names
* @param integer $fetchDepth optional fetch depth if supported by the PHPCR session
* @param boolean $ignoreUntranslated if to ignore children that are not translated to the current locale
*
@@ -906,7 +906,7 @@ public function checkpoint($document)
*
* @see findVersionByName
*
- * @param string $DocumentVersion the version to be restored
+ * @param string $documentVersion the version to be restored
* @param bool $removeExisting how to handle conflicts with unique
* identifiers. If true, existing documents with the identical
* identifier will be replaced, otherwise an exception is thrown.
@@ -919,7 +919,7 @@ public function isAssociationInverseSide($assocName)
/**
* Checks whether a mapped field is inherited from an entity superclass.
*
- * @return boolean string clas naem if the field is inherited, FALSE otherwise.
+ * @return boolean string class name if the field is inherited, FALSE otherwise.
*/
public function isInheritedField($fieldName)
{
@@ -1105,8 +1105,8 @@ public function getFieldValue($document, $field)
* Dispatches the lifecycle event of the given document to the registered
* lifecycle callbacks and lifecycle listeners.
*
- * @param string $event The lifecycle event.
- * @param object $document The Document on which the event occured.
+ * @param string $lifecycleEvent The lifecycle event.
+ * @param object $document The Document on which the event occurred.
* @param array $arguments the arguments to pass to the callback
*/
public function invokeLifecycleCallbacks($lifecycleEvent, $document, array $arguments = null)
@@ -482,10 +482,9 @@ public function bindTranslation($document, $locale)
}
/**
- * Schedule insertion of this document and cascade if neccessary.
+ * Schedule insertion of this document and cascade if necessary.
*
* @param object $document
- * @param string $id
*/
public function scheduleInsert($document)
{
@@ -1988,7 +1987,7 @@ public function getChildren($document, $filter = null, $fetchDepth = null, $igno
* and an optional reference type.
*
* This methods gets all nodes as a collection of documents that refer (weak
- * and hard) the given document. The property of the referrer node that referes
+ * and hard) the given document. The property of the referrer node that refers
* the document needs to match the given name and must store a reference of the
* given type.
* @param object $document document instance which referrers should be loaded

0 comments on commit 4d19a97

Please sign in to comment.