Skip to content

Commit

Permalink
trailing whitespaces removed ;-)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Stark committed Aug 16, 2011
1 parent a044537 commit 289fa0c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/Doctrine/ODM/PHPCR/Proxy/Proxy.php
Expand Up @@ -4,5 +4,5 @@

interface Proxy
{
}

}
6 changes: 3 additions & 3 deletions lib/Doctrine/ODM/PHPCR/Proxy/ProxyException.php
Expand Up @@ -27,14 +27,14 @@
* @since 1.0
* @author Benjamin Eberlei <kontakt@beberlei.de>
*/
class ProxyException extends \Doctrine\ODM\PHPCR\PHPCRException
class ProxyException extends \Doctrine\ODM\PHPCR\PHPCRException
{
public static function proxyDirectoryRequired()
public static function proxyDirectoryRequired()
{
return new self("You must configure a proxy directory. See docs for details");
}

public static function proxyNamespaceRequired()
public static function proxyNamespaceRequired()
{
return new self("You must configure a proxy namespace. See docs for details");
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Doctrine/ODM/PHPCR/Proxy/ReferenceProxyFactory.php
Expand Up @@ -173,7 +173,7 @@ private function getUnsetAttributes(ClassMetadata $class)
$attributes .= '$this->'.$field["fieldName"];
$attributes .= ", ";
}

$attributes = substr($attributes, 0, -2);

return "unset(".$attributes.");";
Expand Down
6 changes: 3 additions & 3 deletions lib/Doctrine/ODM/PHPCR/UnitOfWork.php
Expand Up @@ -254,7 +254,7 @@ public function createDocument($documentName, $node, array &$hints = array())
$referencedNode = $node->getPropertyValue($assocOptions['fieldName']);
$referencedId = $referencedNode->getPath();

// check if referenced document already exists
// check if referenced document already exists
if (isset($this->identityMap[$referencedId])) {
$documentState[$class->associationsMappings[$assocName]['fieldName']] = $this->identityMap[$referencedId];
} else {
Expand Down Expand Up @@ -290,7 +290,7 @@ public function createDocument($documentName, $node, array &$hints = array())

foreach ($proxyNodes as $referencedNode) {
$referencedId = $referencedNode->getPath();
// check if referenced document already exists
// check if referenced document already exists
if (isset($this->identityMap[$referencedId])) {
$documentState[$class->associationsMappings[$assocName]['fieldName']][] = $this->identityMap[$referencedId];
} else {
Expand Down Expand Up @@ -575,7 +575,7 @@ public function computeChangeSet(ClassMetadata $class, $document)

$changed = false;
foreach ($actualData as $fieldName => $fieldValue) {
if (!isset($class->fieldMappings[$fieldName])
if (!isset($class->fieldMappings[$fieldName])
&& !isset($class->childMappings[$fieldName])
&& !isset($class->associationsMappings[$fieldName])
) {
Expand Down
4 changes: 2 additions & 2 deletions tests/Doctrine/Tests/ODM/PHPCR/Functional/ReferenceTest.php
Expand Up @@ -741,7 +741,7 @@ public function testManyCascadeChangeOne()
$this->dm->persist($refManyTestObjForCascade);
$this->dm->flush();
$this->dm->clear();

$referrer = $this->dm->find($this->referrerManyForCascadeType, '/functional/refManyTestObjForCascade');

$pos1 = 1;
Expand Down Expand Up @@ -781,7 +781,7 @@ public function testManyCascadeDeleteOne()
$this->dm->persist($refManyTestObjForCascade);
$this->dm->flush();
$this->dm->clear();

$referrer = $this->dm->find($this->referrerManyForCascadeType, '/functional/refManyTestObjForCascade');

$pos1 = 1;
Expand Down

0 comments on commit 289fa0c

Please sign in to comment.