Fixed indentation and other issues related to coding style
This commit is contained in:
parent
34cce3e0c8
commit
be9d359937
@ -1190,8 +1190,6 @@ class Doctrine_Table extends Doctrine_Configurable implements Countable
|
|||||||
return $this->options['name'];
|
return $this->options['name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $id database row id
|
* @param $id database row id
|
||||||
* @throws Doctrine_Find_Exception
|
* @throws Doctrine_Find_Exception
|
||||||
|
@ -40,7 +40,7 @@ class Doctrine_ColumnAggregationInheritance_TestCase extends Doctrine_UnitTestCa
|
|||||||
parent::prepareData();
|
parent::prepareData();
|
||||||
//we create a test entity that is not a user and not a group
|
//we create a test entity that is not a user and not a group
|
||||||
$entity = new Entity();
|
$entity = new Entity();
|
||||||
$entity->name="Other Entity";
|
$entity->name='Other Entity';
|
||||||
$entity->type = 2;
|
$entity->type = 2;
|
||||||
$entity->save();
|
$entity->save();
|
||||||
$this->otherEntity = $entity;
|
$this->otherEntity = $entity;
|
||||||
@ -49,19 +49,18 @@ class Doctrine_ColumnAggregationInheritance_TestCase extends Doctrine_UnitTestCa
|
|||||||
public function testQueriedClassReturnedIfNoSubclassMatch()
|
public function testQueriedClassReturnedIfNoSubclassMatch()
|
||||||
{
|
{
|
||||||
$q = new Doctrine_Query();
|
$q = new Doctrine_Query();
|
||||||
$entityOther = $q->from("Entity")->where("id=?")->execute(array($this->otherEntity->id))->getFirst();
|
$entityOther = $q->from('Entity')->where('id=?')->execute(array($this->otherEntity->id))->getFirst();
|
||||||
$this->assertTrue($entityOther instanceOf Entity);
|
$this->assertTrue($entityOther instanceOf Entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSubclassReturnedIfInheritanceMatches()
|
public function testSubclassReturnedIfInheritanceMatches()
|
||||||
{
|
{
|
||||||
$q = new Doctrine_Query();
|
$q = new Doctrine_Query();
|
||||||
$group = $q->from("Entity")->where("id=?")->execute(array(1))->getFirst();
|
$group = $q->from('Entity')->where('id=?')->execute(array(1))->getFirst();
|
||||||
$this->assertTrue($group instanceOf Group);
|
$this->assertTrue($group instanceOf Group);
|
||||||
|
|
||||||
$q = new Doctrine_Query();
|
$q = new Doctrine_Query();
|
||||||
$user = $q->from("Entity")->where("id=?")->execute(array(5))->getFirst();
|
$user = $q->from('Entity')->where('id=?')->execute(array(5))->getFirst();
|
||||||
$this->assertTrue($user instanceOf User);
|
$this->assertTrue($user instanceOf User);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user