Permalink
Browse files

fixed code style (Refs #309)

  • Loading branch information...
1 parent 769dbf9 commit 38738e64a0765062b91ddcf6131f7e9466fa1c59 @akalyaev akalyaev committed Mar 8, 2012
View
2 generator/lib/behavior/archivable/ArchivableBehavior.php
@@ -159,7 +159,7 @@ public function hasArchiveClass()
*/
public function getArchivedAtColumn()
{
- if ($this->getParameter('log_archived_at') == 'true' && $this->getArchiveTable()) {
+ if ($this->getArchiveTable() && $this->getParameter('log_archived_at') == 'true') {
return $this->getArchiveTable()->getColumn($this->getParameter('archived_at_column'));
}
}
View
3 test/testsuite/generator/behavior/archivable/ArchivableBehaviorObjectBuilderModifierTest.php
@@ -378,7 +378,8 @@ public function testDeleteWithoutArchiveDoesNotCreateArchive()
$this->assertEquals(0, ArchivableTest10ArchiveQuery::create()->count());
}
- public function testArchiveSetArchivedAtToTheCurrentTime() {
+ public function testArchiveSetArchivedAtToTheCurrentTime()
+ {
$a = new ArchivableTest10();
$a->setTitle('foo');
$a->save();

0 comments on commit 38738e6

Please sign in to comment.